/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/ActionScript/ |
ASTTreeParser.stg | 44 var _first_0:<ASTLabelType> = null; 45 var _last:<ASTLabelType> = null;<\n> 54 retval.tree = <ASTLabelType>(_first_0); 56 retval.tree = <ASTLabelType>(adaptor.getParent(retval.tree)); 66 _last = <ASTLabelType>(input.LT(1)); 68 var _save_last_<treeLevel>:<ASTLabelType> = _last; 69 var _first_<treeLevel>:<ASTLabelType> = null; 71 var root_<treeLevel>:<ASTLabelType> = <ASTLabelType>(adaptor.nil()); 107 _last = <ASTLabelType>(input.LT(1)) [all...] |
ASTParser.stg | 42 retval.tree = <ASTLabelType>(adaptor.errorNode(input, Token(retval.start), input.LT(-1), re)); 65 root_0 = <ASTLabelType>(adaptor.becomeRoot(<label>_tree, root_0)); 117 <super.matchSet(postmatchCode={<if(backtracking)>if ( <actions.(actionScope).synpredgate> ) <endif>root_0 = <ASTLabelType>(adaptor.becomeRoot(<createNodeFromToken(...)>, root_0));},...)> 134 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) <endif>root_0 = <ASTLabelType>(adaptor.becomeRoot(<label>.tree, root_0)); 160 <label>_tree = <ASTLabelType>(adaptor.create(<label>)); 170 <label>_tree = <ASTLabelType>(adaptor.create(<label>)); 171 root_0 = <ASTLabelType>(adaptor.becomeRoot(<label>_tree, root_0)); 179 <ASTLabelType>(adaptor.create(<label>)) 186 retval.tree = <ASTLabelType>(adaptor.rulePostProcessing(root_0));
|
AST.stg | 54 <ASTLabelType> tree; 61 var root_0:<ASTLabelType> = null;<\n> 67 ruleDescriptor.wildcardTreeListLabels]:{it |var <it.label.text>_tree:<ASTLabelType>=null;}; separator="\n"> 68 <ruleDescriptor.tokenListLabels:{it |var <it.label.text>_tree:<ASTLabelType>=null;}; separator="\n"> 84 root_0 = <ASTLabelType>(adaptor.nil());<\n> 168 root_0 = <ASTLabelType>(adaptor.nil()); 173 <prevRuleRootRef()>.tree = <ASTLabelType>(adaptor.rulePostProcessing(root_0)); 283 var root_<treeLevel>:<ASTLabelType> = <ASTLabelType>(adaptor.nil()); 314 root_<treeLevel> = <ASTLabelType>(adaptor.becomeRoot(stream_<label>.nextNode(), root_<treeLevel>));<\n [all...] |
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/C/ |
ASTTreeParser.stg | 46 <ASTLabelType> _last;<\n> 47 <ASTLabelType> _first_0;<\n> 63 retval.tree = (<ASTLabelType>)_first_0; 66 retval.tree = (<ASTLabelType>)ADAPTOR->getParent(ADAPTOR, retval.tree); 77 _last = (<ASTLabelType>)LT(1); 79 <ASTLabelType> _save_last_<treeLevel>; 80 <ASTLabelType> _first_<treeLevel>; 82 <ASTLabelType> root_<treeLevel>; 87 root_<treeLevel> = (<ASTLabelType>)(ADAPTOR->nilNode(ADAPTOR)); 124 _last = (<ASTLabelType>)LT(1) [all...] |
ASTParser.stg | 45 retval.tree = (<ASTLabelType>)(ADAPTOR->errorNode(ADAPTOR, INPUT, retval.start, LT(-1), EXCEPTION)); 54 <label>_tree = (<ASTLabelType>)(ADAPTOR->create(ADAPTOR, <label>)); 67 root_0 = (<ASTLabelType>)(ADAPTOR->becomeRoot(ADAPTOR, <label>_tree, root_0)); 121 <super.matchSet(postmatchCode={<if(backtracking)>if ( <actions.(actionScope).synpredgate> ) <endif>root_0 = (<ASTLabelType>)(ADAPTOR->becomeRoot(ADAPTOR, <createNodeFromToken(...)>, root_0));},...)> 138 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) <endif>root_0 = (<ASTLabelType>)(ADAPTOR->becomeRoot(ADAPTOR, <label>.tree, root_0)); 164 <label>_tree = (<ASTLabelType>)(ADAPTOR->create(ADAPTOR, <label>)); 174 <label>_tree = (<ASTLabelType>)(ADAPTOR->create(ADAPTOR, <label>)); 175 root_0 = (<ASTLabelType>)(ADAPTOR->becomeRoot(ADAPTOR, <label>_tree, root_0)); 183 (<ASTLabelType>)(ADAPTOR->create(ADAPTOR, <label>)) 196 retval.tree = (<ASTLabelType>)(ADAPTOR->rulePostProcessing(ADAPTOR, root_0)) [all...] |
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Delphi/ |
ASTTreeParser.stg | 54 _First, _Save_Last: array [0..63] of I<ASTLabelType>; 55 _Last: I<ASTLabelType>; 65 RetVal.Tree := _First[0] as I<ASTLabelType>; 67 RetVal.Tree := Adaptor.GetParent(RetVal.Tree) as I<ASTLabelType>; 77 _Last := Input.LT(1) as I<ASTLabelType>; 82 Root[<treeLevel>] := Adaptor.GetNilNode as I<ASTLabelType>;<\n> 119 _Last := Input.LT(1) as I<ASTLabelType>; 125 _Last := Input.LT(1) as I<ASTLabelType>; 135 <label>_tree := Adaptor.DupNode(<label>) as I<ASTLabelType>; 155 _Last := Input.LT(1) as I<ASTLabelType>; [all...] |
ASTParser.stg | 47 Input.LT(-1), RE) as I<ASTLabelType>; 77 Root[0] := Adaptor.BecomeRoot(<label>_tree, Root[0]) as I<ASTLabelType>; 131 <super.matchSet(..., postmatchCode={<if(backtracking)>if (State.Backtracking = 0) then <endif>Root[0] := Adaptor.BecomeRoot(<createNodeFromToken(...)>, Root[0]) as I<ASTLabelType>;})> 148 <if(backtracking)>if (State.Backtracking = 0) then <endif>Root[0] := Adaptor.BecomeRoot(<label>.Tree, Root[0]) as I<ASTLabelType>; 177 <label>_tree := Adaptor.CreateNode(<label>) as I<ASTLabelType>; 192 <label>_tree := Adaptor.CreateNode(<label>) as I<ASTLabelType>; 193 Root[0] := Adaptor.BecomeRoot(<label>_tree, Root[0]) as I<ASTLabelType>; 203 Adaptor.CreateNode(<label>) as I<ASTLabelType> 213 RetVal.Tree := Adaptor.RulePostProcessing(Root[0]) as I<ASTLabelType>;
|
AST.stg | 83 FTree := Value as I<ASTLabelType>; 89 FTree: I<ASTLabelType>; 104 Root: array [0..63] of I<ASTLabelType>; 117 <ruleDescriptor.tokenLabels:{<it.label.text>_tree: I<ASTLabelType>;}; separator="\n"> 118 <ruleDescriptor.tokenListLabels:{<it.label.text>_tree: I<ASTLabelType>;}; separator="\n"> 129 Root[0] := Adaptor.GetNilNode as I<ASTLabelType>; 217 Root[0] := Adaptor.GetNilNode as I<ASTLabelType>; 222 <prevRuleRootRef()>.Tree = (<ASTLabelType>)adaptor.rulePostProcessing(root[0]); 328 Root[<treeLevel>] := Adaptor.GetNilNode as I<ASTLabelType>; 359 Root[<treeLevel>] := Adaptor.BecomeRoot((Locals['Stream_<label>'] as IRewriteRuleElementStream).NextNode(), Root[<treeLevel>]) as I<ASTLabelType>;<\n [all...] |
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Perl5/ |
ASTTreeParser.stg | 46 <ASTLabelType> _first_0 = null; 47 <ASTLabelType> _last = null;<\n> 56 retval.tree = (<ASTLabelType>)_first_0; 58 retval.tree = (<ASTLabelType>)adaptor.getParent(retval.tree); 68 _last = (<ASTLabelType>)input.LT(1); 70 <ASTLabelType> _save_last_<treeLevel> = _last; 71 <ASTLabelType> _first_<treeLevel> = null; 73 <ASTLabelType> root_<treeLevel> = (<ASTLabelType>)adaptor.nil(); 109 _last = (<ASTLabelType>)input.LT(1) [all...] |
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime.Test/ |
SimpleExpression.g3 | 39 ASTLabelType=CommonTree;
|
SynpredTreeParser.g3 | 38 ASTLabelType=ITree;
|
FastSimpleExpression.g3 | 40 ASTLabelType=CommonTree;
|
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/ObjC/ |
ASTTreeParser.stg | 44 <recognizer.ASTLabelType; null="CommonTree"> *tree; 50 - (<recognizer.ASTLabelType; null="CommonTree"> *)getTree; 51 - (void) setTree:(<recognizer.ASTLabelType; null="CommonTree"> *)aTree;<\n> 57 - (<ASTLabelType> *)getTree 62 - (void) setTree:(<ASTLabelType> *)aTree 81 @property (retain) <recognizer.ASTLabelType; null="CommonTree"> *tree; 88 <ASTLabelType> *_first_0 = nil; 89 <ASTLabelType> *_last = nil;<\n> 99 retval.tree = (<ASTLabelType> *)_first_0; 101 retval.tree = (<ASTLabelType> *)[treeAdaptor getParent:retval.tree] [all...] |
AST.stg | 117 <recognizer.ASTLabelType; null="CommonTree"> *tree; 123 @property (retain, getter=getTree, setter=setTree:) <recognizer.ASTLabelType; null="CommonTree"> *tree; 129 - (<recognizer.ASTLabelType; null="CommonTree"> *)getTree;<\n> 130 - (void) setTree:(<recognizer.ASTLabelType; null="CommonTree"> *)aTree;<\n> 142 - (<ASTLabelType> *)getTree 147 - (void) setTree:(<ASTLabelType> *)aTree 168 <ASTLabelType> *root_0 = nil;<\n> 175 ruleDescriptor.wildcardTreeListLabels]:{it | <ASTLabelType> *<it.label.text>_tree=nil;}; separator="\n"> 176 <ruleDescriptor.tokenListLabels:{it | <ASTLabelType> *<it.label.text>_tree = nil;}; separator="\n"> 193 [<prevRuleRootRef()> setTree:(<ASTLabelType> *)[treeAdaptor rulePostProcessing:root_0]];<\n [all...] |
ASTParser.stg | 42 retval.tree = (<ASTLabelType> *)[treeAdaptor errorNode:input From:retval.start To:[input LT:-1] Exception:re]; 67 root_0 = (<ASTLabelType> *)[treeAdaptor becomeRoot:<label>_tree old:root_0]; 127 root_0 = (<ASTLabelType> *)[treeAdaptor becomeRoot:<createNodeFromToken(...)> old:root_0];}, ...)> 148 root_0 = (<ASTLabelType> *)[treeAdaptor becomeRoot:[<label> getTree] old:root_0]; 189 root_0 = (<ASTLabelType> *)[treeAdaptor becomeRoot:<label>_tree old:root_0]; 198 (<ASTLabelType> *)[[treeAdaptor create:<label>] retain] 207 retval.tree = (<ASTLabelType> *)[treeAdaptor rulePostProcessing:root_0];
|
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/CSharp2/ |
ASTTreeParser.stg | 48 <ASTLabelType> _first_0 = default(<ASTLabelType>); 49 <ASTLabelType> _last = default(<ASTLabelType>); 60 retval.Tree = (<ASTLabelType>)_first_0; 62 retval.Tree = (<ASTLabelType>)adaptor.GetParent(retval.Tree); 74 _last = (<ASTLabelType>)input.LT(1); 76 <ASTLabelType> _save_last_<treeLevel> = _last; 77 <ASTLabelType> _first_<treeLevel> = default(<ASTLabelType>); [all...] |
ASTParser.stg | 45 retval.Tree = (<ASTLabelType>)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re); 68 root_0 = (<ASTLabelType>)adaptor.BecomeRoot(<label>_tree, root_0); 120 <super.matchSet(postmatchCode={<if(backtracking)>if (<actions.(actionScope).synpredgate>) <endif>root_0 = (<ASTLabelType>)adaptor.BecomeRoot(<createNodeFromToken(...)>, root_0);}, ...)> 137 <if(backtracking)>if (<actions.(actionScope).synpredgate>) <endif>root_0 = (<ASTLabelType>)adaptor.BecomeRoot(<label>.Tree, root_0); 143 <listLabelElem(elem={<label>.Tree},elemType=ASTLabelType,...)> 149 <listLabelElem(elem={<label>.Tree},elemType=ASTLabelType,...)> 155 <listLabelElem(elem={<label>.Tree},elemType=ASTLabelType,...)> 163 <label>_tree = (<ASTLabelType>)adaptor.Create(<label>); 173 <label>_tree = (<ASTLabelType>)adaptor.Create(<label>); 174 root_0 = (<ASTLabelType>)adaptor.BecomeRoot(<label>_tree, root_0) [all...] |
AST.stg | 82 Ast<if(TREE_PARSER)>Tree<else>Parser<endif>RuleReturnScope\<<ASTLabelType>, <labelType>> 88 <ASTLabelType> root_0 = default(<ASTLabelType>);<\n> 94 :{it|<ASTLabelType> <it.label.text>_tree = default(<ASTLabelType>);}; separator="\n"> 95 <ruleDescriptor.tokenListLabels:{it|<ASTLabelType> <it.label.text>_tree = default(<ASTLabelType>);}; separator="\n"> 111 root_0 = (<ASTLabelType>)adaptor.Nil(); 154 <listLabelElem(elem={<label>.Tree},elemType=ASTLabelType,...)> 166 <listLabelElem(elem={<label>.Tree},elemType=ASTLabelType,...) [all...] |
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/CSharp3/ |
ASTTreeParser.stg | 49 <ASTLabelType> _first_0 = default(<ASTLabelType>); 50 <ASTLabelType> _last = default(<ASTLabelType>); 61 retval.Tree = (<ASTLabelType>)_first_0; 63 retval.Tree = (<ASTLabelType>)adaptor.GetParent(retval.Tree); 75 _last = (<ASTLabelType>)input.LT(1); 77 <ASTLabelType> _save_last_<treeLevel> = _last; 78 <ASTLabelType> _first_<treeLevel> = default(<ASTLabelType>); [all...] |
ASTParser.stg | 46 retval.Tree = (<ASTLabelType>)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re); 72 <\n>root_0 = (<ASTLabelType>)adaptor.BecomeRoot(<label>_tree, root_0); 125 <super.matchSet(postmatchCode={<if(!ruleDescriptor.isSynPred)><if(backtracking)>if (<actions.(actionScope).synpredgate>) <endif>root_0 = (<ASTLabelType>)adaptor.BecomeRoot(<createNodeFromToken(...)>, root_0);<endif>}, ...)> 144 <if(backtracking)>if (<actions.(actionScope).synpredgate>) <endif>root_0 = (<ASTLabelType>)adaptor.BecomeRoot(<label>.Tree, root_0); 150 <listLabelElem(elem={<label>.Tree},elemType=ASTLabelType,...)> 156 <listLabelElem(elem={<label>.Tree},elemType=ASTLabelType,...)> 162 <listLabelElem(elem={<label>.Tree},elemType=ASTLabelType,...)> 171 <label>_tree = (<ASTLabelType>)adaptor.Create(<label>); 183 <label>_tree = (<ASTLabelType>)adaptor.Create(<label>); 184 root_0 = (<ASTLabelType>)adaptor.BecomeRoot(<label>_tree, root_0) [all...] |
AST.stg | 82 Ast<if(TREE_PARSER)>Tree<else>Parser<endif>RuleReturnScope\<<ASTLabelType>, <labelType>> 88 <ASTLabelType> root_0 = default(<ASTLabelType>);<\n> 91 ruleLabelDefs(ruleDescriptor, labelType, ASTLabelType, rewriteElementType) ::= <% 95 :{it|<\n><ASTLabelType> <it.label.text>_tree = default(<ASTLabelType>);}> 96 <ruleDescriptor.tokenListLabels:{it|<\n><ASTLabelType> <it.label.text>_tree = default(<ASTLabelType>);}> 111 root_0 = (<ASTLabelType>)adaptor.Nil(); 152 <listLabelElem(elem={<label>.Tree},elemType=ASTLabelType,...) [all...] |
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Java/ |
ASTTreeParser.stg | 45 <ASTLabelType> _first_0 = null; 46 <ASTLabelType> _last = null;<\n> 59 retval.tree = (<ASTLabelType>)adaptor.getParent(retval.tree); 71 _last = (<ASTLabelType>)input.LT(1); 73 <ASTLabelType> _save_last_<treeLevel> = _last; 74 <ASTLabelType> _first_<treeLevel> = null; 76 <ASTLabelType> root_<treeLevel> = (<ASTLabelType>)adaptor.nil(); 82 if ( _first_<enclosingTreeLevel>==null ) _first_<enclosingTreeLevel> = (<ASTLabelType>)<root.el.label>.getTree(); 116 _last = (<ASTLabelType>)input.LT(1) [all...] |
ASTParser.stg | 42 retval.tree = (<ASTLabelType>)adaptor.errorNode(input, retval.start, input.LT(-1), re);<! 68 root_0 = (<ASTLabelType>)adaptor.becomeRoot(<label>_tree, root_0); 121 <super.matchSet(postmatchCode={<if(!ruleDescriptor.isSynPred)><if(backtracking)>if ( <actions.(actionScope).synpredgate> ) <endif>root_0 = (<ASTLabelType>)adaptor.becomeRoot(<createNodeFromToken(...)>, root_0);<endif>},...)> 140 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) <endif>root_0 = (<ASTLabelType>)adaptor.becomeRoot(<label>.getTree(), root_0); 167 <label>_tree = (<ASTLabelType>)adaptor.create(<label>); 179 <label>_tree = (<ASTLabelType>)adaptor.create(<label>); 180 root_0 = (<ASTLabelType>)adaptor.becomeRoot(<label>_tree, root_0); 189 (<ASTLabelType>)adaptor.create(<label>) 196 retval.tree = (<ASTLabelType>)adaptor.rulePostProcessing(root_0);
|
AST.stg | 55 <ASTLabelType> tree; 57 public <ASTLabelType> getTree() { return tree; } 63 <ASTLabelType> root_0 = null;<\n> 70 ruleDescriptor.wildcardTreeListLabels]:{it | <ASTLabelType> <it.label.text>_tree=null;}; separator="\n"> 71 <ruleDescriptor.tokenListLabels:{it | <ASTLabelType> <it.label.text>_tree=null;}; separator="\n"> 95 root_0 = (<ASTLabelType>)adaptor.nil();<\n> 179 root_0 = (<ASTLabelType>)adaptor.nil(); 184 <prevRuleRootRef()>.tree = (<ASTLabelType>)adaptor.rulePostProcessing(root_0); 294 <ASTLabelType> root_<treeLevel> = (<ASTLabelType>)adaptor.nil() [all...] |
/external/antlr/runtime/Ruby/test/functional/ast-output/ |
tree-rewrite.rb | 25 ASTLabelType=CommonTree; 49 ASTLabelType=CommonTree; 72 ASTLabelType=CommonTree; 95 ASTLabelType=CommonTree; 118 ASTLabelType=CommonTree; 141 ASTLabelType=CommonTree; 164 ASTLabelType=CommonTree; 183 options {language=Ruby;output=AST; ASTLabelType=CommonTree; tokenVocab=AutoWildcard;} 199 options {language=Ruby;output=AST; ASTLabelType=CommonTree; tokenVocab=AutoWildcard2;} 215 options {language=Ruby;output=AST; ASTLabelType=CommonTree; tokenVocab=AutoWildcardWithLabel; [all...] |