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

Reads the four directives that rank operators against each other.

%left, %right, %nonassoc and %precedence differ only in the associativity they declare, and the directive name carries that, so one reader covers all four. Operators may be written as names or as quoted characters, and both spellings name the same terminal.

Methods§

public function read(BisonTokenStream $stream, string $directive): BisonDeclaration

Private surface 1§

Implementation details, listed for orientation only.

private BisonDeclarationBoundary $boundary

Test cases 19§

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

Dedicated tests 15
Other tests reaching this symbol 4

Relations§

Instantiated in 1