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

Everything a grammar file states before its rules.

The prologue and the declarations are read in one pass because they are interleaved, but they are two different things to the rest of the parser, so they travel together rather than as an unlabelled pair.

Properties§

public string|null $prologue
public list<BisonDeclaration> $declarations

Methods§

public function __construct(
    public string|null $prologue,
    public list<BisonDeclaration> $declarations,
)

Parameters

$prologuestring|nullHost-language code from `%{ ... %}`, or null when the file has none
$declarationslist<BisonDeclaration>Declarations in the order they were written
Test cases 2

Test cases 4§

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 2

Relations§

Instantiated in 1
Type declarations 1