ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
-type Continuation Closure(Result<Intermediate>): Result<Intermediate> -type Parser Closure(Intermediate, Continuation): Result<Intermediate> More...
Public Member Functions | |
__construct () | |
apply (Closure $parse, string $input) | |
toTransformation (Closure $parse) | |
range (int $start, int $end) | |
alpha () | |
digit () | |
either (array $parsers) | |
sequence (array $parsers) | |
repeat (int $min, ?int $max, $parse) | |
transformation (Transformation $transformation, Closure $parse) | |
Private Member Functions | |
namesFromKeys (array $array) | |
consume (Closure $parse, Intermediate $intermediate) | |
It just checks if the given input is fully consumed after parsing and rejects the input otherwise. More... | |
Private Attributes | |
Transform | $transform |
Primitives | $primitives |
-type Continuation Closure(Result<Intermediate>): Result<Intermediate> -type Parser Closure(Intermediate, Continuation): Result<Intermediate>
ILIAS\Refinery\Parser\ABNF\Brick::__construct | ( | ) |
Definition at line 39 of file Brick.php.
References ILIAS\Refinery\transform().
ILIAS\Refinery\Parser\ABNF\Brick::alpha | ( | ) |
Definition at line 78 of file Brick.php.
References ILIAS\Refinery\Parser\ABNF\Brick\range().
Referenced by ILIAS\Data\LanguageTag\definition().
ILIAS\Refinery\Parser\ABNF\Brick::apply | ( | Closure | $parse, |
string | $input | ||
) |
Definition at line 45 of file Brick.php.
References ILIAS\Refinery\Parser\ABNF\Brick\consume(), and ILIAS\Refinery\Parser\ABNF\Intermediate\transform().
Referenced by ILIAS\Refinery\Parser\ABNF\Brick\toTransformation().
|
private |
It just checks if the given input is fully consumed after parsing and rejects the input otherwise.
Parser | $parse | |
Intermediate | $intermediate |
Definition at line 157 of file Brick.php.
References ILIAS\Refinery\Parser\ABNF\Intermediate\done(), and ILIAS\Data\Result\then().
Referenced by ILIAS\Refinery\Parser\ABNF\Brick\apply().
ILIAS\Refinery\Parser\ABNF\Brick::digit | ( | ) |
Definition at line 89 of file Brick.php.
References ILIAS\Refinery\Parser\ABNF\Brick\range().
Referenced by ILIAS\Data\LanguageTag\definition().
ILIAS\Refinery\Parser\ABNF\Brick::either | ( | array | $parsers | ) |
Definition at line 94 of file Brick.php.
References ILIAS\Refinery\Parser\ABNF\Brick\namesFromKeys().
Referenced by ILIAS\Data\LanguageTag\definition().
|
private |
array<(string|int),(string|Parser)> | $array |
Definition at line 139 of file Brick.php.
References ILIAS\Refinery\transform().
Referenced by ILIAS\Refinery\Parser\ABNF\Brick\either(), and ILIAS\Refinery\Parser\ABNF\Brick\sequence().
ILIAS\Refinery\Parser\ABNF\Brick::range | ( | int | $start, |
int | $end | ||
) |
int | $start | |
int | $end |
Definition at line 68 of file Brick.php.
References ILIAS\Refinery\Parser\ABNF\Intermediate\accept(), ILIAS\Refinery\Parser\ABNF\Intermediate\reject(), and ILIAS\Refinery\Parser\ABNF\Intermediate\value().
Referenced by ILIAS\Refinery\Parser\ABNF\Brick\alpha(), ILIAS\Data\LanguageTag\definition(), and ILIAS\Refinery\Parser\ABNF\Brick\digit().
ILIAS\Refinery\Parser\ABNF\Brick::repeat | ( | int | $min, |
?int | $max, | ||
$parse | |||
) |
int | $min | |
null | int | $max | |
Parser | string | $parse |
Definition at line 114 of file Brick.php.
References null.
Referenced by ILIAS\Data\LanguageTag\definition().
ILIAS\Refinery\Parser\ABNF\Brick::sequence | ( | array | $parsers | ) |
(Parser|string)[] | $parse |
Definition at line 103 of file Brick.php.
References ILIAS\Refinery\Parser\ABNF\Brick\namesFromKeys().
Referenced by ILIAS\Data\LanguageTag\definition().
ILIAS\Refinery\Parser\ABNF\Brick::toTransformation | ( | Closure | $parse | ) |
Parser | $parse |
Definition at line 58 of file Brick.php.
References ILIAS\Refinery\Parser\ABNF\Brick\apply().
ILIAS\Refinery\Parser\ABNF\Brick::transformation | ( | Transformation | $transformation, |
Closure | $parse | ||
) |
Transformation | $transformation | |
Parser | $parser |
Definition at line 130 of file Brick.php.
References ILIAS\Refinery\transform().
Referenced by ILIAS\Data\LanguageTag\definition().
|
private |
|
private |