Home
last modified time | relevance | path

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

/external/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/
DANTLRTreePrinter.g299 int numAlts = countAltsForBlock($start);
303 if ( forceParens||numAlts>1 )
318 EOB {if ( forceParens||numAlts>1 ) out(")");}
DLeftRecursiveRuleWalker.g57 public int numAlts; // how many alts for this rule total?
143 @init{boolean lr=false; this.numAlts = $start.getChildCount();}
DDefineGrammarItemsWalker.g230 int numAlts = countAltsForRule($start);
231 grammar.defineRule($id.getToken(), $modifier.mod, opts, $start, $args, numAlts);
/external/antlr/tool/src/main/java/org/antlr/tool/
DGrammar.java1182 int numAlts = getNumberOfAltsForDecisionNFA(decisionStartState); in createLL_1_LookaheadDFA() local
1183 LookaheadSet[] altLook = new LookaheadSet[numAlts+1]; in createLL_1_LookaheadDFA()
1184 for (int alt = 1; alt <= numAlts; alt++) { in createLL_1_LookaheadDFA()
1197 for (int i = 1; i <= numAlts; i++) { in createLL_1_LookaheadDFA()
1198 for (int j = i+1; j <= numAlts; j++) { in createLL_1_LookaheadDFA()
1457 int numAlts) in defineRule() argument
1474 Rule r = new Rule(this, ruleName, composite.ruleIndex, numAlts); in defineRule()
DLeftRecursiveRuleAnalyzer.java312 return numAlts-alt+1; in precedence()