Home
last modified time | relevance | path

Searched refs:enclosingRule (Results 1 – 17 of 17) sorted by relevance

/external/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/
DActionTranslator.g51 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 …]
DActionAnalysis.g49 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/
DGrammarReport2.java66 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()
DGrammarSanity.java117 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()
DInterpreter.java224 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()
DGrammar.java1021 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 …]
DGrammarAnalysisAbortedMessage.java55 probe.dfa.getNFADecisionStartState().enclosingRule.name); in toString()
DNonRegularDecisionMessage.java60 String ruleName = probe.dfa.getNFADecisionStartState().enclosingRule.name; in toString()
DGrammarReport.java146 Rule r = d.dfa.decisionNFAStartState.enclosingRule; in getReportData()
299 buf.append(dfa.decisionNFAStartState.enclosingRule.name); in getDFALocations()
DNFAFactory.java72 n.enclosingRule = currentRule; in newState()
/external/antlr/tool/src/main/java/org/antlr/analysis/
DLL1Analyzer.java179 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()
DNFAState.java82 public Rule enclosingRule; field in NFAState
DDecisionProbe.java574 String targetRule = ((NFAState) ref.target).enclosingRule.name; in computeAltToProblemMaps()
903 return ruleStartState.enclosingRule.name; in getTokenNameForTokensRuleAlt()
DNFAToDFAConverter.java599 System.out.println("closure at "+p.enclosingRule.name+" state "+p.stateNumber+"|"+ in closure()
622 proposedNFAConfiguration+" in "+p.enclosingRule.name); in closure()
DDFAState.java582 !dfa.decisionNFAStartState.enclosingRule.name.equals(Grammar.ARTIFICIAL_TOKENS_RULENAME) ) in getConflictingAlts()
/external/antlr/tool/src/main/java/org/antlr/codegen/
DCodeGenerator.java1111 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/
Den.stg263 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=",…