final class GrammarCompiler
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

Compiles a Grammar from a BisonAst.

Transforms the supplied Bison AST into productions and symbols without selecting a database dialect or interpreting its scanner actions.

Methods§

public function compile(BisonAst $ast): Grammar

Compile a BisonAst into a Grammar.

Parameters

Returns

Throws

UnknownSymbolException When a production names a symbol the grammar never declares
Test cases 16
Calls 9
public function declarations(BisonAst $ast): array<string, BisonTokenDefinition>

Test cases 17§

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

Dedicated tests 17