/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/ |
D | LeftRecursiveRuleAnalyzer.java | 18 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 …]
|
D | NameSpaceChecker.java | 97 String ruleName = r.name; in checkForRuleDefinitionProblems() local 101 Character.isUpperCase(ruleName.charAt(0)) ) in checkForRuleDefinitionProblems() 106 Character.isLowerCase(ruleName.charAt(0)) && in checkForRuleDefinitionProblems() 111 else if ( grammar.getGlobalScope(ruleName)!=null ) { in checkForRuleDefinitionProblems() 115 ErrorManager.grammarError(msgID, grammar, ruleToken, ruleName); in checkForRuleDefinitionProblems() 131 String ruleName = tok.getText(); in lookForReferencesToUndefinedSymbols() local 132 Rule localRule = grammar.getLocallyDefinedRule(ruleName); in lookForReferencesToUndefinedSymbols() 133 Rule rule = grammar.getRule(ruleName); in lookForReferencesToUndefinedSymbols() 138 if ( rule==null && grammar.getTokenType(ruleName)!=Label.EOF ) { in lookForReferencesToUndefinedSymbols() 142 ruleName); in lookForReferencesToUndefinedSymbols() [all …]
|
D | Grammar.java | 977 String ruleName = r.name; in createRuleStartAndStopNFAStates() local 979 ruleBeginState.setDescription("rule "+ruleName+" start"); in createRuleStartAndStopNFAStates() 983 ruleEndState.setDescription("rule "+ruleName+" end"); in createRuleStartAndStopNFAStates() 1418 String ruleName = ruleToken.getText(); in defineRule() local 1419 if ( getLocallyDefinedRule(ruleName)!=null ) { in defineRule() 1421 this, ruleToken, ruleName); in defineRule() 1426 Character.isUpperCase(ruleName.charAt(0)) ) in defineRule() 1429 this, ruleToken, ruleName); in defineRule() 1433 Rule r = new Rule(this, ruleName, composite.ruleIndex, numAlts); in defineRule() 1439 nameToRuleMap.put(ruleName, r); in defineRule() [all …]
|
/external/antlr/antlr-3.4/runtime/Python/tests/ |
D | t044trace.py | 19 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)
|
D | t052import.py | 30 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)
|
D | t053hetero.py | 21 def traceIn(self, ruleName, ruleIndex): argument 22 self.traces.append('>'+ruleName) 25 def traceOut(self, ruleName, ruleIndex): argument 26 self.traces.append('<'+ruleName) 48 def traceIn(self, ruleName, ruleIndex): argument 49 self.traces.append('>'+ruleName) 52 def traceOut(self, ruleName, ruleIndex): argument 53 self.traces.append('<'+ruleName)
|
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/runner/ |
D | NotifiedTestExecuter.java | 52 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/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/ |
D | FailedPredicateException.java | 36 public String ruleName; field in FailedPredicateException 43 String ruleName, in FailedPredicateException() argument 47 this.ruleName = ruleName; in FailedPredicateException() 52 return "FailedPredicateException("+ruleName+",{"+predicateText+"}?)"; in toString()
|
D | Parser.java | 94 public void traceIn(String ruleName, int ruleIndex) { in traceIn() argument 95 super.traceIn(ruleName, ruleIndex, input.LT(1)); in traceIn() 98 public void traceOut(String ruleName, int ruleIndex) { in traceOut() argument 99 super.traceOut(ruleName, ruleIndex, input.LT(1)); in traceOut()
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/ |
D | FailedPredicateException.cs | 67 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()
|
D | Parser.cs | 120 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/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/ |
D | FailedPredicateException.cs | 62 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()
|
D | Parser.cs | 106 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/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/ |
D | LeftRecursiveRules.stg | 36 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/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/ |
D | Profiler.cs | 99 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 …]
|
D | Tracer.cs | 58 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/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/ |
D | FailedPredicateException.js | 12 org.antlr.runtime.FailedPredicateException = function(input, ruleName, predicateText){ argument 14 this.ruleName = ruleName; 27 return "FailedPredicateException("+this.ruleName+",{"+this.predicateText+"}?)";
|
D | Parser.js | 62 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/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/ |
D | Profiler.cs | 101 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 …]
|
D | Tracer.cs | 55 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()
|
/external/antlr/antlr-3.4/runtime/ObjC/Framework/ |
D | ANTLRFailedPredicateException.m | 33 @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;
|
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/debug/ |
D | Tracer.java | 45 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()
|
D | Profiler.java | 88 public String ruleName; field in Profiler.DecisionDescriptor 155 public void enterRule(String grammarFileName, String ruleName) { in enterRule() argument 159 uniqueRules.add(grammarFileName+":"+ruleName); in enterRule() 162 currentRuleName.push( ruleName ); in enterRule() 165 public void exitRule(String grammarFileName, String ruleName) { in exitRule() argument 179 String ruleName) in examineRuleMemoization() argument 181 if (dump) System.out.println("examine memo "+ruleName+" at "+input.index()+": "+stopIndex); in examineRuleMemoization() 200 String ruleName) in memoize() argument 203 if (dump) System.out.println("memoize "+ruleName); in memoize() 229 descriptor.ruleName = (String)currentRuleName.peek(); in enterDecision() [all …]
|
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/CSharp3/ |
D | CSharp3.stg | 172 partial void EnterRule(string ruleName, int ruleIndex); 173 partial void LeaveRule(string ruleName, int ruleIndex); 303 partial void EnterRule(string ruleName, int ruleIndex); 304 partial void LeaveRule(string ruleName, int ruleIndex); 408 synpredRule(ruleName, ruleDescriptor, block, description, nakedBlock) ::= 411 partial void EnterRule_<ruleName>_fragment(); 412 partial void LeaveRule_<ruleName>_fragment(); 414 // $ANTLR start <ruleName> 415 public <!final !>void <ruleName>_fragment(<ruleDescriptor.parameterScope:parameterScope()>) 418 EnterRule_<ruleName>_fragment(); [all …]
|
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/CSharp2/ |
D | CSharp2.stg | 176 protected virtual void EnterRule(string ruleName, int ruleIndex) {} 178 protected virtual void LeaveRule(string ruleName, int ruleIndex) {} 310 protected virtual void EnterRule(string ruleName, int ruleIndex) {} 312 protected virtual void LeaveRule(string ruleName, int ruleIndex) {} 426 synpredRule(ruleName, ruleDescriptor, block, description, nakedBlock) ::= 429 protected virtual void EnterRule_<ruleName>_fragment() {} 431 protected virtual void LeaveRule_<ruleName>_fragment() {} 433 // $ANTLR start <ruleName> 434 public <!final !>void <ruleName>_fragment(<ruleDescriptor.parameterScope:parameterScope()>) 437 EnterRule_<ruleName>_fragment(); [all …]
|