final class LexicalDefinition

Carries one lexical composition and its tokenizer and token-budget metadata.

Properties§

Realizes the declared lexemes with their spacing rules for the selected release.

public LexemeGenerator $lexemes
public array<string, list<string>> $keywords
public list<string> $nonOutput = []

Methods§

public function __construct(
    string $version,
    string $dialect,
    public LexemeGenerator $lexemes,
    SpacingRule $spacing,
    public array<string, list<string>> $keywords,
    public list<string> $nonOutput = [],
)

Parameters

$versionstring
$dialectstring
$lexemesLexemeGenerator
$spacingSpacingRule
$keywordsarray<string, list<string>>
$nonOutputlist<string>
Test cases 1
Calls 2

Test cases 7§

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

Dedicated tests 1
Other tests reaching this symbol 6

Relations§

Instantiated in 1
Type declarations 1