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 array<string, list<string>> $functions = []
public list<string> $nonOutput = []
public list<string> $dollarVersions = []

Methods§

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

Parameters

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

Test cases 8§

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 7

Relations§

Instantiated in 1
Type declarations 1