Home
last modified time | relevance | path

Searched refs:ruleIndex (Results 1 – 25 of 103) sorted by relevance

12345

/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DCollationRuleParser.java132 ruleIndex = 0; in parse()
134 while(ruleIndex < rules.length()) { in parse()
135 char c = rules.charAt(ruleIndex); in parse()
137 ++ruleIndex; in parse()
148 ruleIndex = skipComment(ruleIndex + 1); in parse()
152 ++ruleIndex; in parse()
157 ++ruleIndex; in parse()
172 if(ruleIndex < rules.length() && rules.charAt(ruleIndex) == 0x23) { in parseRuleChain()
174 ruleIndex = skipComment(ruleIndex + 1); in parseRuleChain()
197 int i = ruleIndex + (result >> OFFSET_SHIFT); // skip over the relation operator in parseRuleChain()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
DCollationRuleParser.java136 ruleIndex = 0; in parse()
138 while(ruleIndex < rules.length()) { in parse()
139 char c = rules.charAt(ruleIndex); in parse()
141 ++ruleIndex; in parse()
152 ruleIndex = skipComment(ruleIndex + 1); in parse()
156 ++ruleIndex; in parse()
161 ++ruleIndex; in parse()
176 if(ruleIndex < rules.length() && rules.charAt(ruleIndex) == 0x23) { in parseRuleChain()
178 ruleIndex = skipComment(ruleIndex + 1); in parseRuleChain()
201 int i = ruleIndex + (result >> OFFSET_SHIFT); // skip over the relation operator in parseRuleChain()
[all …]
/external/icu/icu4c/source/i18n/
Dcollationruleparser.cpp64 ruleIndex(0) { in CollationRuleParser()
92 ruleIndex = 0; in parse()
94 while(ruleIndex < rules->length()) { in parse()
95 UChar c = rules->charAt(ruleIndex); in parse()
97 ++ruleIndex; in parse()
108 ruleIndex = skipComment(ruleIndex + 1); in parse()
113 ++ruleIndex; in parse()
118 ++ruleIndex; in parse()
136 if(ruleIndex < rules->length() && rules->charAt(ruleIndex) == 0x23) { in parseRuleChain()
138 ruleIndex = skipComment(ruleIndex + 1); in parseRuleChain()
[all …]
/external/antlr/runtime/JavaScript/src/org/antlr/runtime/
DBaseRecognizer.js842 getRuleMemoization: function(ruleIndex, ruleStartIndex) { argument
843 if ( !this.state.ruleMemo[ruleIndex] ) {
844 this.state.ruleMemo[ruleIndex] = {};
847 this.state.ruleMemo[ruleIndex][ruleStartIndex];
866 alreadyParsedRule: function(input, ruleIndex) { argument
867 var stopIndex = this.getRuleMemoization(ruleIndex, input.index());
888 ruleIndex, argument
896 if ( ruleIndex >= this.state.ruleMemo.length ) {
897 …w new Error("!!!!!!!!! memo size is "+this.state.ruleMemo.length+", but rule index is "+ruleIndex);
899 if ( org.antlr.lang.isValue(this.state.ruleMemo[ruleIndex]) ) {
[all …]
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/Java/src/main/java/org/antlr/runtime/
DBaseRecognizer.java793 public int getRuleMemoization(int ruleIndex, int ruleStartIndex) { in getRuleMemoization() argument
794 if ( state.ruleMemo[ruleIndex]==null ) { in getRuleMemoization()
795 state.ruleMemo[ruleIndex] = new HashMap<Integer, Integer>(); in getRuleMemoization()
798 state.ruleMemo[ruleIndex].get(ruleStartIndex); in getRuleMemoization()
814 public boolean alreadyParsedRule(IntStream input, int ruleIndex) { in alreadyParsedRule() argument
815 int stopIndex = getRuleMemoization(ruleIndex, input.index()); in alreadyParsedRule()
834 int ruleIndex, in memoize() argument
841 if ( ruleIndex >= state.ruleMemo.length ) { in memoize()
842 …stem.err.println("!!!!!!!!! memo size is "+state.ruleMemo.length+", but rule index is "+ruleIndex); in memoize()
844 if ( state.ruleMemo[ruleIndex]!=null ) { in memoize()
[all …]
DSerializedGrammar.java92 int ruleIndex; field in SerializedGrammar.RuleRef
93 public RuleRef(int ruleIndex) { this.ruleIndex = ruleIndex; } in RuleRef() argument
95 public String toString() { return String.valueOf(ruleIndex); } in toString()
168 int ruleIndex = in.readShort(); in readAlt() local
169 alt.add(new RuleRef(ruleIndex)); in readAlt()
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/runtime/Python3/antlr3/
Drecognizers.py886 def getRuleMemoization(self, ruleIndex, ruleStartIndex): argument
895 if ruleIndex not in self._state.ruleMemo:
896 self._state.ruleMemo[ruleIndex] = {}
898 return self._state.ruleMemo[ruleIndex].get(
903 def alreadyParsedRule(self, input, ruleIndex): argument
915 stopIndex = self.getRuleMemoization(ruleIndex, input.index())
928 def memoize(self, input, ruleIndex, ruleStartIndex, success): argument
939 if ruleIndex in self._state.ruleMemo:
940 self._state.ruleMemo[ruleIndex][ruleStartIndex] = stopTokenIndex
943 def traceIn(self, ruleName, ruleIndex, inputSymbol): argument
[all …]
/external/antlr/runtime/Python/antlr3/
Drecognizers.py911 def getRuleMemoization(self, ruleIndex, ruleStartIndex): argument
920 if ruleIndex not in self._state.ruleMemo:
921 self._state.ruleMemo[ruleIndex] = {}
923 return self._state.ruleMemo[ruleIndex].get(
928 def alreadyParsedRule(self, input, ruleIndex): argument
940 stopIndex = self.getRuleMemoization(ruleIndex, input.index())
953 def memoize(self, input, ruleIndex, ruleStartIndex, success): argument
964 if ruleIndex in self._state.ruleMemo:
965 self._state.ruleMemo[ruleIndex][ruleStartIndex] = stopTokenIndex
968 def traceIn(self, ruleName, ruleIndex, inputSymbol): argument
[all …]
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime/
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()
DBaseRecognizer.cs960 public virtual int GetRuleMemoization( int ruleIndex, int ruleStartIndex ) in GetRuleMemoization() argument
962 if ( state.ruleMemo[ruleIndex] == null ) in GetRuleMemoization()
964 state.ruleMemo[ruleIndex] = new Dictionary<int, int>(); in GetRuleMemoization()
968 if ( !state.ruleMemo[ruleIndex].TryGetValue( ruleStartIndex, out stopIndex ) ) in GetRuleMemoization()
987 public virtual bool AlreadyParsedRule( IIntStream input, int ruleIndex ) in AlreadyParsedRule() argument
989 int stopIndex = GetRuleMemoization( ruleIndex, input.Index ); in AlreadyParsedRule()
1013 int ruleIndex, in Memoize() argument
1022 if ( ruleIndex >= state.ruleMemo.Length ) in Memoize()
1025 ….WriteLine("!!!!!!!!! memo size is " + state.ruleMemo.Length + ", but rule index is " + ruleIndex); in Memoize()
1027 if ( state.ruleMemo[ruleIndex] != null ) in Memoize()
[all …]
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
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()
DBaseRecognizer.cs850 public virtual int GetRuleMemoization(int ruleIndex, int ruleStartIndex) { in GetRuleMemoization() argument
851 if (state.ruleMemo[ruleIndex] == null) { in GetRuleMemoization()
852 state.ruleMemo[ruleIndex] = new Dictionary<int, int>(); in GetRuleMemoization()
856 if (!state.ruleMemo[ruleIndex].TryGetValue(ruleStartIndex, out stopIndex)) in GetRuleMemoization()
875 public virtual bool AlreadyParsedRule(IIntStream input, int ruleIndex) { in AlreadyParsedRule() argument
876 int stopIndex = GetRuleMemoization(ruleIndex, input.Index); in AlreadyParsedRule()
896 int ruleIndex, in Memoize() argument
903 if (ruleIndex >= state.ruleMemo.Length) { in Memoize()
905 ….WriteLine("!!!!!!!!! memo size is " + state.ruleMemo.Length + ", but rule index is " + ruleIndex); in Memoize()
907 if (state.ruleMemo[ruleIndex] != null) { in Memoize()
[all …]
/external/antlr/runtime/Python3/tests/
Dt044trace.py19 def traceIn(self, ruleName, ruleIndex): argument
23 def traceOut(self, ruleName, ruleIndex): argument
42 def traceIn(self, ruleName, ruleIndex): argument
46 def traceOut(self, ruleName, ruleIndex): argument
/external/antlr/runtime/Python/tests/
Dt044trace.py19 def traceIn(self, ruleName, ruleIndex): argument
23 def traceOut(self, ruleName, ruleIndex): argument
42 def traceIn(self, ruleName, ruleIndex): argument
46 def traceOut(self, ruleName, ruleIndex): argument
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/
DTreeParser.cs197 public virtual void TraceIn( string ruleName, int ruleIndex ) in TraceIn() argument
199 base.TraceIn( ruleName, ruleIndex, input.LT( 1 ) ); in TraceIn()
203 public virtual void TraceOut( string ruleName, int ruleIndex ) in TraceOut() argument
205 base.TraceOut( ruleName, ruleIndex, input.LT( 1 ) ); in TraceOut()
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
DTreeParser.cs178 public virtual void TraceIn(string ruleName, int ruleIndex) { in TraceIn() argument
179 base.TraceIn(ruleName, ruleIndex, input.LT(1)); in TraceIn()
183 public virtual void TraceOut(string ruleName, int ruleIndex) { in TraceOut() argument
184 base.TraceOut(ruleName, ruleIndex, input.LT(1)); in TraceOut()
/external/antlr/runtime/ObjC/Framework/
DBaseRecognizer.h159 - (NSInteger) getRuleMemoization:(NSInteger)ruleIndex StartIndex:(NSInteger)ruleStartIndex;
160 - (BOOL) alreadyParsedRule:(id<IntStream>)anInput RuleIndex:(NSInteger)ruleIndex;
162 RuleIndex:(NSInteger)ruleIndex
165 - (void)traceIn:(NSString *)ruleName Index:(NSInteger)ruleIndex Object:(id)inputSymbol;
166 - (void)traceOut:(NSString *)ruleName Index:(NSInteger)ruleIndex Object:(id)inputSymbol;
/external/antlr/runtime/JavaScript/src/org/antlr/runtime/tree/
DTreeParser.js115 traceIn: function(ruleName, ruleIndex) { argument
116 TP.superclass.traceIn.call(this, ruleName, ruleIndex, this.input.LT(1));
119 traceOut: function(ruleName, ruleIndex) { argument
120 TP.superclass.traceOut.call(this, ruleName, ruleIndex, this.input.LT(1));
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/ObjC/
DDbg.stg79 - (BOOL) alreadyParsedRule:(id<IntStream>) input Index:(NSInteger) ruleIndex
81 … examineRuleMemoization:input, ruleIndex, <grammar.composite.rootGrammar.recognizerName>.ruleNames…
82 return super.alreadyParsedRule(input, ruleIndex);
84 - (void) memoize:(id<IntStream>)input RuleIndex:(NSInteger)ruleIndex StartIndex:(NSInteger)ruleStar…
86 … memoize:input RuleIndex:ruleIndex StartIndex:ruleStartIndex [<grammar.composite.rootGrammar.recog…
87 [super memoize:input RuleIndex:ruleIndex StartIndex:ruleStartIndex];
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/CSharp3/
DDbg.stg68 public override bool AlreadyParsedRule( IIntStream input, int ruleIndex )
70 int stopIndex = GetRuleMemoization(ruleIndex, input.Index);
71 …).ExamineRuleMemoization(input, ruleIndex, stopIndex, <grammar.composite.rootGrammar.recognizerNam…
72 return base.AlreadyParsedRule(input, ruleIndex);
74 public override void Memoize( IIntStream input, int ruleIndex, int ruleStartIndex )
76 …(Profiler)dbg).Memoize(input, ruleIndex, ruleStartIndex, <grammar.composite.rootGrammar.recognizer…
77 base.Memoize(input, ruleIndex, ruleStartIndex);
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Java/
DDbg.stg65 public boolean alreadyParsedRule(IntStream input, int ruleIndex) {
66 int stopIndex = getRuleMemoization(ruleIndex, input.index());
67 …).examineRuleMemoization(input, ruleIndex, stopIndex, <grammar.composite.rootGrammar.recognizerNam…
68 return super.alreadyParsedRule(input, ruleIndex);
73 int ruleIndex,
76 …(Profiler)dbg).memoize(input, ruleIndex, ruleStartIndex, <grammar.composite.rootGrammar.recognizer…
77 super.memoize(input, ruleIndex, ruleStartIndex);
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/CSharp2/
DDbg.stg69 public override bool AlreadyParsedRule( IIntStream input, int ruleIndex )
71 int stopIndex = GetRuleMemoization(ruleIndex, input.Index);
72 …).ExamineRuleMemoization(input, ruleIndex, stopIndex, <grammar.composite.rootGrammar.recognizerNam…
73 return base.AlreadyParsedRule(input, ruleIndex);
75 public override void Memoize( IIntStream input, int ruleIndex, int ruleStartIndex )
77 …(Profiler)dbg).Memoize(input, ruleIndex, ruleStartIndex, <grammar.composite.rootGrammar.recognizer…
78 base.Memoize(input, ruleIndex, ruleStartIndex);
/external/antlr/runtime/C/include/
Dantlr3baserecognizer.h280 ANTLR3_INTKEY ruleIndex,
287 ANTLR3_MARKER ruleIndex);
293 ANTLR3_MARKER ruleIndex,

12345