/external/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ |
D | ActionTranslator.g | 51 Rule enclosingRule; 64 this.enclosingRule = grammar.getLocallyDefinedRule(ruleName); 77 this.enclosingRule = grammar.getRule(ruleName); 109 if ( enclosingRule!=null ) { 110 rname = enclosingRule.name; 120 return enclosingRule.getTokenRefsInAlt(id, outerAltNum)!=null; 123 return enclosingRule.getRuleRefsInAlt(id, outerAltNum)!=null; 126 return enclosingRule.getLabel(id); 132 refs = enclosingRule.getTokenRefsInAlt(ref, outerAltNum); 135 refs = enclosingRule.getRuleRefsInAlt(ref, outerAltNum); [all …]
|
D | ActionAnalysis.g | 49 Rule enclosingRule; 58 this.enclosingRule = grammar.getLocallyDefinedRule(ruleName); 75 X_Y : '$' x=ID '.' y=ID {enclosingRule!=null}? 79 if ( $x.text.equals(enclosingRule.name) ) { 82 scope = enclosingRule.getLocalAttributeScope($y.text); 84 else if ( enclosingRule.getRuleLabel($x.text)!=null ) { 86 Grammar.LabelElementPair pair = enclosingRule.getRuleLabel($x.text); 94 else if ( enclosingRule.getRuleRefsInAlt(x.getText(), outerAltNum)!=null ) { 112 X : '$' x=ID {enclosingRule!=null && enclosingRule.getRuleLabel($x.text)!=null}? 114 Grammar.LabelElementPair pair = enclosingRule.getRuleLabel($x.text); [all …]
|
/external/antlr/tool/src/main/java/org/antlr/tool/ |
D | GrammarReport2.java | 66 Rule enclosingRule = d.dfa.decisionNFAStartState.enclosingRule; in stats() local 67 if ( enclosingRule.isSynPred ) continue; // don't count synpred rules in stats() 68 buf.append(g.name).append(".").append(enclosingRule.name).append(":" + 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 | 224 actions.enterRule(s.nfa.grammar.getFileName(), start.enclosingRule.name); in parseEngine() 285 actions.exitRule(s.nfa.grammar.getFileName(), s.enclosingRule.name); in parseEngine() 306 s.enclosingRule.name, in parseEngine() 321 actions.enterRule(s.nfa.grammar.getFileName(), s.enclosingRule.name); in parseEngine() 372 s.enclosingRule.name, in parseEngine() 387 actions.exitRule(s.nfa.grammar.getFileName(), stop.enclosingRule.name); in parseEngine()
|
D | Grammar.java | 1021 ruleBeginState.enclosingRule = r; in createRuleStartAndStopNFAStates() 1026 ruleEndState.enclosingRule = r; in createRuleStartAndStopNFAStates() 1094 if ( leftRecursiveRules.contains(decisionStartState.enclosingRule) ) { in createLookaheadDFAs() 1098 " within left-recursive rule "+decisionStartState.enclosingRule.name); in createLookaheadDFAs() 1103 Rule r = decisionStartState.enclosingRule; in createLookaheadDFAs() 1167 String enclosingRule = d.startState.enclosingRule.name; in createLL_1_LookaheadDFA() local 1168 Rule r = d.startState.enclosingRule; in createLL_1_LookaheadDFA() 1177 if ( r.isSynPred && !synPredNamesUsedInDFA.contains(enclosingRule) ) { in createLL_1_LookaheadDFA() 1342 String enclosingRule = d.startState.enclosingRule.name; in createLookaheadDFA() local 1343 Rule r = d.startState.enclosingRule; in createLookaheadDFA() [all …]
|
D | GrammarAnalysisAbortedMessage.java | 55 probe.dfa.getNFADecisionStartState().enclosingRule.name); in toString()
|
D | NonRegularDecisionMessage.java | 60 String ruleName = probe.dfa.getNFADecisionStartState().enclosingRule.name; in toString()
|
D | GrammarReport.java | 146 Rule r = d.dfa.decisionNFAStartState.enclosingRule; in getReportData() 299 buf.append(dfa.decisionNFAStartState.enclosingRule.name); in getDFALocations()
|
D | NFAFactory.java | 72 n.enclosingRule = currentRule; in newState()
|
/external/antlr/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 | 574 String targetRule = ((NFAState) ref.target).enclosingRule.name; in computeAltToProblemMaps() 903 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 | 582 !dfa.decisionNFAStartState.enclosingRule.name.equals(Grammar.ARTIFICIAL_TOKENS_RULENAME) ) in getConflictingAlts()
|
/external/antlr/tool/src/main/java/org/antlr/codegen/ |
D | CodeGenerator.java | 1111 Rule enclosingRule, in issueInvalidScopeError() argument 1140 Rule enclosingRule, in issueInvalidAttributeError() argument 1145 if ( enclosingRule==null ) { in issueInvalidAttributeError() 1156 Grammar.LabelElementPair label = enclosingRule.getRuleLabel(x); in issueInvalidAttributeError() 1158 if ( label!=null || enclosingRule.getRuleRefsInAlt(x, outerAltNum)!=null ) { in issueInvalidAttributeError() 1162 refdRuleName = enclosingRule.getRuleLabel(x).referencedRuleName; in issueInvalidAttributeError() 1192 Rule enclosingRule, in issueInvalidAttributeError() argument 1197 if ( enclosingRule==null ) { in issueInvalidAttributeError() 1207 Grammar.LabelElementPair label = enclosingRule.getRuleLabel(x); in issueInvalidAttributeError() 1208 AttributeScope scope = enclosingRule.getAttributeScope(x); in issueInvalidAttributeError() [all …]
|
/external/antlr/tool/src/main/resources/org/antlr/tool/templates/messages/languages/ |
D | en.stg | 263 ANALYSIS_ABORTED(enclosingRule) ::= << 264 ANTLR could not analyze this decision in rule <enclosingRule>; often this is because of recursive r… 268 …ursion overflow <targetRules,callSiteStates:{t,c|to <t> from <c:{s|<s.enclosingRule.name>};separat… 272 … left-recursion <targetRules,callSiteStates:{t,c|to <t> from <c:{s|<s.enclosingRule>};separator=",…
|