/external/antlr/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 | 92 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 …]
|
D | Grammar.java | 1018 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/Python3/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/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/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/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() 53 return "FailedPredicateException("+ruleName+",{"+predicateText+"}?)"; in toString()
|
D | Parser.java | 96 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/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/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/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/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/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+"}?)";
|
/external/antlr/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/runtime/ObjC/Framework/ |
D | FailedPredicateException.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/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 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 …]
|