forked from jasder/antlr
only gen if >0
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6764]
This commit is contained in:
parent
2e85e0d3a7
commit
f871e2dbf7
|
@ -33,7 +33,9 @@ public class LeftRecursionDetector {
|
|||
check(start.rule, start, new HashSet<NFAState>());
|
||||
}
|
||||
//System.out.println("cycles="+listOfRecursiveCycles);
|
||||
ErrorManager.leftRecursionCycles(listOfRecursiveCycles);
|
||||
if ( listOfRecursiveCycles.size()>0 ) {
|
||||
ErrorManager.leftRecursionCycles(listOfRecursiveCycles);
|
||||
}
|
||||
}
|
||||
|
||||
/** From state s, look for any transition to a rule that is currently
|
||||
|
|
Loading…
Reference in New Issue