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

Root AST node representing a complete Bison grammar file.

Type Aliases§

DeclarationList = list<BisonDeclaration>
RuleList = list<BisonRuleNode>

Properties§

public string $startSymbol
public ?string $prologue
public list<BisonDeclaration> $declarations
public list<BisonRuleNode> $rules
public ?string $epilogue

Methods§

public function __construct(
    public string $startSymbol,
    public ?string $prologue,
    public list<BisonDeclaration> $declarations,
    public list<BisonRuleNode> $rules,
    public ?string $epilogue,
)

Parameters

$startSymbolstringThe grammar's start symbol (from %start or first rule per Bison spec)
$prologue?string
$declarationslist<BisonDeclaration>
$ruleslist<BisonRuleNode>
$epilogue?string
Test cases 92

Test cases 93§

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 91

Relations§

Instantiated in 1
Type declarations 4