interfaceRhsItem
interface RhsItem
Public API: explicitly declared with
@visibility public.One thing written on the right-hand side of a rule.
$file = (new \BisonParser\Parser())->parse("%%\ns: 'a' %empty ;\n");
(string) $file->rules()[0]->alternatives[0]->items[1]->location() // => '2:8'Methods§
Test cases 4§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
RhsItemTestcalls
Other tests reaching this symbol 3
TreeDumpercallsBisonGrammarCompilerTestcallsBisonGrammarReaderTestcalls
Relations§
Implemented by 9
- Line packages/bison-parser/src/Ast/Line.php:25
- Action packages/bison-parser/src/Ast/Rule/Action.php:25
- DprecItem packages/bison-parser/src/Ast/Rule/DprecItem.php:18
- EmptyItem packages/bison-parser/src/Ast/Rule/EmptyItem.php:18
- ExpectItem packages/bison-parser/src/Ast/Rule/ExpectItem.php:18
- MergeItem packages/bison-parser/src/Ast/Rule/MergeItem.php:18
- PrecItem packages/bison-parser/src/Ast/Rule/PrecItem.php:19
- Predicate packages/bison-parser/src/Ast/Rule/Predicate.php:18
- SymbolItem packages/bison-parser/src/Ast/Rule/SymbolItem.php:21