classPrecItem
final class PrecItem
implements RhsItem
Public API: explicitly declared with
@visibility public.A %prec modifier naming the token whose precedence the alternative takes.
$file = (new \BisonParser\Parser())->parse("%%\nexpr: '-' expr %prec NEG ;\n");
$file->rules()[0]->alternatives[0]->items[2]->symbol->value // => 'NEG'Properties§
public Symbol $symbolpublic Location $locationMethods§
Test cases 9§
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 8
TreeDumper::itemcallsAlternativeTest::testSymbolscallsBisonGrammarCompilerTestcallsBisonGrammarReaderTestcallsParserTestcallsRhsPrinterTest::testPrintcallsRuleParserTest::testCheckEmptycallsRuleParserTest::testModifiercalls