/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/CSharp3/ |
ASTTreeParser.stg | 33 /** Templates for building ASTs during tree parsing. 58 retval.Tree = (<ASTLabelType>)_first_0; 59 if (adaptor.GetParent(retval.Tree)!=null && adaptor.IsNil(adaptor.GetParent(retval.Tree))) 60 retval.Tree = (<ASTLabelType>)adaptor.GetParent(retval.Tree); 65 /** match ^(root children) in tree parser; override here to 66 * add tree construction actions. 68 tree(root, actionsAfterRoot, children, nullableChildList, 81 if (_first_<enclosingTreeLevel> == null) _first_<enclosingTreeLevel> = <root.el.label>.Tree; [all...] |
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/Delphi/ |
ASTParser.stg | 46 RetVal.Tree := Adaptor.ErrorNode(Input, RetVal.Start as IToken, 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>.Tree, Root[0]) as I<ASTLabelType>; 154 <listLabel(elem=label+".Tree",...)> 160 <listLabel(elem=label+".Tree",...)> 166 <listLabel(elem=label+".Tree",...)> 213 RetVal.Tree := Adaptor.RulePostProcessing(Root[0]) as I<ASTLabelType>; 215 Adaptor.SetTokenBoundaries(RetVal.Tree, RetVal.Start as IToken, RetVal.Stop as IToken);
|
AST.stg | 34 <@super.imports()><if(!TREE_PARSER)><! tree parser would already have imported !> Antlr.Runtime.Tree,<\n><endif> 170 <if(backtracking)>if (State.Backtracking = 0) then <endif>(Locals['Stream_<rule.name>'] as IRewriteRuleElementStream).Add(<label>.Tree);<\n> 176 <listLabel(elem=label+".Tree",...)> 182 <if(backtracking)>if (State.Backtracking = 0) then <endif>(Locals['Stream_<rule>'] as IRewriteRuleElementStream).Add(<label>.Tree); 188 <listLabel(elem=label+".Tree",...)> 215 <prevRuleRootRef()>.Tree := Root[0]; 219 <! if tree parser and rewrite=true !> 222 <prevRuleRootRef()>.Tree = (<ASTLabelType>)adaptor.rulePostProcessing(root[0]); 226 retval.Tree); [all...] |
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/ |
RecognitionException.as | 29 import org.antlr.runtime.tree.Tree; 30 import org.antlr.runtime.tree.TreeNodeStream; 31 import org.antlr.runtime.tree.TreeAdaptor; 32 import org.antlr.runtime.tree.CommonTree; 72 * For parsers. Even when it's a tree parser, token might be set. 76 /** If this is a tree parser exception, node is set to the node with 92 /** If you are parsing a tree node stream, you will encounter som 152 else if ( this.node is Tree) {
|
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/ |
DebugTreeNodeStream.cs | 35 using ITreeAdaptor = Antlr.Runtime.Tree.ITreeAdaptor; 36 using ITreeNodeStream = Antlr.Runtime.Tree.ITreeNodeStream; 39 * Debug any tree node stream. The constructor accepts the stream
|
TraceDebugEventListener.cs | 37 using ITreeAdaptor = Antlr.Runtime.Tree.ITreeAdaptor; 63 #region Tree parsing stuff
|
IDebugEventListener.cs | 270 #region Tree Parsing 273 * Input for a tree parser is an AST, but we know nothing for sure 287 * The tree parser lookedahead. If the type is UP or DOWN, 304 * building a tree in rewrite mode. 359 * <seealso cref="Antlr.Runtime.Tree.TreeAdaptor.becomeRoot()"/> 370 * <seealso cref="Antlr.Runtime.Tree.TreeAdaptor.addChild()"/>
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/ |
ITreeAdaptor.cs | 33 namespace Antlr.Runtime.Tree 42 * This takes the place of the tree construction code generated in the 45 * I do not need to know the type of a tree at all so they are all 54 * Create a tree node from Token object; for CommonTree type trees, 113 /** <summary>Duplicate a single tree node.</summary> 124 /** <summary>Duplicate tree recursively, using dupNode() for each node</summary> */ 125 object DupTree( object tree ); 129 * a list of element as the children. If you want a flat tree (a list) 136 * Return a tree node representing an error. This node records the 148 * This only makes sense during token parsing, not tree parsing [all...] |
RewriteCardinalityException.cs | 33 namespace Antlr.Runtime.Tree
|
RewriteRuleSubtreeStream.cs | 33 namespace Antlr.Runtime.Tree 60 * tree root node. Also prevents us from duplicating recently-added 66 * Referencing a rule result twice is ok; dup entire tree as 71 * and super.next() doesn't know which to call: dup node or dup tree. 86 object tree = NextCore(); 87 while (adaptor.IsNil(tree) && adaptor.GetChildCount(tree) == 1) 88 tree = adaptor.GetChild(tree, 0); 89 //System.Console.WriteLine("_next={0}", ((ITree)tree).ToStringTree()) [all...] |
TreeFilter.cs | 33 namespace Antlr.Runtime.Tree 90 // to override, just define tree grammar rule topdown and turn on
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/ |
DebugTreeNodeStream.cs | 36 using ITreeAdaptor = Antlr.Runtime.Tree.ITreeAdaptor; 37 using ITreeNodeStream = Antlr.Runtime.Tree.ITreeNodeStream; 40 * Debug any tree node stream. The constructor accepts the stream
|
TraceDebugEventListener.cs | 38 using ITreeAdaptor = Antlr.Runtime.Tree.ITreeAdaptor; 71 #region Tree parsing stuff
|
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/tree/ |
TreeRewriter.java | 28 package org.antlr.runtime.tree; 100 * other than stdout or if you're not using Tree-derived trees. 103 System.out.println(((Tree)oldTree).toStringTree()+" -> "+ 104 ((Tree)newTree).toStringTree()); 116 // to override, just define tree grammar rule topdown and turn on
|
/external/antlr/antlr-3.4/runtime/ObjC/Framework/ |
ANTLRCommonTreeNodeStream.h | 39 /** Pull nodes from which tree? */ 42 /** If this tree (root) was created from a token stream, track it. */ 45 /** What tree adaptor was used to build these trees */ 48 /** The tree iterator we using */ 54 /** Tree (nil A B C) trees like flat A B C streams */ 57 /** Tracks tree depth. Level=0 means we're at root node level. */ 66 + (ANTLRCommonTreeNodeStream *) newANTLRCommonTreeNodeStream:(id<ANTLRTreeAdaptor>)anAdaptor Tree:(ANTLRCommonTree *)theTree; 70 - (id) initWithTreeAdaptor:(id<ANTLRTreeAdaptor>)adaptor Tree:(ANTLRCommonTree *)theTree; 74 /** Pull elements from tree iterator. Track tree level 0..max_level [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
OutlineDragListener.java | 24 import org.eclipse.swt.widgets.Tree; 44 Tree tree = mTreeViewer.getTree(); local 46 TreeItem overTreeItem = tree.getItem(new Point(e.x, e.y)); 48 // Not dragging over a tree item 59 // because for one thing, the tree selection is updated synchronously on mouse 65 TreeItem[] treeSelection = tree.getSelection();
|
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/ |
MismatchedTreeNodeException.cs | 36 using ITreeNodeStream = Antlr.Runtime.Tree.ITreeNodeStream;
|
RecognitionException.cs | 34 using Antlr.Runtime.Tree; 85 * For parsers. Even when it's a tree parser, token might be set. 91 * If this is a tree parser exception, node is set to the node with 114 * If you are parsing a tree node stream, you will encounter som 316 } else if (this._node is Tree.ITree) { 317 this._line = ((Tree.ITree)this._node).Line; 318 this._charPositionInLine = ((Tree.ITree)this._node).CharPositionInLine;
|
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/ |
RewriteCardinalityException.cs | 33 namespace Antlr.Runtime.Tree {
|
RewriteRuleSubtreeStream.cs | 33 namespace Antlr.Runtime.Tree { 55 * tree root node. Also prevents us from duplicating recently-added 61 * Referencing a rule result twice is ok; dup entire tree as 66 * and super.next() doesn't know which to call: dup node or dup tree. 79 object tree = NextCore(); 80 while (adaptor.IsNil(tree) && adaptor.GetChildCount(tree) == 1) 81 tree = adaptor.GetChild(tree, 0); 82 //System.Console.WriteLine("_next={0}", ((ITree)tree).ToStringTree()) [all...] |
TreeFilter.cs | 33 namespace Antlr.Runtime.Tree 42 Now, how are we going to test these tree patterns against every 43 subtree in our original tree? In what order should we visit nodes? 45 rule application strategy and a ``down then up'' tree traversal 49 a pattern matches, we execute the associated tree rewrite and move on 53 TreeParser (derived from a tree grammar) to a tree: 58 tree parser class (@cl Simplify in this case). Most of the time, the 59 rule will not match the tree. To avoid issuing syntax errors and 63 the details. This method boils down to ``call a rule to match a tree, [all...] |
TreePatternLexer.cs | 33 namespace Antlr.Runtime.Tree { 46 /** <summary>The tree pattern to lex like "(A B C)"</summary> */
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Debug/ |
IDebugEventListener.cs | 272 #region Tree Parsing 275 * Input for a tree parser is an AST, but we know nothing for sure 289 * The tree parser lookedahead. If the type is UP or DOWN, 306 * building a tree in rewrite mode. 361 * <seealso cref="Antlr.Runtime.Tree.TreeAdaptor.becomeRoot()"/> 372 * <seealso cref="Antlr.Runtime.Tree.TreeAdaptor.addChild()"/>
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/ |
MismatchedTreeNodeException.cs | 37 using ITreeNodeStream = Antlr.Runtime.Tree.ITreeNodeStream;
|
RecognitionException.cs | 35 using Antlr.Runtime.Tree; 87 * For parsers. Even when it's a tree parser, token might be set. 93 * If this is a tree parser exception, node is set to the node with 116 * If you are parsing a tree node stream, you will encounter som 386 else if (this._node is Tree.ITree) 388 this._line = ((Tree.ITree)this._node).Line; 389 this._charPositionInLine = ((Tree.ITree)this._node).CharPositionInLine;
|