Searched refs:tree (Results 1 - 25 of 1842) sorted by path

1234567891011>>

/external/antlr/
H A DAndroid.mk22 LOCAL_SRC_FILES := $(filter-out antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/tree/DOTTreeGenerator.java, $(LOCAL_SRC_FILES))
/external/antlr/antlr-3.4/antlr3-maven-archetype/src/main/resources/archetype-resources/src/main/java/
H A DMain.java7 import org.antlr.runtime.tree.*;
160 // If we got a valid a tree (the syntactic validity of the source code
161 // was found to be solid), then let's print the tree to show we
164 // specification for the tree, which will allow the users to visualize
170 // Pick up the generic tree
174 // NOw walk it with the generic tree walker, which does nothing but
175 // verify the tree really.
227 System.out.println(" Producing png graphic for tree");
/external/antlr/antlr-3.4/gunit/src/main/antlr3/org/antlr/gunit/swingui/parsers/
H A DANTLRv3.g98 | 'tree' {gtype=TREE_GRAMMAR;} // a tree parser
290 $ebnf.tree.getToken().setLine(firstToken.getLine());
291 $ebnf.tree.getToken().setCharPositionInLine(firstToken.getCharPositionInLine());
398 $rewrite_tree_ebnf.tree.getToken().setLine(firstToken.getLine());
399 $rewrite_tree_ebnf.tree.getToken().setCharPositionInLine(firstToken.getCharPositionInLine());
409 /** Build a tree for a template rewrite:
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/
H A DgUnitBaseTest.java32 import org.antlr.runtime.tree.CommonTree;
33 import org.antlr.runtime.tree.CommonTreeNodeStream;
34 import org.antlr.runtime.tree.TreeAdaptor;
35 import org.antlr.runtime.tree.TreeNodeStream;
47 * ANTLR parser/tree walker
193 // set up customized tree adaptor if necessary
225 CommonTree tree = (CommonTree) returnName.invoke(ruleReturn);
226 astString = tree.toStringTree();
338 // set up customized tree adaptor if necessary
364 CommonTree tree
[all...]
H A DgUnitExecutor.java31 import org.antlr.runtime.tree.CommonTree;
32 import org.antlr.runtime.tree.CommonTreeNodeStream;
33 import org.antlr.runtime.tree.TreeAdaptor;
34 import org.antlr.runtime.tree.TreeNodeStream;
125 // Execute unit test of for parser, lexer and tree grammar
127 title = "executing testsuite for tree grammar:"+grammarInfo.getTreeGrammarName()+" walks "+parserName;
331 // set up customized tree adaptor if necessary
363 CommonTree tree = (CommonTree) returnName.invoke(ruleReturn);
364 astString = tree.toStringTree();
449 /** Set up appropriate path for tree parse
[all...]
/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/ActionScript/project/src/org/antlr/runtime/
H A DBaseRecognizer.as4 * lexer, parser, and tree grammars. This is all the parsing
19 /** State of a lexer, parser, or tree parser are collected into a state
122 /** Factor out what to do upon token mismatch so tree parsers can behave
244 msg = "mismatched tree node: "+mtne.node+
278 /** Get number of recognition errors (lexer, parser, tree parser). Each
606 * and tree parsers need to return different objects. Rather than test
629 * action in the parser or tree parser works. It simply creates
H A DMismatchedTreeNodeException.as2 import org.antlr.runtime.tree.TreeNodeStream;
H A DParser.as29 import org.antlr.runtime.tree.TreeAdaptor;
H A DRecognitionException.as29 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
H A DRecognizerSharedState.as28 * one token/tree node is consumed for two errors.
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/tree/
H A DBaseTree.as28 package org.antlr.runtime.tree {
29 /** A generic tree implementation with no payload. You must subclass to
31 * instead of the child-sibling approach in v2. A flat tree (a list) is
155 * a list (nil-root tree). num of children can increase or decrease.
294 /** Print out a whole tree not just a node */
H A DBaseTreeAdaptor.as1 package org.antlr.runtime.tree {
13 * expensive: we have to create a hashtable with all tree nodes in it.
22 /** create tree node that holds the start and stop tokens associated
25 * If you specify your own kind of tree nodes, you will likely have to
31 * subclass your own tree node class to avoid class cast exception.
40 public function isNil(tree:Object):Boolean {
41 return Tree(tree).isNil;
44 public function dupTree(tree:Object):Object {
45 return dupTreeWithParent(tree, null);
49 * tree (no
[all...]
H A DCommonErrorNode.as1 package org.antlr.runtime.tree
55 // people should subclass if they alter the tree type so this
H A DCommonTree.as28 package org.antlr.runtime.tree {
32 /** A tree node that is wrapper for a Token object. After 3.0 release
33 * while building tree rewrite stuff, it became clear that computing
35 * spend the space in every tree node. If you don't want these extra
H A DCommonTreeNodeStream.as28 package org.antlr.runtime.tree {
34 /** A buffered stream of tree nodes. Nodes can be from a tree of ANY kind.
36 * This node stream sucks all nodes out of the tree specified in
38 * the tree using an array of Object pointers. The stream necessarily
43 * This stream is most suitable for tree interpreters that need to
44 * jump around a lot or for tree parsers requiring speed (at cost of memory).
46 * but just in bookkeeping, not tree walking etc...
61 /** The complete mapping from stream index to tree node.
72 /** Pull nodes from which tree
[all...]
H A DRewriteCardinalityException.as28 package org.antlr.runtime.tree {
H A DRewriteEarlyExitException.as28 package org.antlr.runtime.tree {
H A DRewriteEmptyStreamException.as28 package org.antlr.runtime.tree
H A DRewriteRuleElementStream.as28 package org.antlr.runtime.tree {
38 * @see org.antlr.runtime.tree.RewriteRuleSubtreeStream
39 * @see org.antlr.runtime.tree.RewriteRuleTokenStream
136 * a tree node or subtree. Deal with the optimization of single-
167 * the element is for a tree root; then it must be a node dup.
H A DRewriteRuleNodeStream.as2 package org.antlr.runtime.tree {
4 /** Queues up nodes matched on left side of -> in a tree parser. This is
H A DRewriteRuleSubtreeStream.as28 package org.antlr.runtime.tree {
38 * tree root node. Also prevents us from duplicating recently-added
42 * Referencing a rule result twice is ok; dup entire tree as
47 * and super.next() doesn't know which to call: dup node or dup tree.
H A DRewriteRuleTokenStream.as28 package org.antlr.runtime.tree {
48 /** Don't convert to a tree unless they explicitly call nextTree.
49 * This way we can do hetero tree nodes in rewrite.

Completed in 896 milliseconds

1234567891011>>