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

Writes symbols, tags and literals the way Bison spells them.

Methods§

public function __construct(private Escapes $escapes = new \BisonParser\Scanner\Escapes())

Parameters

$escapesEscapesWrites the bytes of a literal
Calls 1
public function tag(Tag $tag): string

Writes a tag between angle brackets.

Parameters

$tagTagThe tag

Returns

string The tag as written in a grammar
Test cases 1
Called from 1

Private surface 1§

Implementation details, listed for orientation only.

private Escapes $escapes = new \BisonParser\Scanner\Escapes()

Test cases 9§

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

Dedicated tests 4
Other tests reaching this symbol 5

Relations§

Instantiated in 2
Method calls 17
Type declarations 2