Home
last modified time | relevance | path

Searched refs:outerAltNum (Results 1 – 11 of 11) sorted by relevance

/external/antlr/antlr-3.4/tool/src/main/antlr3/org/antlr/grammar/v3/
DDefineGrammarItemsWalker.g56 protected int outerAltNum = 0;
325 this.outerAltNum=1;
333 this.outerAltNum++;
364 // r.TrackAltsWithRewrites($start,this.outerAltNum);
438 $act.outerAltNum = this.outerAltNum;
443 $act2.outerAltNum = this.outerAltNum;
448 $SEMPRED.outerAltNum = this.outerAltNum;
455 $GATED_SEMPRED.outerAltNum = this.outerAltNum;
500 grammar.altReferencesRule( currentRuleName, $scope_, $rr, this.outerAltNum );
503 $rarg.outerAltNum = this.outerAltNum;
[all …]
DActionTranslator.g51 int outerAltNum;
65 this.outerAltNum = actionAST.outerAltNum;
71 int outerAltNum)
78 this.outerAltNum = outerAltNum;
114 new CommonToken(ANTLRParser.ACTION,action),outerAltNum);
119 return enclosingRule.getTokenRefsInAlt(id, outerAltNum)!=null;
122 return enclosingRule.getRuleRefsInAlt(id, outerAltNum)!=null;
131 refs = enclosingRule.getTokenRefsInAlt(ref, outerAltNum);
134 refs = enclosingRule.getRuleRefsInAlt(ref, outerAltNum);
301 label = enclosingRule.getElementLabel($x.text, outerAltNum, generator);
[all …]
DActionAnalysis.g51 int outerAltNum = 0;
59 this.outerAltNum = actionAST.outerAltNum;
93 else if ( enclosingRule.getRuleRefsInAlt(x.getText(), outerAltNum)!=null ) {
DCodeGenTreeWalker.g71 private int outerAltNum = 0;
86 return outerAltNum;
90 outerAltNum = value;
557 this.outerAltNum=1;
572 this.outerAltNum++;
607 currentAltHasASTRewrite = r.hasRewrite(outerAltNum);
610 r.trackTokenReferenceInAlt($start, outerAltNum);
684 currentAltHasASTRewrite = r.hasRewrite(outerAltNum);
900 if ( grammar.buildAST() && !r.hasRewrite(outerAltNum) ) {
956 if ( encRule!=null && encRule.hasRewrite(outerAltNum) && astSuffix!=null )
[all …]
DTreeToNFAConverter.g64 protected int outerAltNum = 0;
80 other.outerAltNum = outerAltNum;
88 if ( r.hasRewrite( outerAltNum ) )
95 other.outerAltNum = outerAltNum;
110 other.outerAltNum = outerAltNum;
286 this.outerAltNum=1;
299 outerAltNum++;
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
DRule.java270 public void trackTokenReferenceInAlt(GrammarAST refAST, int outerAltNum) { in trackTokenReferenceInAlt() argument
271 List refs = (List)altToTokenRefMap[outerAltNum].get(refAST.getText()); in trackTokenReferenceInAlt()
274 altToTokenRefMap[outerAltNum].put(refAST.getText(), refs); in trackTokenReferenceInAlt()
279 public List getTokenRefsInAlt(String ref, int outerAltNum) { in getTokenRefsInAlt() argument
280 if ( altToTokenRefMap[outerAltNum]!=null ) { in getTokenRefsInAlt()
281 List tokenRefASTs = (List)altToTokenRefMap[outerAltNum].get(ref); in getTokenRefsInAlt()
287 public void trackRuleReferenceInAlt(GrammarAST refAST, int outerAltNum) { in trackRuleReferenceInAlt() argument
288 List refs = (List)altToRuleRefMap[outerAltNum].get(refAST.getText()); in trackRuleReferenceInAlt()
291 altToRuleRefMap[outerAltNum].put(refAST.getText(), refs); in trackRuleReferenceInAlt()
296 public List getRuleRefsInAlt(String ref, int outerAltNum) { in getRuleRefsInAlt() argument
[all …]
DGrammarSanity.java267 int outerAltNum) in ensureAltIsSimpleNodeOrTree() argument
275 new Integer(outerAltNum)); in ensureAltIsSimpleNodeOrTree()
293 outerAltNum); in ensureAltIsSimpleNodeOrTree()
299 new Integer(outerAltNum)); in ensureAltIsSimpleNodeOrTree()
DGrammarAST.java121 public int outerAltNum; field in GrammarAST
168 this.outerAltNum = t.outerAltNum; in initialize()
DGrammar.java1957 int outerAltNum) in altReferencesRule() argument
1973 r.trackRuleReferenceInAlt(refAST, outerAltNum); in altReferencesRule()
1986 public void altReferencesTokenID(String ruleName, GrammarAST refAST, int outerAltNum) { in altReferencesTokenID() argument
1991 r.trackTokenReferenceInAlt(refAST, outerAltNum); in altReferencesTokenID()
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/
DCodeGenerator.java920 actionTree.outerAltNum); in translateArgAction()
1037 int outerAltNum, in translateTemplateConstructor() argument
1066 gen.setOuterAltNum(outerAltNum); in translateTemplateConstructor()
1083 int outerAltNum) in issueInvalidScopeError() argument
1112 int outerAltNum) in issueInvalidAttributeError() argument
1128 if ( label!=null || enclosingRule.getRuleRefsInAlt(x, outerAltNum)!=null ) { in issueInvalidAttributeError()
1164 int outerAltNum) in issueInvalidAttributeError() argument
1181 enclosingRule.getRuleRefsInAlt(x, outerAltNum)!=null || in issueInvalidAttributeError()
/external/antlr/antlr-3.4/lib/
Dantlr-3.4-complete.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/antlr/ org/ ...