classMergeItem
final class MergeItem
implements RhsItem
Public API: explicitly declared with
@visibility public.A %merge modifier naming the function that merges GLR ambiguities.
$file = (new \BisonParser\Parser())->parse("%glr-parser\n%%\ns: 'a' %merge <stmtMerge> ;\n");
$file->rules()[0]->alternatives[0]->items[1]->tag // => 'stmtMerge'Properties§
public string $tagpublic Location $locationMethods§
public function __construct(public string $tag, public Location $location)Parameters
$tag | string | The function name written between angle brackets |
$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