|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
@phpstan-type Continuation Closure(Result<Intermediate>): Result<Intermediate> @phpstan-type Parser Closure(Intermediate, Continuation): Result<Intermediate> More...
Collaboration diagram for ILIAS\Refinery\Parser\ABNF\Brick: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 |
@phpstan-type Continuation Closure(Result<Intermediate>): Result<Intermediate> @phpstan-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().
Here is the call graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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\Data\Result\then().
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\Brick::digit | ( | ) |
Definition at line 89 of file Brick.php.
References ILIAS\Refinery\Parser\ABNF\Brick\range().
Referenced by ILIAS\Data\LanguageTag\definition().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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.
Referenced by ILIAS\Data\LanguageTag\definition().
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
|
private |