Home
last modified time | relevance | path

Searched refs:referencedRule (Results 1 – 16 of 16) sorted by relevance

/external/antlr/tool/src/main/java/org/antlr/tool/
DRuleLabelScope.java78 public Rule referencedRule; field in RuleLabelScope
80 public RuleLabelScope(Rule referencedRule, Token actionToken) { in RuleLabelScope() argument
81 super("ref_"+referencedRule.name,actionToken); in RuleLabelScope()
82 this.referencedRule = referencedRule; in RuleLabelScope()
96 if ( referencedRule.returnScope!=null ) { in getAttribute()
97 return referencedRule.returnScope.getAttribute(name); in getAttribute()
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/JavaScript/
DJavaScript.stg1126 ruleLabelType(referencedRule) ::= <<
1127 <if(referencedRule.hasMultipleReturnValues)>
1128 <referencedRule.grammar.recognizerName>.<referencedRule.name>_return
1130 <if(referencedRule.hasSingleReturnValue)>
1131 <referencedRule.singleValueReturnType>
1151 …abelType(referencedRule=label.referencedRule)>!> var <label.label.text> = <initValue(typeName=rule…
1211 ruleLabelRef(referencedRule,scope,attr) ::= <<
1212 <if(referencedRule.hasMultipleReturnValues)>
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Scala/
DScala.stg1177 ruleLabelType(referencedRule) ::= <<
1178 <if(referencedRule.hasMultipleReturnValues)>
1179 <referencedRule.name>_return
1181 <if(referencedRule.hasSingleReturnValue)>
1182 <referencedRule.singleValueReturnType>
1202 …text>: <ruleLabelType(referencedRule=label.referencedRule)> = <initValue(typeName=ruleLabelType(re…
1257 ruleLabelRef(referencedRule,scope,attr) ::= <%
1258 <if(referencedRule.hasMultipleReturnValues)>
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Java/
DJava.stg1244 ruleLabelType(referencedRule) ::= <%
1245 <if(referencedRule.hasMultipleReturnValues)>
1247 <elseif(referencedRule.hasSingleReturnValue)>
1248 <referencedRule.singleValueReturnType>
1267 <ruleLabelType(referencedRule=label.referencedRule)> <label.label.text> =
1268 <initValue(typeName=ruleLabelType(referencedRule=label.referencedRule))>;
1326 ruleLabelRef(referencedRule,scope,attr) ::= <%
1327 <if(referencedRule.hasMultipleReturnValues)>
1328 (<scope>!=null?((<returnType(referencedRule)>)<scope>).<attr.name>:<initValue(attr.type)>)
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Delphi/
DDelphi.stg768 <ruleDescriptor.ruleListLabels:{ll|<ll.label.text>: <ruleLabelType(referencedRule=ll.referencedRule
1575 ruleLabelType(referencedRule) ::= <<
1576 <if(referencedRule.hasMultipleReturnValues)>
1577 I<referencedRule.name>_return
1579 <if(referencedRule.hasSingleReturnValue)>
1580 <referencedRule.singleValueReturnType>
1600 <label.label.text> := <initValue(typeName=ruleLabelType(referencedRule=label.referencedRule))>;<\n>
1604 <label.label.text>: <ruleLabelType(referencedRule=label.referencedRule)>;
1670 ruleLabelRef(referencedRule,scope,attr) ::= <<
1671 <if(referencedRule.hasMultipleReturnValues)>
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Perl5/
DPerl5.stg1166 ruleLabelType(referencedRule) ::= <<
1167 <if(referencedRule.hasMultipleReturnValues)>
1168 <referencedRule.name>_return
1170 <if(referencedRule.hasSingleReturnValue)>
1171 <referencedRule.singleValueReturnType>
1191 my $<label.label.text> = <initValue(typeName=ruleLabelType(referencedRule=label.referencedRule))>;<…
1250 ruleLabelRef(referencedRule,scope,attr) ::= <<
1251 <if(referencedRule.hasMultipleReturnValues)>
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/ActionScript/
DActionScript.stg1110 ruleLabelType(referencedRule) ::= <<
1111 <if(referencedRule.hasMultipleReturnValues)>
1114 <if(referencedRule.hasSingleReturnValue)>
1115 <referencedRule.singleValueReturnType>
1135 ….text>:<ruleLabelType(referencedRule=label.referencedRule)> = <initValue(typeName=ruleLabelType(re…
1189 ruleLabelRef(referencedRule,scope,attr) ::= <<
1190 <if(referencedRule.hasMultipleReturnValues)>
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/CSharp2/
DCSharp2.stg1538 ruleLabelType(referencedRule) ::= <%
1539 <if(referencedRule.hasMultipleReturnValues)>
1541 <elseif(referencedRule.hasSingleReturnValue)>
1542 <referencedRule.singleValueReturnType>
1561 …leLabelType(referencedRule=label.referencedRule)> <label.label.text> = <initValue(typeName=ruleLab…
1628 ruleLabelRef(referencedRule,scope,attr) ::= <%
1629 <if(referencedRule.hasMultipleReturnValues)>
1630 (<scope>!=null?((<returnType(referencedRule)>)<scope>).<attr.name; format="id">:<initValue(attr.typ…
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/ObjC/
DObjC.stg1872 ruleLabelType(referencedRule) ::= <%
1873 <if(referencedRule.hasMultipleReturnValues)>
1874 <className()>_<referencedRule.name>_return *<else>
1875 <if(referencedRule.hasSingleReturnValue)><referencedRule.singleValueReturnType><else>
1889 …leLabelType(referencedRule=label.referencedRule)> <label.label.text> = <initValue(typeName=ruleLab…
2008 ruleLabelRef(referencedRule,scope,attr) ::= <<
2009 <if(referencedRule.hasMultipleReturnValues)>
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/CSharp3/
DCSharp3.stg1518 ruleLabelType(referencedRule) ::= <%
1519 <if(referencedRule.hasMultipleReturnValues)>
1521 <elseif(referencedRule.hasSingleReturnValue)>
1522 <referencedRule.singleValueReturnType>
1541 <ruleLabelType(label.referencedRule)> <label.label.text> = <initValue(ruleLabelType(label.reference…
1610 ruleLabelRef(referencedRule,scope,attr) ::= <%
1611 <if(referencedRule.hasMultipleReturnValues)>
1612 (<scope>!=null?((<returnType(referencedRule)>)<scope>).<attr.name; format="id">:<initValue(attr.typ…
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/C/
DC.stg3008 ruleLabelType(referencedRule) ::= <%
3009 <if(referencedRule.hasMultipleReturnValues)>
3010 <referencedRule.grammar.recognizerName>_<referencedRule.name>_return
3012 <if(referencedRule.hasSingleReturnValue)>
3013 <referencedRule.singleValueReturnType>
3033 <ruleLabelType(referencedRule=label.referencedRule)> <label.label.text>;
3035 #define RETURN_TYPE_<label.label.text> <ruleLabelType(referencedRule=label.referencedRule)><\n>
3110 ruleLabelRef(referencedRule,scope,attr) ::= <<
3111 <if(referencedRule.hasMultipleReturnValues)>
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Cpp/
DCpp.stg2313 ruleLabelType(referencedRule) ::= <%
2314 <if(referencedRule.hasMultipleReturnValues)>
2315 <referencedRule.name>_return
2317 <if(referencedRule.hasSingleReturnValue)>
2318 <referencedRule.singleValueReturnType>
2338 <ruleLabelType(referencedRule=label.referencedRule)> <label.label.text>;
2459 ruleLabelRef(referencedRule,scope,attr) ::= <<
2460 <if(referencedRule.hasMultipleReturnValues)>
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Python3/
DPython3.stg1378 ruleLabelRef(referencedRule,scope,attr) ::= <%
1379 <if(referencedRule.hasMultipleReturnValues)>
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Ruby/
DRuby.stg1069 ruleLabelRef(referencedRule, scope, attr) ::= <<
1070 <if(referencedRule.hasMultipleReturnValues)>
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Python/
DPython.stg1360 ruleLabelRef(referencedRule,scope,attr) ::= <%
1361 <if(referencedRule.hasMultipleReturnValues)>
/external/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/
DActionTranslator.g404 st.add("referencedRule", refdRule);