final class RegisteredLexemeGenerator
    implements LexemeGenerator

Supplies spellings from a fixed upstream registration table after explicit handler selection.

Methods§

public function __construct(
    private array<string, list<string>> $registrations,
    private string $definition,
    private array<string, string> $aliases = [],
)

Parameters

$registrationsarray<string, list<string>>
$definitionstring
$aliasesarray<string, string>Parser lookahead names mapped to their registered base token
Test cases 2

Private surface 3§

Implementation details, listed for orientation only.

private array<string, list<string>> $registrations
private string $definition
private array<string, string> $aliases = []

Test cases 21§

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 19

Relations§

Instantiated in 2
Method calls 1