|
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\Primitives:Public Member Functions | |
| simpleEither (array $parse) | |
| simpleSequence (array $parse) | |
| until (?int $max, $parse) | |
| parserFrom ($x) | |
Private Member Functions | |
| or2 (Closure $f, Closure $g) | |
| seq (Closure $f, Closure $g) | |
| eq (int $atom) | |
| variadic (callable $call, array $parse) | |
| Makes a variadic function from a binary one (left associative and requires at leat 1 argument): f(f(a, b), c) === variadic(f, [a, b, c]);. More... | |
| mustEqual (string $expected) | |
| nop () | |
| lazy (callable $call,... $arguments) | |
@phpstan-type Continuation Closure(Result<Intermediate>): Result<Intermediate> @phpstan-type Parser Closure(Intermediate, Continuation): Result<Intermediate>
Definition at line 32 of file Primitives.php.
|
private |
| int | $atom |
Definition at line 102 of file Primitives.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\Primitives\mustEqual().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 149 of file Primitives.php.
Referenced by ILIAS\Refinery\Parser\ABNF\Primitives\until().
Here is the caller graph for this function:
|
private |
| string | $expected |
Definition at line 128 of file Primitives.php.
References ILIAS\Refinery\Parser\ABNF\Primitives\eq(), ILIAS\Refinery\Parser\ABNF\Primitives\nop(), and ILIAS\Refinery\Parser\ABNF\Primitives\simpleSequence().
Referenced by ILIAS\Refinery\Parser\ABNF\Primitives\parserFrom().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 142 of file Primitives.php.
Referenced by ILIAS\Refinery\Parser\ABNF\Primitives\mustEqual(), and ILIAS\Refinery\Parser\ABNF\Primitives\until().
Here is the caller graph for this function:
|
private |
Definition at line 75 of file Primitives.php.
References Vendor\Package\$f.
| ILIAS\Refinery\Parser\ABNF\Primitives::parserFrom | ( | $x | ) |
| Parser | string | $x |
Definition at line 70 of file Primitives.php.
References ILIAS\Refinery\Parser\ABNF\Primitives\mustEqual().
Here is the call graph for this function:
|
private |
| Parser | $f | |
| Parser | $g |
Definition at line 87 of file Primitives.php.
References ILIAS\$error, and Vendor\Package\$f.
| ILIAS\Refinery\Parser\ABNF\Primitives::simpleEither | ( | array | $parse | ) |
Definition at line 34 of file Primitives.php.
References ILIAS\Refinery\Parser\ABNF\Primitives\variadic().
Referenced by ILIAS\Refinery\Parser\ABNF\Primitives\until().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\Refinery\Parser\ABNF\Primitives::simpleSequence | ( | array | $parse | ) |
Definition at line 39 of file Primitives.php.
References ILIAS\Refinery\Parser\ABNF\Primitives\variadic().
Referenced by ILIAS\Refinery\Parser\ABNF\Primitives\mustEqual(), and ILIAS\Refinery\Parser\ABNF\Primitives\until().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\Refinery\Parser\ABNF\Primitives::until | ( | ?int | $max, |
| $parse | |||
| ) |
| null | int | $max | |
| Parser | string | $parse |
Definition at line 49 of file Primitives.php.
References ILIAS\Refinery\Parser\ABNF\Primitives\lazy(), ILIAS\Refinery\Parser\ABNF\Primitives\nop(), ILIAS\Refinery\Parser\ABNF\Primitives\simpleEither(), and ILIAS\Refinery\Parser\ABNF\Primitives\simpleSequence().
Here is the call graph for this function:
|
private |
Makes a variadic function from a binary one (left associative and requires at leat 1 argument): f(f(a, b), c) === variadic(f, [a, b, c]);.
| callable(Parser,Parser) | Parser $call |
| (Parser|string)[] | $parse |
Definition at line 117 of file Primitives.php.
Referenced by ILIAS\Refinery\Parser\ABNF\Primitives\simpleEither(), and ILIAS\Refinery\Parser\ABNF\Primitives\simpleSequence().
Here is the caller graph for this function: