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

Consumes a single punctuation character.

Three of these carry grammatical weight — a colon opens a rule's alternatives, a pipe separates them and a semicolon closes the rule — so each gets a lexeme of its own. The rest appear only inside directive arguments, where the parser needs the character but not a distinct lexeme for it, and they are reported as the character they are.

Methods§

public function scan(SourceCursor $cursor): BisonToken

Test cases 28§

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

Dedicated tests 11
Other tests reaching this symbol 17

Relations§

Instantiated in 1