classDprecItem
final class DprecItem
implements RhsItem
Public API: explicitly declared with
@visibility public.A %dprec modifier ranking the alternative among GLR ambiguities.
$file = (new \BisonParser\Parser())->parse("%glr-parser\n%%\ns: 'a' %dprec 2 ;\n");
$file->rules()[0]->alternatives[0]->items[1]->value // => 2Properties§
public int $valuepublic Location $locationMethods§
public function __construct(public int $value, public Location $location)Parameters
$value | int | The rank |
$location | Location | Where the modifier is written |
Test cases 6§
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 5
TreeDumper::itemcallsBisonGrammarCompilerTestcallsBisonGrammarReaderTestcallsRhsPrinterTest::testPrintcallsRuleParserTest::testModifiercalls