Home
last modified time | relevance | path

Searched refs:numAlts (Results 1 – 5 of 5) sorted by relevance

/external/antlr/antlr-3.4/tool/src/main/antlr3/org/antlr/grammar/v3/
DANTLRTreePrinter.g298 int numAlts = countAltsForBlock($start);
302 if ( forceParens||numAlts>1 )
317 EOB {if ( forceParens||numAlts>1 ) out(")");}
DLeftRecursiveRuleWalker.g56 public int numAlts; // how many alts for this rule total?
142 @init{boolean lr=false; this.numAlts = $start.getChildCount();}
DDefineGrammarItemsWalker.g229 int numAlts = countAltsForRule($start);
230 grammar.defineRule($id.getToken(), $modifier.mod, opts, $start, $args, numAlts);
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
DGrammar.java1141 int numAlts = getNumberOfAltsForDecisionNFA(decisionStartState); in createLL_1_LookaheadDFA() local
1142 LookaheadSet[] altLook = new LookaheadSet[numAlts+1]; in createLL_1_LookaheadDFA()
1143 for (int alt = 1; alt <= numAlts; alt++) { in createLL_1_LookaheadDFA()
1156 for (int i = 1; i <= numAlts; i++) { in createLL_1_LookaheadDFA()
1157 for (int j = i+1; j <= numAlts; j++) { in createLL_1_LookaheadDFA()
1416 int numAlts) in defineRule() argument
1433 Rule r = new Rule(this, ruleName, composite.ruleIndex, numAlts); in defineRule()
DLeftRecursiveRuleAnalyzer.java311 return numAlts-alt+1; in precedence()