/external/antlr/antlr-3.4/tool/src/main/antlr3/org/antlr/grammar/v3/ |
D | ActionTranslator.g | 50 Rule enclosingRule; 63 this.enclosingRule = grammar.getLocallyDefinedRule(ruleName); 76 this.enclosingRule = grammar.getRule(ruleName); 108 if ( enclosingRule!=null ) { 109 rname = enclosingRule.name; 119 return enclosingRule.getTokenRefsInAlt(id, outerAltNum)!=null; 122 return enclosingRule.getRuleRefsInAlt(id, outerAltNum)!=null; 125 return enclosingRule.getLabel(id); 131 refs = enclosingRule.getTokenRefsInAlt(ref, outerAltNum); 134 refs = enclosingRule.getRuleRefsInAlt(ref, outerAltNum); [all …]
|
D | ActionAnalysis.g | 48 Rule enclosingRule; 57 this.enclosingRule = grammar.getLocallyDefinedRule(ruleName); 74 X_Y : '$' x=ID '.' y=ID {enclosingRule!=null}? 78 if ( $x.text.equals(enclosingRule.name) ) { 81 scope = enclosingRule.getLocalAttributeScope($y.text); 83 else if ( enclosingRule.getRuleLabel($x.text)!=null ) { 85 Grammar.LabelElementPair pair = enclosingRule.getRuleLabel($x.text); 93 else if ( enclosingRule.getRuleRefsInAlt(x.getText(), outerAltNum)!=null ) { 111 X : '$' x=ID {enclosingRule!=null && enclosingRule.getRuleLabel($x.text)!=null}? 113 Grammar.LabelElementPair pair = enclosingRule.getRuleLabel($x.text); [all …]
|
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/ |
D | GrammarReport2.java | 65 Rule enclosingRule = d.dfa.decisionNFAStartState.enclosingRule; in stats() local 66 if ( enclosingRule.isSynPred ) continue; // don't count synpred rules in stats() 67 buf.append(g.name+"."+enclosingRule.name+":" + in stats()
|
D | GrammarSanity.java | 117 s.enclosingRule, in traceStatesLookingForLeftRecursion() 164 Rule enclosingRule, in addRulesToCycle() argument 172 rulesInCycle.add(enclosingRule); in addRulesToCycle() 175 if ( rulesInCycle.contains(enclosingRule) ) { in addRulesToCycle() 183 cycle.add(enclosingRule); in addRulesToCycle()
|
D | Interpreter.java | 222 actions.enterRule(s.nfa.grammar.getFileName(), start.enclosingRule.name); in parseEngine() 283 actions.exitRule(s.nfa.grammar.getFileName(), s.enclosingRule.name); in parseEngine() 304 s.enclosingRule.name, in parseEngine() 319 actions.enterRule(s.nfa.grammar.getFileName(), s.enclosingRule.name); in parseEngine() 370 s.enclosingRule.name, in parseEngine() 385 actions.exitRule(s.nfa.grammar.getFileName(), stop.enclosingRule.name); in parseEngine()
|
D | Grammar.java | 980 ruleBeginState.enclosingRule = r; in createRuleStartAndStopNFAStates() 985 ruleEndState.enclosingRule = r; in createRuleStartAndStopNFAStates() 1053 if ( leftRecursiveRules.contains(decisionStartState.enclosingRule) ) { in createLookaheadDFAs() 1057 " within left-recursive rule "+decisionStartState.enclosingRule.name); in createLookaheadDFAs() 1062 Rule r = decisionStartState.enclosingRule; in createLookaheadDFAs() 1126 String enclosingRule = d.startState.enclosingRule.name; in createLL_1_LookaheadDFA() local 1127 Rule r = d.startState.enclosingRule; in createLL_1_LookaheadDFA() 1136 if ( r.isSynPred && !synPredNamesUsedInDFA.contains(enclosingRule) ) { in createLL_1_LookaheadDFA() 1301 String enclosingRule = d.startState.enclosingRule.name; in createLookaheadDFA() local 1302 Rule r = d.startState.enclosingRule; in createLookaheadDFA() [all …]
|
D | GrammarAnalysisAbortedMessage.java | 54 probe.dfa.getNFADecisionStartState().enclosingRule.name); in toString()
|
D | NonRegularDecisionMessage.java | 59 String ruleName = probe.dfa.getNFADecisionStartState().enclosingRule.name; in toString()
|
D | GrammarReport.java | 147 Rule r = d.dfa.decisionNFAStartState.enclosingRule; in getReportData() 302 buf.append(dfa.decisionNFAStartState.enclosingRule.name); in getDFALocations()
|
D | NFAFactory.java | 72 n.enclosingRule = currentRule; in newState()
|
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/analysis/ |
D | LL1Analyzer.java | 179 LookaheadSet f = FOLLOW(s.enclosingRule); in LOOK() 290 Rule r = s.enclosingRule; in detectConfoundingPredicates() 295 Rule enclosingRule, in _detectConfoundingPredicates() argument 349 enclosingRule, in _detectConfoundingPredicates() 367 enclosingRule, in _detectConfoundingPredicates() 379 enclosingRule, in _detectConfoundingPredicates()
|
D | NFAState.java | 82 public Rule enclosingRule; field in NFAState
|
D | DecisionProbe.java | 579 String targetRule = ((NFAState) ref.target).enclosingRule.name; in computeAltToProblemMaps() 909 return ruleStartState.enclosingRule.name; in getTokenNameForTokensRuleAlt()
|
D | NFAToDFAConverter.java | 599 System.out.println("closure at "+p.enclosingRule.name+" state "+p.stateNumber+"|"+ in closure() 622 proposedNFAConfiguration+" in "+p.enclosingRule.name); in closure()
|
D | DFAState.java | 578 !dfa.decisionNFAStartState.enclosingRule.name.equals(Grammar.ARTIFICIAL_TOKENS_RULENAME) ) in getConflictingAlts()
|
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/ |
D | CodeGenerator.java | 1081 Rule enclosingRule, in issueInvalidScopeError() argument 1110 Rule enclosingRule, in issueInvalidAttributeError() argument 1115 if ( enclosingRule==null ) { in issueInvalidAttributeError() 1126 Grammar.LabelElementPair label = enclosingRule.getRuleLabel(x); in issueInvalidAttributeError() 1128 if ( label!=null || enclosingRule.getRuleRefsInAlt(x, outerAltNum)!=null ) { in issueInvalidAttributeError() 1132 refdRuleName = enclosingRule.getRuleLabel(x).referencedRuleName; in issueInvalidAttributeError() 1162 Rule enclosingRule, in issueInvalidAttributeError() argument 1167 if ( enclosingRule==null ) { in issueInvalidAttributeError() 1177 Grammar.LabelElementPair label = enclosingRule.getRuleLabel(x); in issueInvalidAttributeError() 1178 AttributeScope scope = enclosingRule.getAttributeScope(x); in issueInvalidAttributeError() [all …]
|
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/tool/templates/messages/languages/ |
D | en.stg | 260 ANALYSIS_ABORTED(enclosingRule) ::= << 261 ANTLR could not analyze this decision in rule <enclosingRule>; often this is because of recursive r… 265 …ursion overflow <targetRules,callSiteStates:{t,c|to <t> from <c:{s|<s.enclosingRule.name>};separat… 269 … left-recursion <targetRules,callSiteStates:{t,c|to <t> from <c:{s|<s.enclosingRule>};separator=",…
|