classKeywordLexemeGenerator
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
$symbols | array<string, list<string>> | SYM registrations for the exact release |
$functions | array<string, list<string>> | SYM_FN registrations for the exact release |
public function generate(LexemeInput $input): ?LexemeCandidatesSupplies registered keyword spellings with their context-dependent lexical use.
Parameters
$input | LexemeInput |
Returns
Test cases 2
Calls 4
- method-call LexemeInput::terminal() line 36
- new LexemeSequence line 48
- new Lexeme line 49
- static-call LexemeCandidates::of() line 61
Private surface 2§
Implementation details, listed for orientation only.
private array<string, list<string>> $symbolsprivate array<string, list<string>> $functionsTest 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
LexicalExceptionTestcallsGenerationContextTestcallsCharsetValueLexemeGeneratorTestcallsDefinitionFactoryTestcallsLexicalGrammarTestcallsMySqlProviderTestcallsPostgreSqlProviderTestcallsSqlGeneratorFactoryTestcallsSqliteProviderTestcalls