final class KeywordLexemeGenerator
    implements LexemeGenerator

Implements lex.h registration classes and sql_lex.cc find_keyword/function lookahead. A SYM_FN spelling needs an opening parenthesis when used as a function.

Methods§

public function __construct(
    private array<string, list<string>> $symbols,
    private array<string, list<string>> $functions,
)

Parameters

$symbolsarray<string, list<string>>SYM registrations for the exact release
$functionsarray<string, list<string>>SYM_FN registrations for the exact release
Test cases 2
public function generate(LexemeInput $input): ?LexemeCandidates

Supplies registered keyword spellings with their context-dependent lexical use.

Parameters

Test cases 2
Calls 4

Private surface 2§

Implementation details, listed for orientation only.

private array<string, list<string>> $symbols
private array<string, list<string>> $functions

Test cases 11§

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 9

Relations§

Instantiated in 1