Searched defs:tree (Results 1 - 25 of 351) sorted by path

1234567891011>>

/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/
H A DRunnerController.java44 import javax.swing.tree.DefaultMutableTreeNode;
45 import javax.swing.tree.DefaultTreeModel;
46 import javax.swing.tree.TreeCellRenderer;
47 import javax.swing.tree.TreeModel;
48 import javax.swing.tree.TreePath;
67 private JTree tree = new JTree(); field in class:RunnerController.RunnerView
69 private JScrollPane scroll = new JScrollPane(tree,
75 tree.setOpaque(false);
103 view.tree.setModel(new RunnerTreeModel(suite));
104 view.tree
202 getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) argument
[all...]
/external/antlr/antlr-3.4/lib/
H A Dantlr-3.4-complete.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/antlr/ org/antlr/analysis/ org/antlr/codegen/ org/ ...
/external/antlr/antlr-3.4/runtime/ActionScript/project/lib/
H A DFlexAntTasks.jar ... rule/ org/dom4j/rule/pattern/ org/dom4j/swing/ org/dom4j/tree/ org/dom4j/util/ org/dom4j/xpath/ org/dom4j/xpp/ org ...
/external/antlr/antlr-3.4/runtime/C/src/
H A Dantlr3basetree.c36 static void * getChild (pANTLR3_BASE_TREE tree, ANTLR3_UINT32 i);
37 static ANTLR3_UINT32 getChildCount (pANTLR3_BASE_TREE tree);
39 (pANTLR3_BASE_TREE tree);
40 static ANTLR3_UINT32 getLine (pANTLR3_BASE_TREE tree);
43 (pANTLR3_BASE_TREE tree, ANTLR3_UINT32 type);
44 static void addChild (pANTLR3_BASE_TREE tree, pANTLR3_BASE_TREE child);
45 static void addChildren (pANTLR3_BASE_TREE tree, pANTLR3_LIST kids);
48 static void freshenPACIndexesAll(pANTLR3_BASE_TREE tree);
49 static void freshenPACIndexes (pANTLR3_BASE_TREE tree, ANTLR3_UINT32 offset);
51 static void setChild (pANTLR3_BASE_TREE tree, ANTLR3_UINT3
58 antlr3BaseTreeNew(pANTLR3_BASE_TREE tree) argument
84 getCharPositionInLine(pANTLR3_BASE_TREE tree) argument
90 getLine(pANTLR3_BASE_TREE tree) argument
95 getFirstChildWithType(pANTLR3_BASE_TREE tree, ANTLR3_UINT32 type) argument
119 getChild(pANTLR3_BASE_TREE tree, ANTLR3_UINT32 i) argument
131 getChildCount(pANTLR3_BASE_TREE tree) argument
144 addChild(pANTLR3_BASE_TREE tree, pANTLR3_BASE_TREE child) argument
222 addChildren(pANTLR3_BASE_TREE tree, pANTLR3_LIST kids) argument
236 setChild(pANTLR3_BASE_TREE tree, ANTLR3_UINT32 i, void * child) argument
246 deleteChild(pANTLR3_BASE_TREE tree, ANTLR3_UINT32 i) argument
257 dupTree(pANTLR3_BASE_TREE tree) argument
288 toStringTree(pANTLR3_BASE_TREE tree) argument
461 freshenPACIndexesAll(pANTLR3_BASE_TREE tree) argument
470 freshenPACIndexes(pANTLR3_BASE_TREE tree, ANTLR3_UINT32 offset) argument
[all...]
H A Dantlr3basetreeadaptor.c2 * Contains the base functions that all tree adaptors start with.
75 /** Given a pointer to a base tree adaptor structure (which is usually embedded in the
76 * super class the implements the tree adaptor used in the parse), initialize its
187 // For each child of the current tree, define a node using the
249 // No tree, so do nothing
386 // No tree, so create a blank spec
438 /** Create and return a nil tree node (no token payload)
457 /** Return a duplicate of the entire tree (implementation provided by the
496 /// Sends the required debugging events for duplicating a tree
500 simulateTreeConstruction(pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE tree) argument
520 dbgDupTree(pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE tree) argument
883 getChild(pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE tree, ANTLR3_UINT32 i) argument
890 getChildCount(pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE tree) argument
[all...]
H A Dantlr3commontree.c4 // starting point for your own tree. Though it is often easier just to tag things on
5 // to the user pointer in the tree unless you are building a different type
41 static pANTLR3_COMMON_TOKEN getToken (pANTLR3_BASE_TREE tree);
42 static pANTLR3_BASE_TREE dupNode (pANTLR3_BASE_TREE tree);
43 static ANTLR3_BOOLEAN isNilNode (pANTLR3_BASE_TREE tree);
44 static ANTLR3_UINT32 getType (pANTLR3_BASE_TREE tree);
45 static pANTLR3_STRING getText (pANTLR3_BASE_TREE tree);
46 static ANTLR3_UINT32 getLine (pANTLR3_BASE_TREE tree);
47 static ANTLR3_UINT32 getCharPositionInLine (pANTLR3_BASE_TREE tree);
48 static pANTLR3_STRING toString (pANTLR3_BASE_TREE tree);
156 pANTLR3_COMMON_TREE tree; local
213 newFromTree(pANTLR3_ARBORETUM factory, pANTLR3_COMMON_TREE tree) argument
289 antlr3SetCTAPI(pANTLR3_COMMON_TREE tree) argument
339 pANTLR3_COMMON_TREE tree; local
374 createChildrenList(pANTLR3_BASE_TREE tree) argument
381 getToken(pANTLR3_BASE_TREE tree) argument
393 dupNode(pANTLR3_BASE_TREE tree) argument
408 isNilNode(pANTLR3_BASE_TREE tree) argument
423 getType(pANTLR3_BASE_TREE tree) argument
440 getText(pANTLR3_BASE_TREE tree) argument
445 getLine(pANTLR3_BASE_TREE tree) argument
468 getCharPositionInLine(pANTLR3_BASE_TREE tree) argument
489 toString(pANTLR3_BASE_TREE tree) argument
504 getParent(pANTLR3_BASE_TREE tree) argument
510 setParent(pANTLR3_BASE_TREE tree, pANTLR3_BASE_TREE parent) argument
516 setChildIndex(pANTLR3_BASE_TREE tree, ANTLR3_INT32 i) argument
530 reuse(pANTLR3_BASE_TREE tree) argument
[all...]
H A Dantlr3commontreenodestream.c3 /// tree node stream used by ANTLR.
116 antlr3CommonTreeNodeStreamNewTree(pANTLR3_BASE_TREE tree, ANTLR3_UINT32 hint) argument
120 stream = antlr3CommonTreeNodeStreamNew(tree->strFactory, hint);
126 stream->root = tree;
149 // String factory for tree walker
153 // Create an adaptor for the common tree node stream
157 // Create space for the tree node stream interface
180 // Install the common tree node stream API
193 // Install the tree node stream API
256 // Reuse the root tree o
[all...]
H A Dantlr3rewritestreams.c2 /// Implementation of token/tree streams that are used by the
3 /// tree re-write rules to manipulate the tokens and trees produced
110 pANTLR3_BASE_TREE tree; local
117 // tree nodes. Hence we check to see if any of them were nilNodes as
128 tree = (pANTLR3_BASE_TREE)(stream->elements->elements[i-1].element);
129 if (tree != NULL && tree->isNilNode(tree))
132 // tree->reuse(tree);
[all...]
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/
H A DDebugTreeAdaptor.cs41 * tree adaptor routines.
47 * The debug listener has to deal with tree node IDs for which it did
49 * if it represents a whole tree.
80 public virtual object DupTree(object tree) { argument
81 object t = adaptor.DupTree(tree);
82 // walk the tree and emit create and add child events
112 public virtual bool IsNil(object tree) { argument
113 return adaptor.IsNil(tree);
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
H A DBaseTreeAdaptor.cs45 * expensive: we have to create a hashtable with all tree nodes in it.
56 * Create tree node that holds the start and stop tokens associated
61 * If you specify your own kind of tree nodes, you will likely have to
67 * subclass your own tree node class to avoid class cast exception.
77 public virtual bool IsNil(object tree) { argument
78 return ((ITree)tree).IsNil;
81 public virtual object DupTree(object tree) { argument
82 return DupTree(tree, null);
87 * tree (not just ITree interface). It invokes the adaptor routines
88 * not the tree nod
[all...]
H A DBufferedTreeNodeStream.cs41 /** <summary>A buffered stream of tree nodes. Nodes can be from a tree of ANY kind.</summary>
43 * This node stream sucks all nodes out of the tree specified in
45 * the tree using an array of Object pointers. The stream necessarily
50 * This stream is most suitable for tree interpreters that need to
51 * jump around a lot or for tree parsers requiring speed (at cost of memory).
53 * but just in bookkeeping, not tree walking etc...
119 /** <summary>The complete mapping from stream index to tree node.
130 /** <summary>Pull nodes from which tree?</summary> */
133 /** <summary>IF this tree (roo
153 BufferedTreeNodeStream(object tree) argument
157 BufferedTreeNodeStream(ITreeAdaptor adaptor, object tree) argument
161 BufferedTreeNodeStream(ITreeAdaptor adaptor, object tree, int initialBufferSize) argument
[all...]
H A DCommonTreeNodeStream.cs45 /** <summary>Pull nodes from which tree?</summary> */
48 /** <summary>If this tree (root) was created from a token stream, track it.</summary> */
51 /** <summary>What tree adaptor was used to build these trees</summary> */
55 /** The tree iterator we are using */
64 /** <summary>Tracks tree depth. Level=0 means we're at root node level.</summary> */
67 public CommonTreeNodeStream(object tree) argument
68 : this(new CommonTreeAdaptor(), tree) {
71 public CommonTreeNodeStream(ITreeAdaptor adaptor, object tree) { argument
72 this._root = tree;
199 // we'll have to walk from start to stop in tree; w
[all...]
H A DDotTreeGenerator.cs40 * can pass in any kind of tree or use Tree interface method.
42 * ST just to use the org.antlr.runtime.tree.* package.
51 * Tree t = (Tree)r.tree;
80 /** Generate DOT (graphviz) for a whole tree not just a node.
95 public virtual string ToDot( object tree, ITreeAdaptor adaptor ) argument
102 var nodes = DefineNodes( tree, adaptor );
104 var edges = DefineEdges( tree, adaptor );
120 public virtual string ToDot( ITree tree )
122 return ToDot( tree, new CommonTreeAdaptor() );
124 protected virtual IEnumerable<string> DefineNodes( object tree, ITreeAdapto argument
150 DefineEdges( object tree, ITreeAdaptor adaptor ) argument
[all...]
H A DITreeAdaptor.cs41 * This takes the place of the tree construction code generated in the
44 * I do not need to know the type of a tree at all so they are all
52 * Create a tree node from Token object; for CommonTree type trees,
63 /** <summary>Duplicate a single tree node.</summary>
68 /** <summary>Duplicate tree recursively, using dupNode() for each node</summary> */
69 object DupTree(object tree); argument
73 * a list of element as the children. If you want a flat tree (a list)
80 * Return a tree node representing an error. This node records the
92 * This only makes sense during token parsing, not tree parsing.
93 * Tree parsing should happen only when parsing and tree constructio
100 IsNil(object tree) argument
[all...]
H A DTreeIterator.cs36 /** Return a node stream from a doubly-linked tree whose nodes
39 * Emit navigation nodes (DOWN, UP, and EOF) to let show tree structure.
44 protected object tree; field in class:Antlr.Runtime.Tree.TreeIterator
57 public TreeIterator(object tree) argument
58 : this(new CommonTreeAdaptor(), tree) {
61 public TreeIterator(ITreeAdaptor adaptor, object tree) { argument
63 this.tree = tree;
64 this.root = tree;
93 if (adaptor.GetChildCount(tree)
[all...]
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Utility/Antlr.Utility.Tree/
H A DDOTTreeGenerator.cs39 * can pass in any kind of tree or use Tree interface method.
41 * ST just to use the org.antlr.runtime.tree.* package.
50 * Tree t = (Tree)r.tree;
78 /** Generate DOT (graphviz) for a whole tree not just a node.
93 public virtual string ToDot(object tree, ITreeAdaptor adaptor) { argument
99 var nodes = DefineNodes(tree, adaptor);
101 var edges = DefineEdges(tree, adaptor);
117 public virtual string ToDot(ITree tree) { argument
118 return ToDot(tree, new CommonTreeAdaptor());
120 protected virtual IEnumerable<string> DefineNodes(object tree, ITreeAdapto argument
143 DefineEdges(object tree, ITreeAdaptor adaptor) argument
[all...]
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/
H A DTreeExtensions.cs39 public static ITree getNextSibling( this ITree tree )
41 return tree.Parent.GetChild( tree.ChildIndex + 1 );
45 public static void setFirstChild( this ITree tree, ITree child ) argument
47 if ( tree.ChildCount == 0 )
48 tree.AddChild( child );
50 tree.SetChild( 0, child );
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Test/BuildOptions/
H A DDebugGrammarParser.cs100 // Implement this function in your helper file to use a custom tree adaptor
125 internal CommonTree tree; field in class:DebugGrammarParser.prog_return
126 public override object Tree { get { return tree; } }
224 retval.tree = (CommonTree)adaptor.RulePostProcessing(root_0);
225 adaptor.SetTokenBoundaries(retval.tree, retval.start, retval.stop);
232 retval.tree = (CommonTree)adaptor.ErrorNode(input, retval.start, input.LT(-1), re);
257 internal CommonTree tree; field in class:DebugGrammarParser.stat_return
258 public override object Tree { get { return tree; } }
353 retval.tree = root_0;
354 RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.tree
544 internal CommonTree tree; field in class:DebugGrammarParser.func_return
699 internal CommonTree tree; field in class:DebugGrammarParser.formalPar_return
788 internal CommonTree tree; field in class:DebugGrammarParser.expr_return
1001 internal CommonTree tree; field in class:DebugGrammarParser.multExpr_return
1159 internal CommonTree tree; field in class:DebugGrammarParser.atom_return
[all...]
H A DProfileGrammarParser.cs104 // Implement this function in your helper file to use a custom tree adaptor
129 internal CommonTree tree; field in class:ProfileGrammarParser.prog_return
130 public override object Tree { get { return tree; } }
228 retval.tree = (CommonTree)adaptor.RulePostProcessing(root_0);
229 adaptor.SetTokenBoundaries(retval.tree, retval.start, retval.stop);
236 retval.tree = (CommonTree)adaptor.ErrorNode(input, retval.start, input.LT(-1), re);
261 internal CommonTree tree; field in class:ProfileGrammarParser.stat_return
262 public override object Tree { get { return tree; } }
357 retval.tree = root_0;
358 RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.tree
548 internal CommonTree tree; field in class:ProfileGrammarParser.func_return
703 internal CommonTree tree; field in class:ProfileGrammarParser.formalPar_return
792 internal CommonTree tree; field in class:ProfileGrammarParser.expr_return
1005 internal CommonTree tree; field in class:ProfileGrammarParser.multExpr_return
1163 internal CommonTree tree; field in class:ProfileGrammarParser.atom_return
[all...]
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Test/SlimParsing/Tree/
H A DITreeAdaptor`1.cs40 * Create a tree node from Token object; for CommonTree type trees,
51 /** <summary>Duplicate a single tree node.</summary>
56 /** <summary>Duplicate tree recursively, using dupNode() for each node</summary> */
57 T DupTree(T tree); argument
61 * a list of element as the children. If you want a flat tree (a list)
68 * Return a tree node representing an error. This node records the
80 * This only makes sense during token parsing, not tree parsing.
81 * Tree parsing should happen only when parsing and tree construction
87 /** <summary>Is tree considered a nil node used to make lists of child nodes?</summary> */
88 bool IsNil(T tree); argument
[all...]
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/
H A DAntlrRuntime_BaseTreeDebugView.cs41 public AntlrRuntime_BaseTreeDebugView(BaseTree tree) argument
43 _tree = tree;
H A DBufferedTreeNodeStream.cs42 /** <summary>A buffered stream of tree nodes. Nodes can be from a tree of ANY kind.</summary>
44 * This node stream sucks all nodes out of the tree specified in
46 * the tree using an array of Object pointers. The stream necessarily
51 * This stream is most suitable for tree interpreters that need to
52 * jump around a lot or for tree parsers requiring speed (at cost of memory).
54 * but just in bookkeeping, not tree walking etc...
128 /** <summary>The complete mapping from stream index to tree node.
139 /** <summary>Pull nodes from which tree?</summary> */
142 /** <summary>IF this tree (roo
172 BufferedTreeNodeStream( ITreeAdaptor adaptor, object tree, int initialBufferSize ) argument
[all...]
H A DDotTreeGenerator.cs40 * can pass in any kind of tree or use Tree interface method.
42 * ST just to use the org.antlr.runtime.tree.* package.
51 * Tree t = (Tree)r.tree;
80 /** Generate DOT (graphviz) for a whole tree not just a node.
95 public virtual string ToDot( object tree, ITreeAdaptor adaptor ) argument
102 var nodes = DefineNodes( tree, adaptor );
104 var edges = DefineEdges( tree, adaptor );
120 public virtual string ToDot( ITree tree )
122 return ToDot( tree, new CommonTreeAdaptor() );
124 protected virtual IEnumerable<string> DefineNodes( object tree, ITreeAdapto argument
150 DefineEdges( object tree, ITreeAdaptor adaptor ) argument
[all...]
H A DTreeIterator.cs37 /** Return a node stream from a doubly-linked tree whose nodes
40 * Emit navigation nodes (DOWN, UP, and EOF) to let show tree structure.
46 protected object tree; field in class:Antlr.Runtime.Tree.TreeIterator
60 public TreeIterator( CommonTree tree )
61 : this( new CommonTreeAdaptor(), tree )
65 public TreeIterator( ITreeAdaptor adaptor, object tree )
68 this.tree = tree;
69 this.root = tree;
102 if ( adaptor.GetChildCount( tree )
[all...]
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/
H A DParserRuleReturnScope.java30 import org.antlr.runtime.tree.CommonTree;
37 * available depending on output option such as template and tree.
55 public Object tree; // only used when output=AST field in class:ParserRuleReturnScope
56 public Object getTree() { return tree; }

Completed in 688 milliseconds

1234567891011>>