public class LeftRecursiveRule extends Rule
| Modifier and Type | Field and Description |
|---|---|
List<Pair<GrammarAST,String>> |
leftRecursiveRuleRefLabels
Did we delete any labels on direct left-recur refs? Points at ID of ^(= ID el)
|
OrderedHashMap<Integer,LeftRecursiveRuleAltInfo> |
recOpAlts |
List<LeftRecursiveRuleAltInfo> |
recPrimaryAlts |
actionIndex, actions, alt, args, ast, exceptions, finallyAction, g, index, isStartRule, locals, mode, modifiers, name, namedActions, numberOfAlts, predefinedRulePropertiesDict, retvals, validLexerCommands| Constructor and Description |
|---|
LeftRecursiveRule(Grammar g,
String name,
RuleAST ast) |
| Modifier and Type | Method and Description |
|---|---|
List<Triple<Integer,AltAST,String>> |
getAltLabels()
Get -> labels from those alts we deleted for left-recursive rules.
|
int |
getOriginalNumberOfAlts()
Used for recursive rules (subclass), which have 1 alt, but many original alts
|
List<AltAST> |
getUnlabeledAltASTs() |
boolean |
hasAltSpecificContexts() |
defineActionInAlt, defineLexerAction, definePredicateInAlt, equals, getAnyLabelDef, getElementLabelDefs, getElementLabelNames, getPredefinedScope, getTokenRefs, hashCode, isFragment, resolveRetvalOrProperty, resolvesToAttributeDict, resolvesToLabel, resolvesToListLabel, resolvesToToken, resolveToAttribute, resolveToAttribute, resolveToRule, toStringpublic List<LeftRecursiveRuleAltInfo> recPrimaryAlts
public OrderedHashMap<Integer,LeftRecursiveRuleAltInfo> recOpAlts
public List<Pair<GrammarAST,String>> leftRecursiveRuleRefLabels
public boolean hasAltSpecificContexts()
hasAltSpecificContexts in class Rulepublic int getOriginalNumberOfAlts()
RulegetOriginalNumberOfAlts in class Rulepublic List<AltAST> getUnlabeledAltASTs()
getUnlabeledAltASTs in class RuleCopyright © 1992-2013 ANTLR. All Rights Reserved.