| Modifier and Type | Field and Description |
|---|---|
| public List | leftRecursiveRuleRefLabels
Did we delete any labels on direct left-recur refs? |
| public RuleAST | |
| public OrderedHashMap | |
| public List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Map | getAltLabels()
Overrides org. |
| public RuleAST | |
| public int | getOriginalNumberOfAlts()
Used for recursive rules (subclass), which have 1 alt, but many original alts
|
| public int[] | getPrimaryAlts()
Return an array that maps predicted alt from primary decision to original alt of rule. |
| public int[] | getRecursiveOpAlts()
Return an array that maps predicted alt from recursive op decision to original alt of rule. |
| public List | |
| public boolean |
| leftRecursiveRuleRefLabels | back to summary |
|---|---|
| public List<Pair<GrammarAST, String>> leftRecursiveRuleRefLabels Did we delete any labels on direct left-recur refs? Points at ID of ^(= ID el) | |
| originalAST | back to summary |
|---|---|
| public RuleAST originalAST | |
| recOpAlts | back to summary |
|---|---|
| public OrderedHashMap<Integer, LeftRecursiveRuleAltInfo> recOpAlts | |
| recPrimaryAlts | back to summary |
|---|---|
| public List<LeftRecursiveRuleAltInfo> recPrimaryAlts | |
| LeftRecursiveRule | back to summary |
|---|---|
| public LeftRecursiveRule(Grammar g, String name, RuleAST ast) | |
| getAltLabels | back to summary |
|---|---|
| public Map Overrides org. Get -> labels from those alts we deleted for left-recursive rules.
| |
| getOriginalAST | back to summary |
|---|---|
| public RuleAST getOriginalAST() | |
| getOriginalNumberOfAlts | back to summary |
|---|---|
| public int getOriginalNumberOfAlts() Overrides org. Doc from org. Used for recursive rules (subclass), which have 1 alt, but many original alts
| |
| getPrimaryAlts | back to summary |
|---|---|
| public int[] getPrimaryAlts() Return an array that maps predicted alt from primary decision to original alt of rule. For following rule, return [0, 2, 4] e : e '*' e | INT | e '+' e | ID ; That maps predicted alt 1 to original alt 2 and predicted 2 to alt 4.
| |
| getRecursiveOpAlts | back to summary |
|---|---|
| public int[] getRecursiveOpAlts() Return an array that maps predicted alt from recursive op decision to original alt of rule. For following rule, return [0, 1, 3] e : e '*' e | INT | e '+' e | ID ; That maps predicted alt 1 to original alt 1 and predicted 2 to alt 3.
| |
| getUnlabeledAltASTs | back to summary |
|---|---|
| public List Overrides org.
| |
| hasAltSpecificContexts | back to summary |
|---|---|
| public boolean hasAltSpecificContexts() Overrides org.
| |