| Modifier and Type | Field and Description |
|---|---|
| public GrammarRootAST | |
| public Grammar | |
| public static final String | |
| public Collection | |
| public static final String | |
| public Tool |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public RuleAST | |
| public void | 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}?
|
| public boolean | translateLeftRecursiveRule(GrammarRootAST ast, LeftRecursiveRule r, String language)
Return true if successful |
| public void |
| ast | back to summary |
|---|---|
| public GrammarRootAST ast | |
| g | back to summary |
|---|---|
| public Grammar g | |
| PRECEDENCE_OPTION_NAME | back to summary |
|---|---|
| public static final String PRECEDENCE_OPTION_NAME | |
| rules | back to summary |
|---|---|
| public Collection<Rule> rules | |
| TOKENINDEX_OPTION_NAME | back to summary |
|---|---|
| public static final String TOKENINDEX_OPTION_NAME | |
| tool | back to summary |
|---|---|
| public Tool tool | |
| LeftRecursiveRuleTransformer | back to summary |
|---|---|
| public LeftRecursiveRuleTransformer(GrammarRootAST ast, Collection<Rule> rules, Grammar g) | |
| parseArtificialRule | back to summary |
|---|---|
| public RuleAST parseArtificialRule(final Grammar g, String ruleText) | |
| setAltASTPointers | back to summary |
|---|---|
public void 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}? '--'))))))
| |
| translateLeftRecursiveRule | back to summary |
|---|---|
| public boolean translateLeftRecursiveRule(GrammarRootAST ast, LeftRecursiveRule r, String language) Return true if successful | |
| translateLeftRecursiveRules | back to summary |
|---|---|
| public void translateLeftRecursiveRules() | |