enum Associativity: string
Public API: explicitly declared with @visibility public.

How a precedence declaration resolves a tie between a shift and a reduce.

Reading the associativity of a declarationdoctest
$file = (new \LemonParser\Parser())->parse("%nonassoc EQ NE.\n");
    $file->declarations()[0]->associativity->value // => "nonassoc"

Cases§

case Left = 'left'
case Right = 'right'
case NonAssoc = 'nonassoc'

Test cases 11§

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

Dedicated tests 1
Other tests reaching this symbol 10

Relations§

Static calls 1
Constant reads 3
Type declarations 2