Home
last modified time | relevance | path

Searched refs:ruleDescriptor (Results 1 – 25 of 47) sorted by relevance

12

/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Delphi/
DDelphi.stg163 <rules: {r | <if(!r.ruleDescriptor.isSynPred)><lexerRuleDeclaration(r)><endif>}>
228 procedure m<rule.ruleName>(<rule.ruleDescriptor.parameterScope:parameterScope(scope=rule)>);<\n>
310 <rules: {r | <genericParserRuleReturnType(rule=r, ruleDescriptor=r.ruleDescriptor)>}>
312 <rules: {r | <genericParserRuleInterface(rule=r, ruleDescriptor=r.ruleDescriptor)>}>
350 <rules: {r | <genericParserRuleDeclaration(rule=r, ruleDescriptor=r.ruleDescriptor)>}>
355 <grammar.delegatedRules:{ruleDescriptor| <delegatedRuleDeclaration(ruleDescriptor)>}>
400 <rules: {r | <ruleAttributeScopeInit(scope=r.ruleDescriptor.ruleScope)>}>
406 <grammar.delegatedRules:{ruleDescriptor| <delegatedRuleImplementation(ruleDescriptor)>}; separator=…
447 delegatedRuleDeclaration(ruleDescriptor) ::= <<
448 <if(ruleDescriptor.hasMultipleReturnValues)>
[all …]
DAST.stg76 function T<grammar.recognizerName>.T<ruleDescriptor:returnStructName()>.GetTree: IANTLRInterface;
81 procedure T<grammar.recognizerName>.T<ruleDescriptor:returnStructName()>.SetTree(const Value: IANTL…
109 <ruleDescriptor.tokenLabels:{<it.label.text>_tree := nil;}; separator="\n">
110 <ruleDescriptor.tokenListLabels:{<it.label.text>_tree := nil;}; separator="\n">
111 <ruleDescriptor.allTokenRefsInAltsWithRewrites:{Locals['Stream_<it>'] := TRewriteRule<rewriteElemen…
112 <ruleDescriptor.allRuleRefsInAltsWithRewrites:{Locals['Stream_<it>'] := TRewriteRuleSubtreeStream.C…
117 <ruleDescriptor.tokenLabels:{<it.label.text>_tree: I<ASTLabelType>;}; separator="\n">
118 <ruleDescriptor.tokenListLabels:{<it.label.text>_tree: I<ASTLabelType>;}; separator="\n">
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Cpp/
DCpp.stg344 <rules:{r | <if(r.ruleDescriptor.isSynPred)> struct <r.ruleDescriptor.name> {\}; <endif>}; separato…
382 …<rules:{r | <if(r.ruleDescriptor.ruleScope)><ruleAttributeScopeDecl(scope=r.ruleDescriptor.ruleSco…
396 <rules: {r |<if(r.ruleDescriptor.ruleScope)>
397 <ruleAttributeScopeDef(scope=r.ruleDescriptor.ruleScope)>
416 …es:{r | <if(!r.ruleDescriptor.isSynPred)><headerReturnType(ruleDescriptor=r.ruleDescriptor)> m<r.
417ruleDescriptor.isSynPred)> <headerReturnType(ruleDescriptor=r.ruleDescriptor)> msynpred( antlr3::…
418 …void m<r.ruleDescriptor.name>_fragment (<r.ruleDescriptor.parameterScope:parameterScope()>);<endif…
421 <rules:{r | <headerReturnScope(ruleDescriptor=r.ruleDescriptor)>}>
422 …les:{r | <if(!r.ruleDescriptor.isSynPred)> <headerReturnType(ruleDescriptor=r.ruleDescriptor)> <r.
423ruleDescriptor.isSynPred)> <headerReturnType(ruleDescriptor=r.ruleDescriptor)> msynpred( antlr3::…
[all …]
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Ruby/
DRuby.stg205 <rules:{it | <ruleAttributeScopeClass(.ruleDescriptor.ruleScope)>}>
233 <grammar.delegatedRules:{ruleDescriptor|<delegateRule(ruleDescriptor)><\n>}>
256 …ributeScopeStack()><\n><endif>}><rules:{it | <ruleAttributeScopeStack(.ruleDescriptor.ruleScope)>}>
273 synpredRule(ruleName, ruleDescriptor, block, description, nakedBlock) ::= <<
283 def <ruleName><if(ruleDescriptor.parameterScope)>( <ruleDescriptor.parameterScope:parameterScope()>…
295 rule(ruleName, ruleDescriptor, block, emptyRule, description, exceptions, finally, memoize) ::= <<
296 <returnScope(scope=ruleDescriptor.returnScope)>
304 def <ruleName><if(ruleDescriptor.parameterScope)>( <ruleDescriptor.parameterScope:parameterScope()>…
305 …etUp()><ruleDeclarations()><ruleLabelDefs()><action(name="init", code=ruleDescriptor.actions.init)>
310 <if(ruleDescriptor.modifier)>
[all …]
DDbg.stg47 @debug_listener.location(<ruleDescriptor.tree.line>, <ruleDescriptor.tree.column>)
51 @debug_listener.location(<ruleDescriptor.EORNode.line>, <ruleDescriptor.EORNode.column>)
DAST.stg23 <[ruleDescriptor.tokenLabels,ruleDescriptor.wildcardTreeLabels,ruleDescriptor.wildcardTreeListLabel…
25 <ruleDescriptor.allTokenRefsInAltsWithRewrites
27 <ruleDescriptor.allRuleRefsInAltsWithRewrites
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/CSharp3/
DCSharp3.stg338 <grammar.delegatedRules:{ruleDescriptor|
339ruleDescriptor=ruleDescriptor)> <returnType(ruleDescriptor)> <ruleDescriptor.name; format="id">(<r…
432 synpredRule(ruleName, ruleDescriptor, block, description, nakedBlock) ::=
439 <ruleModifier(grammar=grammar,ruleDescriptor=ruleDescriptor)> void <ruleName>_fragment(<ruleDescrip…
443 EnterRule("<ruleName>_fragment", <ruleDescriptor.index>);
444 TraceIn("<ruleName>_fragment", <ruleDescriptor.index>);
451 TraceOut("<ruleName>_fragment", <ruleDescriptor.index>);
452 LeaveRule("<ruleName>_fragment", <ruleDescriptor.index>);
495 if (state.backtracking > 0 && AlreadyParsedRule(input, <ruleDescriptor.index>)) { <returnFromRule()…
530 rule(ruleName,ruleDescriptor,block,emptyRule,description,exceptions,finally,memoize) ::= <<
[all …]
DASTTreeParser.stg48 <if(!ruleDescriptor.isSynPred)>
58 <if(!ruleDescriptor.isSynPred)>
74 <if(!ruleDescriptor.isSynPred)>
119 <if(!ruleDescriptor.isSynPred)>
129 <if(!ruleDescriptor.isSynPred)>
152 <if(!ruleDescriptor.isSynPred)>
162 <if(!ruleDescriptor.isSynPred)>
182 <if(!ruleDescriptor.isSynPred)>
192 <if(!ruleDescriptor.isSynPred)>
212 <if(!ruleDescriptor.isSynPred)>
[all …]
DASTParser.stg55 <if(!ruleDescriptor.isSynPred)>
69 <if(!ruleDescriptor.isSynPred)>
109 <super.matchSet(postmatchCode={<if(!ruleDescriptor.isSynPred)><if(backtracking)>if (<actions.(actio…
125 <super.matchSet(postmatchCode={<if(!ruleDescriptor.isSynPred)><if(backtracking)>if (<actions.(actio…
133 <if(!ruleDescriptor.isSynPred)>
169 <if(!ruleDescriptor.isSynPred)>
181 <if(!ruleDescriptor.isSynPred)>
DAST.stg91 ruleLabelDefs(ruleDescriptor, labelType, ASTLabelType, rewriteElementType) ::= <%
93 <if(!ruleDescriptor.isSynPred)>
94 <[ruleDescriptor.tokenLabels,ruleDescriptor.wildcardTreeLabels,ruleDescriptor.wildcardTreeListLabel…
96 <ruleDescriptor.tokenListLabels:{it|<\n><ASTLabelType> <it.label.text>_tree = default(<ASTLabelType…
97 <ruleDescriptor.allTokenRefsInAltsWithRewrites
99 <ruleDescriptor.allRuleRefsInAltsWithRewrites
110 <if(autoAST && outerAlt && !rewriteMode && !ruleDescriptor.isSynPred)>
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/CSharp2/
DCSharp2.stg346 <grammar.delegatedRules:{ruleDescriptor|
347ruleDescriptor=ruleDescriptor)> <returnType(ruleDescriptor)> <ruleDescriptor.name; format="id">(<r…
450 synpredRule(ruleName, ruleDescriptor, block, description, nakedBlock) ::=
458 <ruleModifier(grammar,ruleDescriptor)> void <ruleName>_fragment(<ruleDescriptor.parameterScope:para…
462 EnterRule("<ruleName>_fragment", <ruleDescriptor.index>);
463 TraceIn("<ruleName>_fragment", <ruleDescriptor.index>);
470 TraceOut("<ruleName>_fragment", <ruleDescriptor.index>);
471 LeaveRule("<ruleName>_fragment", <ruleDescriptor.index>);
514 if (state.backtracking > 0 && AlreadyParsedRule(input, <ruleDescriptor.index>)) { <returnFromRule()…
549 rule(ruleName,ruleDescriptor,block,emptyRule,description,exceptions,finally,memoize) ::= <<
[all …]
DASTTreeParser.stg47 <if(!ruleDescriptor.isSynPred)>
57 <if(!ruleDescriptor.isSynPred)>
73 <if(!ruleDescriptor.isSynPred)>
118 <if(!ruleDescriptor.isSynPred)>
128 <if(!ruleDescriptor.isSynPred)>
151 <if(!ruleDescriptor.isSynPred)>
161 <if(!ruleDescriptor.isSynPred)>
181 <if(!ruleDescriptor.isSynPred)>
191 <if(!ruleDescriptor.isSynPred)>
211 <if(!ruleDescriptor.isSynPred)>
[all …]
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/C/
DC.stg505 <rules: {r |<if(r.ruleDescriptor.ruleScope)>
506 <ruleAttributeScopeFuncDecl(scope=r.ruleDescriptor.ruleScope)>
507 <ruleAttributeScopeFuncs(scope=r.ruleDescriptor.ruleScope)>
590 …rules:{r | <if(!r.ruleDescriptor.isSynPred)> - <headerReturnType(ruleDescriptor=r.ruleDescriptor,.…
686 <rules:{r |<headerReturnScope(ruleDescriptor=r.ruleDescriptor,...)>}>
689 <rules:{r |<ruleAttributeScopeDecl(scope=r.ruleDescriptor.ruleScope)>}>
725 <rules: {r |<if(r.ruleDescriptor.ruleScope)>
726 <ruleAttributeScopeDef(scope=r.ruleDescriptor.ruleScope)>
730ruleDescriptor.isSynPred)><headerReturnType(ruleDescriptor=r.ruleDescriptor)> (*m<r.ruleDescriptor
733ruleDescriptor=r.ruleDescriptor)> (*<r.ruleDescriptor.name>) (struct <name>_Ctx_struct * ctx<if(r.
[all …]
DDbg.stg138 DBG->location(DBG, <ruleDescriptor.tree.line>, <ruleDescriptor.tree.column>);<\n>
142 DBG->location(DBG, <ruleDescriptor.EORNode.line>, <ruleDescriptor.EORNode.column>);<\n>
227 goto rule<ruleDescriptor.name>Ex;
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Java/
DJava.stg254 <grammar.delegatedRules:{ruleDescriptor|
255ruleDescriptor)> <ruleDescriptor.name>(<ruleDescriptor.parameterScope:parameterScope()>) throws <r…
307 synpredRule(ruleName, ruleDescriptor, block, description, nakedBlock) ::=
310 public final void <ruleName>_fragment(<ruleDescriptor.parameterScope:parameterScope()>) throws <rul…
313 traceIn("<ruleName>_fragment", <ruleDescriptor.index>);
318 traceOut("<ruleName>_fragment", <ruleDescriptor.index>);
352 if ( state.backtracking>0 && alreadyParsedRule(input, <ruleDescriptor.index>) ) { <returnStatement(…
369 rule(ruleName,ruleDescriptor,block,emptyRule,description,exceptions,finally,memoize) ::= <<
370 <ruleAttributeScope(scope=ruleDescriptor.ruleScope)>
371 <returnScope(scope=ruleDescriptor.returnScope)>
[all …]
DASTTreeParser.stg44 <if(!ruleDescriptor.isSynPred)>
54 <if(!ruleDescriptor.isSynPred)>
70 <if(!ruleDescriptor.isSynPred)>
115 <if(!ruleDescriptor.isSynPred)>
125 <if(!ruleDescriptor.isSynPred)>
148 <if(!ruleDescriptor.isSynPred)>
158 <if(!ruleDescriptor.isSynPred)>
178 <if(!ruleDescriptor.isSynPred)>
188 <if(!ruleDescriptor.isSynPred)>
208 <if(!ruleDescriptor.isSynPred)>
[all …]
DAST.stg68 <if(!ruleDescriptor.isSynPred)>
69 <[ruleDescriptor.tokenLabels,ruleDescriptor.wildcardTreeLabels,
70ruleDescriptor.wildcardTreeListLabels]:{it | <ASTLabelType> <it.label.text>_tree=null;}; separator…
71 <ruleDescriptor.tokenListLabels:{it | <ASTLabelType> <it.label.text>_tree=null;}; separator="\n">
72 <if(ruleDescriptor.supportsLabelOptimization)>
73 <ruleDescriptor.allTokenRefsInRewrites
75 <ruleDescriptor.allRuleRefsInRewrites
78 <ruleDescriptor.allTokenRefsInAltsWithRewrites
80 <ruleDescriptor.allRuleRefsInAltsWithRewrites
94 <if(!rewriteMode && !ruleDescriptor.isSynPred)>
DASTParser.stg51 <if(!ruleDescriptor.isSynPred)>
65 <if(!ruleDescriptor.isSynPred)>
105 <super.matchSet(postmatchCode={<if(!ruleDescriptor.isSynPred)><if(backtracking)>if ( <actions.(acti…
121 <super.matchSet(postmatchCode={<if(!ruleDescriptor.isSynPred)><if(backtracking)>if ( <actions.(acti…
129 <if(!ruleDescriptor.isSynPred)>
165 <if(!ruleDescriptor.isSynPred)>
177 <if(!ruleDescriptor.isSynPred)>
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/ObjC/
DObjC.stg263 <rule.ruleDescriptor:{ruleDescriptor | <returnScopeInterface(scope=ruleDescriptor.returnScope)>}>}>
287ruleDescriptor:{ruleDescriptor|<returnType()>}>) <if(!rule.ruleDescriptor.isSynPred)>m<rule.ruleNa…
291 headerReturnScope(ruleDescriptor) ::= "<returnScopeInterface(...)>"
292 headerReturnType(ruleDescriptor) ::= <<
294 <if(!r.ruleDescriptor.isSynPred)>
297 <ruleDescriptor:returnType()>
300 <ruleDescriptor:returnType()>
319 <rules:{rule | <rule.ruleDescriptor:{ruleDescriptor |
320 <returnScopeImplementation(scope=ruleDescriptor.returnScope)>}>
582 <rule.ruleDescriptor:{ ruleDescriptor | <ruleAttributeScopeInterface(scope=ruleDescriptor.ruleScope…
[all …]
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/JavaScript/
DJavaScript.stg206 <grammar.delegatedRules:{ruleDescriptor|
207ruleDescriptor.name>: function(<ruleDescriptor.parameterScope:parameterScope(scope=it)>) \{ <if(ru…
257 synpredRule(ruleName, ruleDescriptor, block, description, nakedBlock) ::=
260 <ruleName>_fragment: function(<ruleDescriptor.parameterScope:parameterScope(scope=it)>) {
262 this.traceIn("<ruleName>_fragment", <ruleDescriptor.index>);
267 this.traceOut("<ruleName>_fragment", <ruleDescriptor.index>);
301 if ( this.state.backtracking>0 && this.alreadyParsedRule(this.input, <ruleDescriptor.index>) ) { re…
318 rule(ruleName,ruleDescriptor,block,emptyRule,description,exceptions,finally,memoize) ::= <<
319 <ruleAttributeScope(scope=ruleDescriptor.ruleScope)>
320 <returnScope(scope=ruleDescriptor.returnScope)>
[all …]
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Python/
DPython.stg240 <rules:{it|<ruleAttributeScopeClass(scope=it.ruleDescriptor.ruleScope)>}>
263 <rules:{it | <ruleAttributeScopeStack(scope=it.ruleDescriptor.ruleScope)>}>
288 <grammar.delegatedRules:{ruleDescriptor| <delegateRule(ruleDescriptor)> }; separator="\n">
298 delegateRule(ruleDescriptor) ::= <<
299 def <ruleDescriptor.name>(self, <ruleDescriptor.parameterScope:parameterScope()>):
300ruleDescriptor.hasReturnValue)>return <endif>self.<ruleDescriptor.grammar:delegateName()>.<ruleDes…
338 synpredRule(ruleName, ruleDescriptor, block, description, nakedBlock) ::=
341 def <ruleName>_fragment(self, <ruleDescriptor.parameterScope:parameterScope()>):
344 self.traceIn("<ruleName>_fragment", <ruleDescriptor.index>)
349 self.traceOut("<ruleName>_fragment", <ruleDescriptor.index>)
[all …]
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Python3/
DPython3.stg247 <rules:{it|<ruleAttributeScopeClass(scope=it.ruleDescriptor.ruleScope)>}>
270 <rules:{it | <ruleAttributeScopeStack(scope=it.ruleDescriptor.ruleScope)>}>
295 <grammar.delegatedRules:{ruleDescriptor| <delegateRule(ruleDescriptor)> }; separator="\n">
305 delegateRule(ruleDescriptor) ::= <<
306 def <ruleDescriptor.name>(self, <ruleDescriptor.parameterScope:parameterScope()>):
307ruleDescriptor.hasReturnValue)>return <endif>self.<ruleDescriptor.grammar:delegateName()>.<ruleDes…
345 synpredRule(ruleName, ruleDescriptor, block, description, nakedBlock) ::=
348 def <ruleName>_fragment(self, <ruleDescriptor.parameterScope:parameterScope()>):
351 self.traceIn("<ruleName>_fragment", <ruleDescriptor.index>)
356 self.traceOut("<ruleName>_fragment", <ruleDescriptor.index>)
[all …]
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Scala/
DScala.stg234 <grammar.delegatedRules:{ruleDescriptor|
236ruleDescriptor.name>(<ruleDescriptor.parameterScope:parameterScope()>): <returnType()> = \{ <if(ru…
278 synpredRule(ruleName, ruleDescriptor, block, description, nakedBlock) ::=
282 def <ruleName>_fragment(<ruleDescriptor.parameterScope:parameterScope()>): Unit = {
285 traceIn("<ruleName>_fragment", <ruleDescriptor.index>)
290 traceOut("<ruleName>_fragment", <ruleDescriptor.index>);
325 if ( state.backtracking>0 && alreadyParsedRule(input, <ruleDescriptor.index>) ) { return <ruleRetur…
342 rule(ruleName,ruleDescriptor,block,emptyRule,description,exceptions,finally,memoize) ::= <<
343 <ruleAttributeScope(scope=ruleDescriptor.ruleScope)>
344 <returnScope(scope=ruleDescriptor.returnScope)>
[all …]
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/ActionScript/
DActionScript.stg212 <grammar.delegatedRules:{ruleDescriptor|
213ruleDescriptor.name>(<ruleDescriptor.parameterScope:parameterScope()>):<returnType()> { <if(ruleDe…
260 synpredRule(ruleName, ruleDescriptor, block, description, nakedBlock) ::=
263 public final function <ruleName>_fragment(<ruleDescriptor.parameterScope:parameterScope()>):void {
266 traceIn("<ruleName>_fragment", <ruleDescriptor.index>);
271 traceOut("<ruleName>_fragment", <ruleDescriptor.index>);
305 if ( this.state.backtracking>0 && alreadyParsedRule(input, <ruleDescriptor.index>) ) { return <rule…
322 rule(ruleName,ruleDescriptor,block,emptyRule,description,exceptions,finally,memoize) ::= <<
323 <ruleAttributeScope(scope=ruleDescriptor.ruleScope)>
326 public final function <ruleName>(<ruleDescriptor.parameterScope:parameterScope()>):<returnType()> {
[all …]
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Perl5/
DPerl5.stg268 synpredRule(ruleName, ruleDescriptor, block, description, nakedBlock) ::=
272 # <ruleDescriptor.parameterScope:parameterScope(scope=it)>
275 $self->traceIn("<ruleName>_fragment", <ruleDescriptor.index>);
279 $self->traceOut("<ruleName>_fragment", <ruleDescriptor.index>);
315 if ( backtracking>0 && alreadyParsedRule(input, <ruleDescriptor.index>) ) { return <ruleReturnValue…
336 rule(ruleName,ruleDescriptor,block,emptyRule,description,exceptions,finally,memoize) ::= <<
337 <ruleAttributeScope(scope=ruleDescriptor.ruleScope)>
338 <returnScope(scope=ruleDescriptor.returnScope)>
343 my ($self, <ruleDescriptor.parameterScope:parameterScope(scope=it)>) = @_;
344 <if(trace)>$self->traceIn("<ruleName>", <ruleDescriptor.index>);<endif>
[all …]

12