/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/ |
GrammarUnreachableAltsMessage.java | 41 public List alts; field in class:GrammarUnreachableAltsMessage 44 List alts) 48 this.alts = alts; 49 // flip msg ID if alts are actually token refs in Tokens rule 67 // alts are token rules, convert to the names instead of numbers 68 for (int i = 0; i < alts.size(); i++) { 69 Integer altI = (Integer) alts.get(i); 81 // regular alt numbers, show the alts 82 st.add("alts", alts) [all...] |
GrammarDanglingStateMessage.java | 64 List alts = new ArrayList(); local 65 alts.addAll(problemState.getAltSet()); 66 Collections.sort(alts); 67 st.add("danglingAlts", alts);
|
GrammarInsufficientPredicatesMessage.java | 64 List<Integer> alts = new ArrayList<Integer>(); local 65 alts.addAll(altToLocations.keySet()); 66 Collections.sort(alts); 67 for (Integer altI : alts) {
|
DOTGenerator.java | 326 Set alts = ((DFAState)s).getAltSet(); local 327 if ( alts!=null ) { 329 // separate alts 331 altList.addAll(alts);
|
GrammarAST.java | 555 int alts = 0; local 558 alts++; 560 if (alts == i) {
|
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/ |
LeftRecursiveRules.stg | 50 recRule(ruleName, precArgDef, argName, alts, setResultAction, buildAST, 66 : <alts; separator="\n | "> 72 recPrimaryRule(ruleName, alts, userRetvals) ::= << 75 : <alts; separator="\n | ">
|
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/Python/ |
ST.stg | 78 rewriteTemplate(alts) ::= << 82 <first(alts):rewriteTemplateAltFirst()> 83 <rest(alts):{it | el<rewriteTemplateAlt(it)>}> 87 <first(alts):rewriteTemplateAltFirst()> 88 <rest(alts):{it | el<rewriteTemplateAlt(it)>}> 134 rewriteEmptyTemplate(alts) ::= <<
|
Python.stg | 626 block(alts,decls,decision,enclosingBlockLevel,blockLevel,decisionNumber,maxK,maxAlt,description) ::= << 638 <alts:{a | <altSwitchCase(i, a)>}; separator="\nel"> 643 ruleBlock(alts,decls,decision,enclosingBlockLevel,blockLevel,decisionNumber,maxK,maxAlt,description) ::= << 650 <alts:{a | <altSwitchCase(i, a)>}; separator="\nel"> 653 ruleBlockSingleAlt(alts,decls,decision,enclosingBlockLevel,blockLevel,decisionNumber,description) ::= << 657 <alts> 662 blockSingleAlt(alts,decls,decision,enclosingBlockLevel,blockLevel,decisionNumber,description) ::= << 666 <alts> 671 positiveClosureBlock(alts,decls,decision,enclosingBlockLevel,blockLevel,decisionNumber,maxK,maxAlt,description) ::= << 688 <alts:{a | <altSwitchCase(i, a)>}; separator="\nel" [all...] |
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/analysis/ |
LL1DFA.java | 71 /** From a set of edgeset->list-of-alts mappings, create a DFA 72 * that uses syn preds for all |list-of-alts|>1. 88 List<Integer> alts = edgeMap.get(edge); local 89 Collections.sort(alts); // make sure alts are attempted in order 90 //System.out.println(edge+" -> "+alts); 95 if ( alts.size()==1 ) { 97 int alt = alts.get(0); 105 for (int i = 0; i < alts.size(); i++) { 106 int alt = (int)alts.get(i) [all...] |
DFAState.java | 62 * but with different NFAContexts (with same or different alts) 110 * detect recursion. There may be other alts that are cool: 470 * alternative is chosen to resolve the conflict. The other alts 501 // if we had to abort for non-LL(*) state assume all alts are a problem 511 * context conflicting ctx predicts alts i and j. Return an Integer set 548 // potential conflicts are states with > 1 configuration and diff alts 599 // looking for different alts (only states with potential issues 604 // I want to create a map from context to alts looking for overlap: 609 // alts 1 and 2. 625 // suffix of t.ctx or vice versa (if alts differ) 646 Set alts = new HashSet(); local [all...] |
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/ |
SerializedGrammar.java | 60 List[] alts; field in class:SerializedGrammar.Block 61 public Block(List[] alts) { 62 this.alts = alts; 67 for (int i = 0; i < alts.length; i++) { 68 List alt = alts[i]; 135 List[] alts = new List[nalts]; local 139 alts[i] = alt; 142 return new Block(alts);
|
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/CSharp2/ |
ST.stg | 86 rewriteTemplate(alts) ::= << 92 <alts:rewriteTemplateAlt(); separator="else "> 96 <alts:rewriteTemplateAlt(); separator="else "> 128 rewriteEmptyTemplate(alts) ::= <<
|
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/CSharp3/ |
ST.stg | 63 rewriteTemplate(alts) ::= << 69 <alts:rewriteTemplateAlt(); separator="else "> 73 <alts:rewriteTemplateAlt(); separator="else "> 106 rewriteEmptyTemplate(alts) ::= <<
|
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/Java/ |
ST.stg | 78 rewriteTemplate(alts) ::= << 83 <alts:rewriteTemplateAlt(); separator="else "> 87 <alts:rewriteTemplateAlt(); separator="else "> 119 rewriteEmptyTemplate(alts) ::= <<
|
Java.stg | 546 block(alts,decls,decision,enclosingBlockLevel,blockLevel,decisionNumber,maxK,maxAlt,description) ::= << 555 <alts:{a | <altSwitchCase(i,a)>}> 561 ruleBlock(alts,decls,decision,enclosingBlockLevel,blockLevel,decisionNumber,maxK,maxAlt,description) ::= << 569 <alts:{a | <altSwitchCase(i,a)>}> 573 ruleBlockSingleAlt(alts,decls,decision,enclosingBlockLevel,blockLevel,decisionNumber,description) ::= << 577 <alts> 582 blockSingleAlt(alts,decls,decision,enclosingBlockLevel,blockLevel,decisionNumber,description) ::= << 586 <alts> 591 positiveClosureBlock(alts,decls,decision,enclosingBlockLevel,blockLevel,decisionNumber,maxK,maxAlt,description) ::= << 603 <alts:{a | <altSwitchCase(i,a)>} [all...] |
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/ObjC/ |
ST4ObjC.stg | 148 rewriteTemplate(alts) ::= << 153 <alts:rewriteTemplateAlt(); separator="else "> 157 <alts:rewriteTemplateAlt(); separator="else "> 189 rewriteEmptyTemplate(alts) ::= <<
|
ST.stg | 269 rewriteTemplate(alts) ::= << 274 <alts:rewriteTemplateAlt(); separator="else "> 278 <alts:rewriteTemplateAlt(); separator="else "> 315 rewriteEmptyTemplate(alts) ::= <<
|
/external/antlr/antlr-3.4/tool/src/main/antlr3/org/antlr/grammar/v3/ |
TreeToNFAConverter.g | 247 // track decision if > 1 alts 283 List<StateCluster> alts = new ArrayList<StateCluster>(); 295 alts.add($a.g); 304 {$g = factory.build_AlternativeBlock(alts);} 389 // track decision if > 1 alts 435 $g.left.setDecisionNumber(d); // this is the bypass decision (2 alts) 796 testBlockAsSet returns [int alts=0] 803 ( ^(ALT (BACKTRACK_SEMPRED)? testSetElement {{$alts += $testSetElement.alts;}} EOA) 811 testSetRule returns [int alts=0 [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/ |
patcomp.py | 80 alts = [self.compile_node(ch) for ch in node.children[::2]] 81 if len(alts) == 1: 82 return alts[0] 83 p = pytree.WildcardPattern([[a] for a in alts], min=1, max=1)
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib2to3/ |
patcomp.py | 80 alts = [self.compile_node(ch) for ch in node.children[::2]] 81 if len(alts) == 1: 82 return alts[0] 83 p = pytree.WildcardPattern([[a] for a in alts], min=1, max=1)
|
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/tool/templates/messages/languages/ |
en.stg | 208 "alts with rewrites can't use heterogeneous types left of ->" 249 UNREACHABLE_ALTS(alts) ::= << 250 The following alternatives can never be matched: <alts; separator=","><\n> 291 NONREGULAR_DECISION(ruleName,alts) ::= << 292 [fatal] rule <ruleName> has non-LL(*) decision due to recursive rule invocations reachable from alts <alts; separator=",">. Resolve by left-factoring or using syntactic predicates or using backtrack=true option.
|
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/ActionScript/ |
ActionScript.stg | 491 block(alts,decls,decision,enclosingBlockLevel,blockLevel,decisionNumber,maxK,maxAlt,description) ::= << 500 <alts:altSwitchCase()> 506 ruleBlock(alts,decls,decision,enclosingBlockLevel,blockLevel,decisionNumber,maxK,maxAlt,description) ::= << 514 <alts:altSwitchCase()> 518 ruleBlockSingleAlt(alts,decls,decision,enclosingBlockLevel,blockLevel,decisionNumber,description) ::= << 522 <alts> 527 blockSingleAlt(alts,decls,decision,enclosingBlockLevel,blockLevel,decisionNumber,description) ::= << 531 <alts> 536 positiveClosureBlock(alts,decls,decision,enclosingBlockLevel,blockLevel,decisionNumber,maxK,maxAlt,description) ::= << 548 <alts:altSwitchCase() [all...] |
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/CPP/ |
CPP.stg | 561 block(alts,decls,decision,enclosingBlockLevel,blockLevel,decisionNumber, 571 <alts:altSwitchCase()> 577 ruleBlock(alts,decls,decision,enclosingBlockLevel,blockLevel,decisionNumber,maxK,maxAlt,description) ::= << 585 <alts:altSwitchCase()> 589 ruleBlockSingleAlt(alts,decls,decision,enclosingBlockLevel,blockLevel,decisionNumber,description) ::= << 593 <alts> 598 blockSingleAlt(alts,decls,decision,enclosingBlockLevel,blockLevel,decisionNumber,description) ::= << 602 <alts> 607 positiveClosureBlock(alts,decls,decision,enclosingBlockLevel,blockLevel,decisionNumber,maxK,maxAlt,description) ::= << 618 <alts:altSwitchCase() [all...] |
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/Perl5/ |
Perl5.stg | 521 block(alts,decls,decision,enclosingBlockLevel,blockLevel,decisionNumber,maxK,maxAlt,description) ::= << 530 <alts:altSwitchCase()> 536 ruleBlock(alts,decls,decision,enclosingBlockLevel,blockLevel,decisionNumber,maxK,maxAlt,description) ::= << 544 <alts:altSwitchCase()> 548 ruleBlockSingleAlt(alts,decls,decision,enclosingBlockLevel,blockLevel,decisionNumber,description) ::= << 552 <alts> 557 blockSingleAlt(alts,decls,decision,enclosingBlockLevel,blockLevel,decisionNumber,description) ::= << 561 <alts> 566 positiveClosureBlock(alts,decls,decision,enclosingBlockLevel,blockLevel,decisionNumber,maxK,maxAlt,description) ::= << 578 <alts:altSwitchCase() [all...] |
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/Scala/ |
Scala.stg | 525 block(alts,decls,decision,enclosingBlockLevel,blockLevel,decisionNumber,maxK,maxAlt,description) ::= << 534 <alts:{a | <altSwitchCase(i,a)>}> 541 ruleBlock(alts,decls,decision,enclosingBlockLevel,blockLevel,decisionNumber,maxK,maxAlt,description) ::= << 549 <alts:{a | <altSwitchCase(i,a)>}> 554 ruleBlockSingleAlt(alts,decls,decision,enclosingBlockLevel,blockLevel,decisionNumber,description) ::= << 558 <alts> 563 blockSingleAlt(alts,decls,decision,enclosingBlockLevel,blockLevel,decisionNumber,description) ::= << 567 <alts> 572 positiveClosureBlock(alts,decls,decision,enclosingBlockLevel,blockLevel,decisionNumber,maxK,maxAlt,description) ::= << 584 <alts:{a | <altSwitchCase(i,a)>} [all...] |