ILIAS
trunk Revision v11.0_alpha-1831-g8615d53dadb
|
-type Continuation Closure(Result<Intermediate>): Result<Intermediate> -type Parser Closure(Intermediate, Continuation): Result<Intermediate> More...
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) | |
-type Continuation Closure(Result<Intermediate>): Result<Intermediate> -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().
|
private |
Definition at line 149 of file Primitives.php.
Referenced by ILIAS\Refinery\Parser\ABNF\Primitives\until().
|
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().
|
private |
Definition at line 142 of file Primitives.php.
Referenced by ILIAS\Refinery\Parser\ABNF\Primitives\mustEqual(), and ILIAS\Refinery\Parser\ABNF\Primitives\until().
|
private |
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().
|
private |
Definition at line 87 of file Primitives.php.
References ILIAS\$error, Vendor\Package\$f, and ILIAS\Data\Result\then().
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().
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().
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(), null, ILIAS\Refinery\Parser\ABNF\Primitives\simpleEither(), and ILIAS\Refinery\Parser\ABNF\Primitives\simpleSequence().
|
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().