public class LeftRecursionDetector
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
ATN |
atn |
java.util.List<java.util.Set<Rule>> |
listOfRecursiveCycles
Holds a list of cycles (sets of rule names).
|
| Constructor and Description |
|---|
LeftRecursionDetector(Grammar g,
ATN atn) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addRulesToCycle(Rule enclosingRule,
Rule targetRule)
enclosingRule calls targetRule.
|
void |
check() |
boolean |
check(Rule enclosingRule,
ATNState s,
java.util.Set<ATNState> visitedStates)
From state s, look for any transition to a rule that is currently
being traced.
|
public ATN atn
public java.util.List<java.util.Set<Rule>> listOfRecursiveCycles
public void check()
public boolean check(Rule enclosingRule, ATNState s, java.util.Set<ATNState> visitedStates)