classRulePrinter
final class RulePrinter
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Writes rules back as Lemon reads them.
Methods§
public function print(Rule $rule): stringWrites one rule on one line, without the line break.
Parameters
$rule | Rule | The rule |
Returns
string `lhs(alias) ::= items. [PREC] {NEVER-REDUCE} {code}`Test cases 1
Called from 1
Calls 1
- method-call RulePrinter::item() line 29
Test cases 5§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Other tests reaching this symbol 3
LemonGrammarCompilerTestcallsLemonGrammarReaderTestcallsPrinterTestcalls