final class MatchingLexemeGenerator
    implements LexemeGenerator

Applies its child only when its declared terminal or contextual predicate matches.

Methods§

public function __construct(
    private string|Closure(LexemeInput): bool $condition,
    private LexemeGenerator $generator,
)

Parameters

$conditionstring|Closure(LexemeInput): bool
$generatorLexemeGenerator

Private surface 2§

Implementation details, listed for orientation only.

private string|Closure(LexemeInput): bool $condition
private LexemeGenerator $generator

Test cases 30§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 2
Other tests reaching this symbol 28

Relations§

Instantiated in 96