Package | Description |
---|---|
org.antlr.v4.analysis | |
org.antlr.v4.codegen | |
org.antlr.v4.codegen.model |
Modifier and Type | Method and Description |
---|---|
void |
LeftRecursiveRuleTransformer.setAltASTPointers(LeftRecursiveRule r,
RuleAST t)
(RULE e int _p (returns int v)
(BLOCK
(ALT
(BLOCK
(ALT INT {$v = $INT.int;})
(ALT '(' (= x e) ')' {$v = $x.v;})
(ALT ID))
(* (BLOCK
(OPTIONS ...)
(ALT {7 >= $_p}? '*' (= b e) {$v = $a.v * $b.v;})
(ALT {6 >= $_p}? '+' (= b e) {$v = $a.v + $b.v;})
(ALT {3 >= $_p}? '++') (ALT {2 >= $_p}? '--'))))))
|
boolean |
LeftRecursiveRuleTransformer.translateLeftRecursiveRule(GrammarRootAST ast,
LeftRecursiveRule r,
String language)
Return true if successful
|
Modifier and Type | Method and Description |
---|---|
void |
OutputModelController.buildLeftRecursiveRuleFunction(LeftRecursiveRule r,
LeftRecursiveRuleFunction function) |
Constructor and Description |
---|
LeftRecursiveRuleFunction(OutputModelFactory factory,
LeftRecursiveRule r) |
Copyright © 1992–2020 ANTLR. All rights reserved.