Home
last modified time | relevance | path

Searched refs:ruleName (Results 1 – 25 of 154) sorted by relevance

1234567

/external/antlr/runtime/Python3/tests/
Dt044trace.py19 def traceIn(self, ruleName, ruleIndex): argument
20 self.traces.append('>'+ruleName)
23 def traceOut(self, ruleName, ruleIndex): argument
24 self.traces.append('<'+ruleName)
42 def traceIn(self, ruleName, ruleIndex): argument
43 self.traces.append('>'+ruleName)
46 def traceOut(self, ruleName, ruleIndex): argument
47 self.traces.append('<'+ruleName)
Dt052import.py30 def traceIn(self, ruleName, ruleIndex): argument
31 self.traces.append('>'+ruleName)
34 def traceOut(self, ruleName, ruleIndex): argument
35 self.traces.append('<'+ruleName)
57 def traceIn(self, ruleName, ruleIndex): argument
58 self.traces.append('>'+ruleName)
61 def traceOut(self, ruleName, ruleIndex): argument
62 self.traces.append('<'+ruleName)
Dt047treeparser.py16 def traceIn(self, ruleName, ruleIndex): argument
17 self.traces.append('>'+ruleName)
20 def traceOut(self, ruleName, ruleIndex): argument
21 self.traces.append('<'+ruleName)
/external/antlr/runtime/Python/tests/
Dt044trace.py19 def traceIn(self, ruleName, ruleIndex): argument
20 self.traces.append('>'+ruleName)
23 def traceOut(self, ruleName, ruleIndex): argument
24 self.traces.append('<'+ruleName)
42 def traceIn(self, ruleName, ruleIndex): argument
43 self.traces.append('>'+ruleName)
46 def traceOut(self, ruleName, ruleIndex): argument
47 self.traces.append('<'+ruleName)
Dt052import.py30 def traceIn(self, ruleName, ruleIndex): argument
31 self.traces.append('>'+ruleName)
34 def traceOut(self, ruleName, ruleIndex): argument
35 self.traces.append('<'+ruleName)
57 def traceIn(self, ruleName, ruleIndex): argument
58 self.traces.append('>'+ruleName)
61 def traceOut(self, ruleName, ruleIndex): argument
62 self.traces.append('<'+ruleName)
/external/antlr/tool/src/main/java/org/antlr/tool/
DLeftRecursiveRuleAnalyzer.java18 public String ruleName; field in LeftRecursiveRuleAnalyzer
33 public LeftRecursiveRuleAnalyzer(TreeNodeStream input, Grammar g, String ruleName) { in LeftRecursiveRuleAnalyzer() argument
36 this.ruleName = ruleName; in LeftRecursiveRuleAnalyzer()
96 refST.add("ruleName", ruleName); in binaryAlt()
104 nameST.add("ruleName", ruleName); in binaryAlt()
122 refST.add("ruleName", ruleName); in ternaryAlt()
130 nameST.add("ruleName", ruleName); in ternaryAlt()
147 refST.add("ruleName", ruleName); in prefixAlt()
155 nameST.add("ruleName", ruleName); in prefixAlt()
170 nameST.add("ruleName", ruleName); in suffixAlt()
[all …]
DNameSpaceChecker.java92 String ruleName = r.name; in checkForRuleDefinitionProblems() local
96 Character.isUpperCase(ruleName.charAt(0)) ) in checkForRuleDefinitionProblems()
101 Character.isLowerCase(ruleName.charAt(0)) && in checkForRuleDefinitionProblems()
106 else if ( grammar.getGlobalScope(ruleName)!=null ) { in checkForRuleDefinitionProblems()
110 ErrorManager.grammarError(msgID, grammar, ruleToken, ruleName); in checkForRuleDefinitionProblems()
125 String ruleName = tok.getText(); in lookForReferencesToUndefinedSymbols() local
126 Rule localRule = grammar.getLocallyDefinedRule(ruleName); in lookForReferencesToUndefinedSymbols()
127 Rule rule = grammar.getRule(ruleName); in lookForReferencesToUndefinedSymbols()
132 if ( rule==null && grammar.getTokenType(ruleName)!=Label.EOF ) { in lookForReferencesToUndefinedSymbols()
136 ruleName); in lookForReferencesToUndefinedSymbols()
[all …]
DGrammar.java1018 String ruleName = r.name; in createRuleStartAndStopNFAStates() local
1020 ruleBeginState.setDescription("rule "+ruleName+" start"); in createRuleStartAndStopNFAStates()
1024 ruleEndState.setDescription("rule "+ruleName+" end"); in createRuleStartAndStopNFAStates()
1459 String ruleName = ruleToken.getText(); in defineRule() local
1460 if ( getLocallyDefinedRule(ruleName)!=null ) { in defineRule()
1462 this, ruleToken, ruleName); in defineRule()
1467 Character.isUpperCase(ruleName.charAt(0)) ) in defineRule()
1470 this, ruleToken, ruleName); in defineRule()
1474 Rule r = new Rule(this, ruleName, composite.ruleIndex, numAlts); in defineRule()
1480 nameToRuleMap.put(ruleName, r); in defineRule()
[all …]
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/
DFailedPredicateException.java36 public String ruleName; field in FailedPredicateException
43 String ruleName, in FailedPredicateException() argument
47 this.ruleName = ruleName; in FailedPredicateException()
53 return "FailedPredicateException("+ruleName+",{"+predicateText+"}?)"; in toString()
DParser.java96 public void traceIn(String ruleName, int ruleIndex) { in traceIn() argument
97 super.traceIn(ruleName, ruleIndex, input.LT(1)); in traceIn()
100 public void traceOut(String ruleName, int ruleIndex) { in traceOut() argument
101 super.traceOut(ruleName, ruleIndex, input.LT(1)); in traceOut()
/external/antlr/gunit/src/main/java/org/antlr/gunit/swingui/runner/
DNotifiedTestExecuter.java52 final String ruleName = failTest.getTestedRuleName(); in onFail() local
53 if(ruleName == null) throw new NullPointerException("Null rule name"); in onFail()
55 final Rule rule = testSuite.getRule(ruleName); in onFail()
65 final String ruleName = passTest.getTestedRuleName(); in onPass() local
66 if(ruleName == null) throw new NullPointerException("Null rule name"); in onPass()
68 final Rule rule = testSuite.getRule(ruleName); in onPass()
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime/
DFailedPredicateException.cs67 public FailedPredicateException(IIntStream input, string ruleName, string predicateText) in FailedPredicateException() argument
70 this._ruleName = ruleName; in FailedPredicateException()
74 …public FailedPredicateException(string message, IIntStream input, string ruleName, string predicat… in FailedPredicateException() argument
77 this._ruleName = ruleName; in FailedPredicateException()
81 …public FailedPredicateException(string message, IIntStream input, string ruleName, string predicat… in FailedPredicateException() argument
84 this._ruleName = ruleName; in FailedPredicateException()
DParser.cs120 public virtual void TraceIn( string ruleName, int ruleIndex ) in TraceIn() argument
122 base.TraceIn( ruleName, ruleIndex, input.LT( 1 ) ); in TraceIn()
126 public virtual void TraceOut( string ruleName, int ruleIndex ) in TraceOut() argument
128 base.TraceOut( ruleName, ruleIndex, input.LT( 1 ) ); in TraceOut()
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
DFailedPredicateException.cs62 public FailedPredicateException(IIntStream input, string ruleName, string predicateText) in FailedPredicateException() argument
64 this._ruleName = ruleName; in FailedPredicateException()
68 …public FailedPredicateException(string message, IIntStream input, string ruleName, string predicat… in FailedPredicateException() argument
70 this._ruleName = ruleName; in FailedPredicateException()
74 …public FailedPredicateException(string message, IIntStream input, string ruleName, string predicat… in FailedPredicateException() argument
76 this._ruleName = ruleName; in FailedPredicateException()
DParser.cs106 public virtual void TraceIn(string ruleName, int ruleIndex) { in TraceIn() argument
107 base.TraceIn(ruleName, ruleIndex, input.LT(1)); in TraceIn()
111 public virtual void TraceOut(string ruleName, int ruleIndex) { in TraceOut() argument
112 base.TraceOut(ruleName, ruleIndex, input.LT(1)); in TraceOut()
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/
DLeftRecursiveRules.stg36 recRuleName(ruleName) ::= "<ruleName>_"
37 recPrimaryName(ruleName) ::= "<ruleName>_primary"
39 recRuleStart(ruleName, minPrec, userRetvals, userRetvalAssignments) ::= <<
40 <ruleName><if(userRetvals)> returns [<userRetvals>]<endif>
50 recRule(ruleName, precArgDef, argName, alts, setResultAction, buildAST,
72 recPrimaryRule(ruleName, alts, userRetvals) ::= <<
81 recRuleRef(ruleName, arg) ::= "<recRuleName(...)>[<arg>]"
/external/antlr/runtime/JavaScript/src/org/antlr/runtime/
DFailedPredicateException.js12 org.antlr.runtime.FailedPredicateException = function(input, ruleName, predicateText){ argument
14 this.ruleName = ruleName;
27 return "FailedPredicateException("+this.ruleName+",{"+this.predicateText+"}?)";
DParser.js62 traceIn: function(ruleName, ruleIndex) { argument
64 this, ruleName, ruleIndex, this.input.LT(1));
67 traceOut: function(ruleName, ruleIndex) { argument
69 this, ruleName, ruleIndex, this.input.LT(1));
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/
DProfiler.cs99 public override void EnterRule(string grammarFileName, string ruleName) { in EnterRule() argument
103 uniqueRules[ruleName] = (grammarFileName + ":" + ruleName); in EnterRule()
106 currentRuleName.Push(ruleName); in EnterRule()
109 public override void ExitRule(string grammarFileName, string ruleName) { in ExitRule() argument
123 string ruleName) { in ExamineRuleMemoization() argument
125 … Console.WriteLine("examine memo " + ruleName + " at " + input.Index + ": " + stopIndex); in ExamineRuleMemoization()
143 string ruleName) { in Memoize() argument
146 Console.WriteLine("memoize " + ruleName); in Memoize()
173 descriptor.ruleName = currentRuleName.Peek(); in EnterDecision()
198 Console.WriteLine("exitDecision " + decisionNumber + " in " + d.decision.ruleName + in ExitDecision()
[all …]
DTracer.cs58 override public void EnterRule(string grammarFileName, string ruleName) in EnterRule() argument
64 …Console.Out.WriteLine("> " + grammarFileName + " " + ruleName + " lookahead(1)=" + GetInputSymbol(… in EnterRule()
68 override public void ExitRule(string grammarFileName, string ruleName) in ExitRule() argument
75 …Console.Out.WriteLine("< " + grammarFileName + " " + ruleName + " lookahead(1)=" + GetInputSymbol(… in ExitRule()
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/
DTracer.cs55 public virtual void EnterRule( string ruleName ) in EnterRule() argument
61 Console.Out.WriteLine( "> " + ruleName + " lookahead(1)=" + GetInputSymbol( 1 ) ); in EnterRule()
65 public virtual void ExitRule( string ruleName ) in ExitRule() argument
72 Console.Out.WriteLine( "< " + ruleName + " lookahead(1)=" + GetInputSymbol( 1 ) ); in ExitRule()
DProfiler.cs101 public override void EnterRule(string grammarFileName, string ruleName) in EnterRule() argument
106 uniqueRules.Add(grammarFileName + ":" + ruleName, true); in EnterRule()
109 currentRuleName.Push(ruleName); in EnterRule()
112 public override void ExitRule(string grammarFileName, string ruleName) in ExitRule() argument
127 string ruleName) in ExamineRuleMemoization() argument
130 … Console.WriteLine("examine memo " + ruleName + " at " + input.Index + ": " + stopIndex); in ExamineRuleMemoization()
151 string ruleName) in Memoize() argument
155 Console.WriteLine("memoize " + ruleName); in Memoize()
186 descriptor.ruleName = currentRuleName.Peek(); in EnterDecision()
213 Console.WriteLine("exitDecision " + decisionNumber + " in " + d.decision.ruleName + in ExitDecision()
[all …]
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/debug/
DTracer.java45 public void enterRule(String ruleName) { in enterRule() argument
47 System.out.println("> "+ruleName+" lookahead(1)="+getInputSymbol(1)); in enterRule()
51 public void exitRule(String ruleName) { in exitRule() argument
54 System.out.println("< "+ruleName+" lookahead(1)="+getInputSymbol(1)); in exitRule()
DProfiler.java88 public String ruleName; field in Profiler.DecisionDescriptor
156 public void enterRule(String grammarFileName, String ruleName) { in enterRule() argument
160 uniqueRules.add(grammarFileName+":"+ruleName); in enterRule()
163 currentRuleName.push( ruleName ); in enterRule()
167 public void exitRule(String grammarFileName, String ruleName) { in exitRule() argument
181 String ruleName) in examineRuleMemoization() argument
183 if (dump) System.out.println("examine memo "+ruleName+" at "+input.index()+": "+stopIndex); in examineRuleMemoization()
202 String ruleName) in memoize() argument
205 if (dump) System.out.println("memoize "+ruleName); in memoize()
232 descriptor.ruleName = currentRuleName.peek(); in enterDecision()
[all …]
/external/antlr/runtime/ObjC/Framework/
DFailedPredicateException.m33 @synthesize ruleName;
62 [desc appendFormat:@" rule: %@ predicate failed: %@", ruleName, predicate];
83 return ruleName;
88 if (theRuleName != ruleName) {
90 if ( ruleName ) [ruleName release];
91 ruleName = theRuleName;

1234567