/external/antlr/ |
H A D | Android.mk | 22 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 D | Main.java | 7 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 D | ANTLRv3.g | 98 | '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 D | gUnitBaseTest.java | 32 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 D | gUnitExecutor.java | 31 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 D | RunnerController.java | 44 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 D | antlr-3.4-complete.jar | META-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 D | FlexAntTasks.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 D | BaseRecognizer.as | 4 * 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 D | MismatchedTreeNodeException.as | 2 import org.antlr.runtime.tree.TreeNodeStream;
|
H A D | Parser.as | 29 import org.antlr.runtime.tree.TreeAdaptor;
|
H A D | 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
|
H A D | RecognizerSharedState.as | 28 * one token/tree node is consumed for two errors.
|
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/tree/ |
H A D | BaseTree.as | 28 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 D | BaseTreeAdaptor.as | 1 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 D | CommonErrorNode.as | 1 package org.antlr.runtime.tree 55 // people should subclass if they alter the tree type so this
|
H A D | CommonTree.as | 28 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 D | CommonTreeNodeStream.as | 28 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 D | RewriteCardinalityException.as | 28 package org.antlr.runtime.tree {
|
H A D | RewriteEarlyExitException.as | 28 package org.antlr.runtime.tree {
|
H A D | RewriteEmptyStreamException.as | 28 package org.antlr.runtime.tree
|
H A D | RewriteRuleElementStream.as | 28 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 D | RewriteRuleNodeStream.as | 2 package org.antlr.runtime.tree { 4 /** Queues up nodes matched on left side of -> in a tree parser. This is
|
H A D | RewriteRuleSubtreeStream.as | 28 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 D | RewriteRuleTokenStream.as | 28 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.
|