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

One terminal declared by a %token directive.

Example: TOKEN1 123 "alias". The code and the alias are optional and independent of each other, so both are absent unless the grammar wrote them.

Properties§

public string $name
public int|null $number
public string|null $alias

Methods§

public function __construct(
    public string $name,
    public int|null $number,
    public string|null $alias,
)

Parameters

$namestringTerminal being declared
$numberint|nullExplicit token code, or null when Bison assigns one
$aliasstring|nullQuoted spelling the terminal may also be written as
Test cases 28

Test cases 32§

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

Dedicated tests 5
Other tests reaching this symbol 27

Relations§

Instantiated in 1
Type declarations 1