Searched refs:CommonTree (Results 1 - 25 of 101) sorted by relevance

12345

/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Test/BuildOptions/
H A DDebugGrammarParserHelper.cs39 List<CommonTree> functionDefinitions = new List<CommonTree>();
H A DProfileGrammarParserHelper.cs39 List<CommonTree> functionDefinitions = new List<CommonTree>();
H A DDebugTreeGrammarHelper.cs42 private List<CommonTree> functionDefinitions;
52 public DebugTreeGrammar( CommonTreeNodeStream nodes, List<CommonTree> functionDefinitions )
63 private DebugTreeGrammar( CommonTree function,
64 List<CommonTree> functionDefinitions,
78 private CommonTree findFunction( string name, BigInteger paramValue )
80 foreach ( CommonTree f in functionDefinitions )
86 CommonTree formalPar = (CommonTree)f.GetChild( 1 );
H A DProfileTreeGrammarHelper.cs42 private List<CommonTree> functionDefinitions;
52 public ProfileTreeGrammar( CommonTreeNodeStream nodes, List<CommonTree> functionDefinitions )
63 private ProfileTreeGrammar( CommonTree function,
64 List<CommonTree> functionDefinitions,
78 private CommonTree findFunction( string name, BigInteger paramValue )
80 foreach ( CommonTree f in functionDefinitions )
86 CommonTree formalPar = (CommonTree)f.GetChild( 1 );
H A DDebugGrammarParser.cs125 internal CommonTree tree;
136 CommonTree root_0 = null;
158 root_0 = (CommonTree)adaptor.Nil();
224 retval.tree = (CommonTree)adaptor.RulePostProcessing(root_0);
232 retval.tree = (CommonTree)adaptor.ErrorNode(input, retval.start, input.LT(-1), re);
257 internal CommonTree tree;
268 CommonTree root_0 = null;
280 CommonTree NEWLINE3_tree=null;
281 CommonTree ID4_tree=null;
282 CommonTree char_literal5_tre
[all...]
/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/
H A DTestTrees.java32 import org.antlr.runtime.tree.CommonTree;
42 static class V extends CommonTree {
51 CommonTree t = new CommonTree(new CommonToken(101));
57 CommonTree root_0 = (CommonTree)adaptor.nil();
58 CommonTree t = new V(101, 2);
59 CommonTree u = new V(new CommonToken(102,"102"));
70 CommonTree r0 = new CommonTree(ne
[all...]
H A DTestTreeNodeStream.java48 Tree t = new CommonTree(new CommonToken(101));
62 Tree t = new CommonTree(new CommonToken(101));
63 t.addChild(new CommonTree(new CommonToken(102)));
64 t.getChild(0).addChild(new CommonTree(new CommonToken(103)));
65 t.addChild(new CommonTree(new CommonToken(104)));
78 Tree root = new CommonTree((Token)null);
80 Tree t = new CommonTree(new CommonToken(101));
81 t.addChild(new CommonTree(new CommonToken(102)));
82 t.getChild(0).addChild(new CommonTree(new CommonToken(103)));
83 t.addChild(new CommonTree(ne
[all...]
H A DTestBufferedTreeNodeStream.java32 import org.antlr.runtime.tree.CommonTree;
52 Tree r0 = new CommonTree(new CommonToken(101));
53 Tree r1 = new CommonTree(new CommonToken(102));
55 r1.addChild(new CommonTree(new CommonToken(103)));
56 Tree r2 = new CommonTree(new CommonToken(106));
57 r2.addChild(new CommonTree(new CommonToken(107)));
59 r0.addChild(new CommonTree(new CommonToken(104)));
60 r0.addChild(new CommonTree(new CommonToken(105)));
H A DTestTreeWizard.java30 import org.antlr.runtime.tree.CommonTree;
49 CommonTree t = (CommonTree)wiz.create("ID");
57 CommonTree t = (CommonTree)wiz.create("ID[foo]");
65 CommonTree t = (CommonTree)wiz.create("(A)");
73 CommonTree t = (CommonTree)wiz.create("(A B C D)");
81 CommonTree
[all...]
H A DTestTreeIterator.java43 CommonTree t = (CommonTree)wiz.create("A");
54 CommonTree t = (CommonTree)wiz.create("(nil A B)");
65 CommonTree t = (CommonTree)wiz.create("(A B)");
76 CommonTree t = (CommonTree)wiz.create("(A B C)");
87 CommonTree t = (CommonTree)wi
[all...]
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime.Tests/
H A DITreeFixture.cs44 using CommonTree = Antlr.Runtime.Tree.CommonTree;
52 #region CommonTree Tests
57 CommonTree t = new CommonTree(new CommonToken(101));
66 CommonTree r0 = new CommonTree(new CommonToken(101));
67 r0.AddChild(new CommonTree(new CommonToken(102)));
68 r0.GetChild(0).AddChild(new CommonTree(new CommonToken(103)));
69 r0.AddChild(new CommonTree(ne
[all...]
H A DITreeNodeStreamFixture.cs45 using CommonTree = Antlr.Runtime.Tree.CommonTree;
59 ITree t = new CommonTree(new CommonToken(101));
77 ITree t = new CommonTree(new CommonToken(101));
78 t.AddChild(new CommonTree(new CommonToken(102)));
79 t.GetChild(0).AddChild(new CommonTree(new CommonToken(103)));
80 t.AddChild(new CommonTree(new CommonToken(104)));
95 ITree root = new CommonTree((IToken)null);
97 ITree t = new CommonTree(new CommonToken(101));
98 t.AddChild(new CommonTree(ne
[all...]
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
H A DTreeConstants.cs37 public static readonly ITree INVALID_NODE = new CommonTree( Tokens.Invalid );
H A DCommonTree.cs46 public class CommonTree : BaseTree { class in namespace:Antlr.Runtime.Tree
60 CommonTree parent;
65 public CommonTree() { method in class:Antlr.Runtime.Tree.CommonTree
68 public CommonTree(CommonTree node) method in class:Antlr.Runtime.Tree.CommonTree
78 public CommonTree(IToken t) { method in class:Antlr.Runtime.Tree.CommonTree
129 parent = (CommonTree)value;
185 return new CommonTree(this);
202 ((CommonTree)Children[i]).SetUnknownTokenBoundaries();
207 CommonTree firstChil
[all...]
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/
H A DCommonTreeAdaptor.cs54 return new CommonTree( payload );
99 * you are not using CommonTree, then you must
105 if ( t is CommonTree )
107 return ( (CommonTree)t ).Token;
H A DCommonTree.cs46 public class CommonTree : BaseTree class in namespace:Antlr.Runtime.Tree
60 CommonTree parent;
65 public CommonTree() method in class:Antlr.Runtime.Tree.CommonTree
69 public CommonTree( CommonTree node ) method in class:Antlr.Runtime.Tree.CommonTree
80 public CommonTree( IToken t ) method in class:Antlr.Runtime.Tree.CommonTree
158 parent = (CommonTree)value;
242 return new CommonTree( this );
263 CommonTree commonTree = childTree as CommonTree;
[all...]
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
H A DStrip.java34 import org.antlr.runtime.tree.CommonTree;
67 CommonTree t = (CommonTree)r.getTree();
72 public void rewrite(TreeAdaptor adaptor, CommonTree t, String[] tokenNames) throws Exception {
78 public void visit(Object t) { ACTION(tokens, (CommonTree)t); }
84 CommonTree a = (CommonTree)t;
85 CommonTree action = null;
86 if ( a.getChildCount()==2 ) action = (CommonTree)a.getChild(1);
87 else if ( a.getChildCount()==3 ) action = (CommonTree)
[all...]
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/tree/
H A DTreeConstants.as6 public static const INVALID_NODE:CommonTree = CommonTree.createFromToken(TokenConstants.INVALID_TOKEN);
H A DCommonTree.as38 public class CommonTree extends BaseTree {
48 protected var _parent:CommonTree;
53 public function CommonTree(node:CommonTree = null) { function
62 public static function createFromToken(t:Token):CommonTree {
63 var ct:CommonTree = new CommonTree();
73 return new CommonTree(this);
145 this._parent = CommonTree(t);
/external/antlr/antlr-3.4/runtime/Python/unittests/
H A Dtesttree.py7 from antlr3.tree import (CommonTreeNodeStream, CommonTree, CommonTreeAdaptor, namespace
25 t = CommonTree(CommonToken(101))
38 class V(CommonTree):
71 t = CommonTree(CommonToken(101))
72 t.addChild(CommonTree(CommonToken(102)))
73 t.getChild(0).addChild(CommonTree(CommonToken(103)))
74 t.addChild(CommonTree(CommonToken(104)))
87 root = CommonTree(None)
89 t = CommonTree(CommonToken(101))
90 t.addChild(CommonTree(CommonToke
[all...]
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/tree/
H A DCommonTree.java38 public class CommonTree extends BaseTree { class in inherits:BaseTree
48 public CommonTree parent;
53 public CommonTree() { } method in class:CommonTree
55 public CommonTree(CommonTree node) { method in class:CommonTree
62 public CommonTree(Token t) { method in class:CommonTree
71 return new CommonTree(this);
146 ((CommonTree)children.get(i)).setUnknownTokenBoundaries();
150 CommonTree firstChild = (CommonTree)childre
[all...]
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Test/Composition/
H A DProgram.cs40 IAstRuleReturnScope<CommonTree> r = g.prog();
41 CommonTree t = r.Tree;
45 t = (CommonTree)simplify.Downup(t);
48 t = (CommonTree)reduce.Downup(t);
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/tree/
H A DCommonTree.js7 org.antlr.runtime.tree.CommonTree = function(node) {
23 if (node instanceof org.antlr.runtime.tree.CommonTree) {
24 org.antlr.runtime.tree.CommonTree.superclass.constructor.call(this, node);
34 org.antlr.lang.extend(org.antlr.runtime.tree.CommonTree, org.antlr.runtime.tree.BaseTree, {
40 return new org.antlr.runtime.tree.CommonTree(this);
135 new org.antlr.runtime.tree.CommonTree(org.antlr.runtime.Token.INVALID_TOKEN);
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Test/
H A DSimpleExpression.g339 ASTLabelType=CommonTree;
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/
H A DParserRuleReturnScope.java30 import org.antlr.runtime.tree.CommonTree;

Completed in 4260 milliseconds

12345