ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
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().
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(), ILIAS\Tests\Refinery\Parser\ABNF\TransformTest\testAs(), ILIAS\Tests\Refinery\Parser\ABNF\TransformTest\testFailedToTransform(), and ILIAS\Tests\Refinery\Parser\ABNF\TransformTest\testTo().
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().
ILIAS\Refinery\Parser\ABNF\Intermediate::done | ( | ) |
Definition at line 70 of file Intermediate.php.
References ILIAS\Refinery\Parser\ABNF\Intermediate\$todo.
Referenced by ILIAS\Refinery\Parser\ABNF\Brick\consume().
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().
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().
ILIAS\Refinery\Parser\ABNF\Intermediate::reject | ( | ) |
Definition at line 60 of file Intermediate.php.
Referenced by ILIAS\Refinery\Parser\ABNF\Primitives\eq(), ILIAS\Refinery\Parser\ABNF\Brick\range(), and ILIAS\Tests\Refinery\Parser\ABNF\TransformTest\testFailedToParse().
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.
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(), and ILIAS\Refinery\Parser\ABNF\Transform\from().
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().
|
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().