Home
last modified time | relevance | path

Searched refs:backtracking (Results 1 – 25 of 161) sorted by relevance

1234567

/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Perl5/
DASTTreeParser.stg54 <if(backtracking)>if ( state.backtracking==0 ) {<endif>
60 <if(backtracking)>}<endif>
77 <if(backtracking)>if ( state.backtracking==0 )<endif>
118 <if(backtracking)>if ( state.backtracking==0 ) {<endif>
125 <if(backtracking)>}<endif>
127 <if(backtracking)>if ( state.backtracking==0 )<endif>
143 <if(backtracking)>if ( state.backtracking==0 ) {<endif>
150 <if(backtracking)>}<endif>
166 <if(backtracking)>if ( state.backtracking==0 ) {<endif>
173 <if(backtracking)>}<endif>
[all …]
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/
DParseTreeBuilder.cs49 int backtracking = 0; field in Antlr.Runtime.Debug.ParseTreeBuilder
84 backtracking++; in EnterDecision()
88 backtracking--; in ExitDecision()
93 if ( backtracking > 0 ) in EnterRule()
103 if ( backtracking > 0 ) in ExitRule()
115 if ( backtracking > 0 ) in ConsumeToken()
126 if ( backtracking > 0 ) in ConsumeHiddenToken()
133 if ( backtracking > 0 ) in RecognitionException()
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/
DParseTreeBuilder.cs47 int backtracking = 0; field in Antlr.Runtime.Debug.ParseTreeBuilder
75 backtracking++; in EnterDecision()
78 backtracking--; in ExitDecision()
82 if (backtracking > 0) in EnterRule()
91 if (backtracking > 0) in ExitRule()
101 if (backtracking > 0) in ConsumeToken()
111 if (backtracking > 0) in ConsumeHiddenToken()
117 if (backtracking > 0) in RecognitionException()
/external/doclava/src/com/google/doclava/parser/
DJavaParser.java474 if ( state.backtracking>0 && alreadyParsedRule(input, 1) ) { return ; } in compilationUnit()
636 if ( state.backtracking>0 ) { memoize(input, 1, compilationUnit_StartIndex); } in compilationUnit()
662 if ( state.backtracking>0 && alreadyParsedRule(input, 2) ) { return ; } in packageDeclaration()
687 if ( state.backtracking>0 ) { memoize(input, 2, packageDeclaration_StartIndex); } in packageDeclaration()
713 if ( state.backtracking>0 && alreadyParsedRule(input, 3) ) { return ; } in importDeclaration()
739 if (state.backtracking>0) {state.failed=true; return ;} in importDeclaration()
748 if (state.backtracking>0) {state.failed=true; return ;} in importDeclaration()
757 if (state.backtracking>0) {state.failed=true; return ;} in importDeclaration()
778 if (state.backtracking>0) {state.failed=true; return ;} in importDeclaration()
787 if (state.backtracking>0) {state.failed=true; return ;} in importDeclaration()
[all …]
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/debug/
DParseTreeBuilder.java46 int backtracking = 0; field in ParseTreeBuilder
70 public void enterDecision(int d, boolean couldBacktrack) { backtracking++; } in enterDecision()
72 public void exitDecision(int i) { backtracking--; } in exitDecision()
76 if ( backtracking>0 ) return; in enterRule()
85 if ( backtracking>0 ) return; in exitRule()
95 if ( backtracking>0 ) return; in consumeToken()
105 if ( backtracking>0 ) return; in consumeHiddenToken()
111 if ( backtracking>0 ) return; in recognitionException()
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/C/
DASTTreeParser.stg61 <if(backtracking)>if ( BACKTRACKING ==0 ) {<endif>
69 <if(backtracking)>}<endif>
91 <if(backtracking)>if ( BACKTRACKING ==0 ) {<endif>
97 <if(backtracking)>}<endif>
133 <if(backtracking)>if ( BACKTRACKING ==0 ) {<endif>
140 <if(backtracking)>}<endif>
142 <if(backtracking)>if ( BACKTRACKING ==0 ) {<endif>
144 <if(backtracking)>}<endif>
159 <if(backtracking)>if ( BACKTRACKING == 0 ) {<endif>
166 <if(backtracking)>}<endif>
[all …]
DASTParser.stg53 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) {<endif>
56 <if(backtracking)>}<endif>
65 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) {<endif>
68 <if(backtracking)>}<endif>
105 <super.matchSet(postmatchCode={<if(backtracking)>if ( <actions.(actionScope).synpredgate> ) <endif>…
121 <super.matchSet(postmatchCode={<if(backtracking)>if ( <actions.(actionScope).synpredgate> ) <endif>…
129 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) <endif>ADAPTOR->addChild(ADAPTOR, root…
138 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) <endif>root_0 = (<ASTLabelType>)(ADAPT…
163 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) {<endif>
166 <if(backtracking)>}<endif>
[all …]
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/JavaScript/
DASTParser.stg23 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) {<endif>
26 <if(backtracking)>}<endif>
35 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) {<endif>
38 <if(backtracking)>}<endif>
73 <super.matchSet(..., postmatchCode={<if(backtracking)>if ( <actions.(actionScope).synpredgate> ) <e…
89 <super.matchSet(..., postmatchCode={<if(backtracking)>if ( <actions.(actionScope).synpredgate> ) <e…
97 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) <endif>this.adaptor.addChild(root_0, <…
106 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) <endif>root_0 = this.adaptor.becomeRoo…
131 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) {<endif>
134 <if(backtracking)>}<endif>
[all …]
DASTTreeParser.stg25 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) {<endif>
31 <if(backtracking)>}<endif>
48 <if(backtracking)>if ( <actions.(actionScope).synpredgate> )<endif>
89 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) {<endif>
96 <if(backtracking)>}<endif>
98 <if(backtracking)>if ( <actions.(actionScope).synpredgate> )<endif>
114 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) {<endif>
121 <if(backtracking)>}<endif>
137 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) {<endif>
144 <if(backtracking)>}<endif>
[all …]
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/ActionScript/
DASTTreeParser.stg52 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) {<endif>
58 <if(backtracking)>}<endif>
75 <if(backtracking)>if ( <actions.(actionScope).synpredgate> )<endif>
116 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) {<endif>
123 <if(backtracking)>}<endif>
125 <if(backtracking)>if ( <actions.(actionScope).synpredgate> )<endif>
141 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) {<endif>
148 <if(backtracking)>}<endif>
163 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) {<endif>
166 <if(backtracking)>}<endif>
[all …]
DASTParser.stg51 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) {<endif>
54 <if(backtracking)>}<endif>
63 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) {<endif>
66 <if(backtracking)>}<endif>
101 <super.matchSet(postmatchCode={<if(backtracking)>if ( <actions.(actionScope).synpredgate> ) <endif>…
117 <super.matchSet(postmatchCode={<if(backtracking)>if ( <actions.(actionScope).synpredgate> ) <endif>…
125 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) <endif>adaptor.addChild(root_0, <label…
134 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) <endif>root_0 = <ASTLabelType>(adaptor…
159 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) {<endif>
162 <if(backtracking)>}<endif>
[all …]
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/ObjC/
DASTTreeParser.stg97 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) {<endif>
103 <if(backtracking)>}<endif>
121 <if(backtracking)>if ( <actions.(actionScope).synpredgate> )<endif>
164 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) {<endif>
171 <if(backtracking)>}<endif>
173 <if(backtracking)>if ( <actions.(actionScope).synpredgate> )<endif>
191 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) {<endif>
198 <if(backtracking)>}<endif>
215 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) {<endif>
218 <if(backtracking)>}<endif>
[all …]
DASTParser.stg52 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) {<endif>
55 <if(backtracking)>}<endif>
65 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) {<endif>
68 <if(backtracking)>}<endif>
107 <super.matchSet(postmatchCode={<if(backtracking)>if ( <actions.(actionScope).synpredgate> )<endif>
126 <super.matchSet(postmatchCode={<if(backtracking)>if ( <actions.(actionScope).synpredgate> )<endif>
136 <if(backtracking)>if ( <actions.(actionScope).synpredgate> )<endif>
147 <if(backtracking)>if ( <actions.(actionScope).synpredgate> )<endif>
177 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) {<endif>
179 <if(backtracking)>}<endif>
[all …]
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/CSharp2/
DASTParser.stg54 <if(backtracking)>if (state.backtracking == 0) {<endif>
57 <if(backtracking)>}<endif>
66 <if(backtracking)>if (<actions.(actionScope).synpredgate>) {<endif>
69 <if(backtracking)>}<endif>
104 <super.matchSet(postmatchCode={<if(backtracking)>if (<actions.(actionScope).synpredgate>) <endif>ad…
120 <super.matchSet(postmatchCode={<if(backtracking)>if (<actions.(actionScope).synpredgate>) <endif>ro…
128 <if(backtracking)>if (<actions.(actionScope).synpredgate>) <endif>adaptor.AddChild(root_0, <label>.…
137 <if(backtracking)>if (<actions.(actionScope).synpredgate>) <endif>root_0 = (<ASTLabelType>)adaptor.…
162 <if(backtracking)>if (<actions.(actionScope).synpredgate>) {<endif>
165 <if(backtracking)>}<endif>
[all …]
DASTTreeParser.stg58 <if(backtracking)>if (<actions.(actionScope).synpredgate>) {<endif>
64 <if(backtracking)>}<endif>
83 <if(backtracking)>if (<actions.(actionScope).synpredgate>)<endif>
132 <if(backtracking)>if (<actions.(actionScope).synpredgate>) {<endif>
139 <if(backtracking)>}<endif>
141 <if(backtracking)>if (<actions.(actionScope).synpredgate>)<endif>
165 <if(backtracking)>if (<actions.(actionScope).synpredgate>) {<endif>
172 <if(backtracking)>}<endif>
195 <if(backtracking)>if (<actions.(actionScope).synpredgate>) {<endif>
198 <if(backtracking)>}<endif>
[all …]
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Java/
DASTTreeParser.stg55 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) {<endif>
61 <if(backtracking)>}<endif>
80 <if(backtracking)>if ( <actions.(actionScope).synpredgate> )<endif>
129 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) {<endif>
136 <if(backtracking)>}<endif>
138 <if(backtracking)>if ( <actions.(actionScope).synpredgate> )<endif>
162 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) {<endif>
169 <if(backtracking)>}<endif>
192 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) {<endif>
195 <if(backtracking)>}<endif>
[all …]
DASTParser.stg52 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) {<endif>
55 <if(backtracking)>}<endif>
66 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) {<endif>
69 <if(backtracking)>}<endif>
105 <super.matchSet(postmatchCode={<if(!ruleDescriptor.isSynPred)><if(backtracking)>if ( <actions.(acti…
121 <super.matchSet(postmatchCode={<if(!ruleDescriptor.isSynPred)><if(backtracking)>if ( <actions.(acti…
130 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) <endif>adaptor.addChild(root_0, <label…
140 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) <endif>root_0 = (<ASTLabelType>)adapto…
166 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) {<endif>
169 <if(backtracking)>}<endif>
[all …]
/external/antlr/runtime/ObjC/Framework/
DRecognizerSharedState.m41 @synthesize backtracking;
76 backtracking = 0; // the level of backtracking
107 backtracking = 0; // the level of backtracking
139 backtracking = aState.backtracking;
294 - (NSInteger) backtracking
296 return backtracking;
301 backtracking = value;
306 backtracking++;
311 backtracking--;
316 return backtracking > 0;
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/CSharp3/
DASTParser.stg56 <if(backtracking)><\n>if (state.backtracking == 0) {<endif>
59 <if(backtracking)><\n>}<endif>
70 <if(backtracking)><\n>if (<actions.(actionScope).synpredgate>) {<endif>
73 <if(backtracking)><\n>}<endif>
109 <super.matchSet(postmatchCode={<if(!ruleDescriptor.isSynPred)><if(backtracking)>if (<actions.(actio…
125 <super.matchSet(postmatchCode={<if(!ruleDescriptor.isSynPred)><if(backtracking)>if (<actions.(actio…
134 <\n><if(backtracking)>if (<actions.(actionScope).synpredgate>) <endif>adaptor.AddChild(root_0, <lab…
144 <if(backtracking)>if (<actions.(actionScope).synpredgate>) <endif>root_0 = (<ASTLabelType>)adaptor.…
170 <if(backtracking)>if (<actions.(actionScope).synpredgate>) {<endif>
173 <if(backtracking)>}<endif>
[all …]
DASTTreeParser.stg59 <if(backtracking)>if (<actions.(actionScope).synpredgate>) {<endif>
65 <if(backtracking)>}<endif>
84 <if(backtracking)>if (<actions.(actionScope).synpredgate>)<endif>
133 <if(backtracking)>if (<actions.(actionScope).synpredgate>) {<endif>
140 <if(backtracking)>}<endif>
142 <if(backtracking)>if (<actions.(actionScope).synpredgate>)<endif>
166 <if(backtracking)>if (<actions.(actionScope).synpredgate>) {<endif>
173 <if(backtracking)>}<endif>
196 <if(backtracking)>if (<actions.(actionScope).synpredgate>) {<endif>
199 <if(backtracking)>}<endif>
[all …]
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Delphi/
DASTParser.stg55 <if(backtracking)>
61 <if(backtracking)>
72 <if(backtracking)>
78 <if(backtracking)>
115 <super.matchSet(..., postmatchCode={<if(backtracking)>if (State.Backtracking = 0) then <endif>Adapt…
131 <super.matchSet(..., postmatchCode={<if(backtracking)>if (State.Backtracking = 0) then <endif>Root[…
139 <if(backtracking)>if (State.Backtracking = 0) then <endif>Adaptor.AddChild(Root[0], <label>.Tree);
148 <if(backtracking)>if (State.Backtracking = 0) then <endif>Root[0] := Adaptor.BecomeRoot(<label>.Tre…
173 <if(backtracking)>
179 <if(backtracking)>
[all …]
DASTTreeParser.stg62 <if(backtracking)>if (State.Backtracking = 0) then
69 <if(backtracking)>end;<endif>
86 <if(backtracking)>if (State.Backtracking = 0) then <endif>
128 <if(backtracking)>
138 <if(backtracking)>
142 <if(backtracking)>if (State.Backtracking = 0) then <endif>
158 <if(backtracking)>
168 <if(backtracking)>
186 <if(backtracking)>if (State.Backtracking = 0) then begin <endif>
193 <if(backtracking)>end;<endif>
[all …]
/external/antlr/runtime/Ruby/lib/antlr3/
Drecognizers.rb112 self.backtracking = 0
392 raise( BacktrackingFailed ) if @state.backtracking > 0
828 @state.backtracking > 0
832 @state.backtracking
836 @state.backtracking = n
840 @state.backtracking += 1
850 @state.backtracking -= 1
857 alias backtracking backtracking_level
858 alias backtracking= backtracking_level=
885 @state.backtracking > 0 and @error_output.printf(
[all …]
Ddebug.rb121 self.backtracking = 0
210 @debug_listener.begin_backtrack( @state.backtracking )
214 @debug_listener.end_backtrack( @state.backtracking, successful )
218 @state.backtracking += 1
219 @debug_listener.begin_backtrack( @state.backtracking )
229 @debug_listener.end_backtrack( @state.backtracking, ( success rescue nil ) )
230 @state.backtracking -= 1
/external/antlr/runtime/Ruby/lib/antlr3/modes/
Dfilter.rb29 @state.backtracking = 1
47 @state.backtracking = 0
51 super( rule, start_index, success ) if @state.backtracking > 1
55 @state.backtracking > 1 ? super( rule ) : false

1234567