|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Collaboration diagram for ILIAS\Refinery\Parser\ABNF\Intermediate:Public Member Functions | |
| __construct (string $todo, array $accepted=[]) | |
| value () | |
| accept () | |
| push (array $values) | |
| reject () | |
| accepted () | |
| done () | |
| onlyTodo () | |
| transform (Closure $transform) | |
| Calls the given closure with all accepted values. More... | |
Private Attributes | |
| string | $todo |
| array | $accepted |
Definition at line 28 of file Intermediate.php.
| ILIAS\Refinery\Parser\ABNF\Intermediate::__construct | ( | string | $todo, |
| array | $accepted = [] |
||
| ) |
Definition at line 33 of file Intermediate.php.
References ILIAS\Refinery\Parser\ABNF\Intermediate\$accepted, ILIAS\Refinery\Parser\ABNF\Intermediate\$todo, and ILIAS\Refinery\Parser\ABNF\Intermediate\accepted().
Here is the call graph for this function:| ILIAS\Refinery\Parser\ABNF\Intermediate::accept | ( | ) |
Definition at line 44 of file Intermediate.php.
References ILIAS\Refinery\Parser\ABNF\Intermediate\accepted(), and ILIAS\Refinery\Parser\ABNF\Intermediate\push().
Referenced by ILIAS\Refinery\Parser\ABNF\Primitives\eq(), ILIAS\Refinery\Parser\ABNF\Brick\range(), and ILIAS\Tests\Refinery\Parser\ABNF\TransformTest\testAs().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\Refinery\Parser\ABNF\Intermediate::accepted | ( | ) |
Definition at line 65 of file Intermediate.php.
References ILIAS\Refinery\Parser\ABNF\Intermediate\$accepted.
Referenced by ILIAS\Refinery\Parser\ABNF\Intermediate\__construct(), ILIAS\Refinery\Parser\ABNF\Intermediate\accept(), ILIAS\Refinery\Parser\ABNF\Transform\combine(), ILIAS\Refinery\Parser\ABNF\Intermediate\push(), ILIAS\Tests\Refinery\Parser\ABNF\TransformTest\testAs(), and ILIAS\Refinery\Parser\ABNF\Intermediate\transform().
Here is the caller graph for this function:| ILIAS\Refinery\Parser\ABNF\Intermediate::done | ( | ) |
Definition at line 70 of file Intermediate.php.
References ILIAS\Refinery\Parser\ABNF\Intermediate\$todo.
| ILIAS\Refinery\Parser\ABNF\Intermediate::onlyTodo | ( | ) |
Definition at line 75 of file Intermediate.php.
References ILIAS\Refinery\Parser\ABNF\Intermediate\$todo.
Referenced by ILIAS\Refinery\Parser\ABNF\Transform\combine(), and ILIAS\Refinery\Parser\ABNF\Transform\from().
Here is the caller graph for this function:| ILIAS\Refinery\Parser\ABNF\Intermediate::push | ( | array | $values | ) |
Definition at line 52 of file Intermediate.php.
References ILIAS\Refinery\Parser\ABNF\Intermediate\$todo, and ILIAS\Refinery\Parser\ABNF\Intermediate\accepted().
Referenced by ILIAS\Refinery\Parser\ABNF\Intermediate\accept().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\Refinery\Parser\ABNF\Intermediate::reject | ( | ) |
Definition at line 60 of file Intermediate.php.
Referenced by ILIAS\Refinery\Parser\ABNF\Primitives\eq(), and ILIAS\Refinery\Parser\ABNF\Brick\range().
Here is the caller graph for this function:| ILIAS\Refinery\Parser\ABNF\Intermediate::transform | ( | Closure | $transform | ) |
Calls the given closure with all accepted values.
For convenience the $accepted values are transformed to a string when they are a Character[]. Unprocessed characters are wrapped with the Character class to prevent the need for a conversion from a character list (e.g. ['a', 'b'] ) to a string ("ab"), because it's not nice to operate on single length string lists instead of strings.
@template A
| Closure(string|A[]) | Result $transform |
Definition at line 89 of file Intermediate.php.
References $data, and ILIAS\Refinery\Parser\ABNF\Intermediate\accepted().
Referenced by ILIAS\Refinery\Parser\ABNF\Brick\apply().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\Refinery\Parser\ABNF\Intermediate::value | ( | ) |
Definition at line 39 of file Intermediate.php.
Referenced by ILIAS\Refinery\Parser\ABNF\Primitives\eq(), and ILIAS\Refinery\Parser\ABNF\Brick\range().
Here is the caller graph for this function:
|
private |
Definition at line 31 of file Intermediate.php.
Referenced by ILIAS\Refinery\Parser\ABNF\Intermediate\__construct(), and ILIAS\Refinery\Parser\ABNF\Intermediate\accepted().
|
private |
Definition at line 30 of file Intermediate.php.
Referenced by ILIAS\Refinery\Parser\ABNF\Intermediate\__construct(), ILIAS\Refinery\Parser\ABNF\Intermediate\done(), ILIAS\Refinery\Parser\ABNF\Intermediate\onlyTodo(), and ILIAS\Refinery\Parser\ABNF\Intermediate\push().