Home
last modified time | relevance | path

Searched refs:TreeWizard (Results 1 – 24 of 24) sorted by relevance

/external/antlr/tool/src/test/java/org/antlr/test/
DTestTreeWizard.java33 import org.antlr.runtime.tree.TreeWizard;
49 TreeWizard wiz = new TreeWizard(adaptor, tokens); in testSingleNode()
57 TreeWizard wiz = new TreeWizard(adaptor, tokens); in testSingleNodeWithArg()
65 TreeWizard wiz = new TreeWizard(adaptor, tokens); in testSingleNodeTree()
73 TreeWizard wiz = new TreeWizard(adaptor, tokens); in testSingleLevelTree()
81 TreeWizard wiz = new TreeWizard(adaptor, tokens); in testListTree()
89 TreeWizard wiz = new TreeWizard(adaptor, tokens); in testInvalidListTree()
95 TreeWizard wiz = new TreeWizard(adaptor, tokens); in testDoubleLevelTree()
103 TreeWizard wiz = new TreeWizard(adaptor, tokens); in testSingleNodeIndex()
112 TreeWizard wiz = new TreeWizard(adaptor, tokens); in testNoRepeatsIndex()
[all …]
DTestTreeIterator.java42 TreeWizard wiz = new TreeWizard(adaptor, tokens); in testNode()
53 TreeWizard wiz = new TreeWizard(adaptor, tokens); in testFlatAB()
64 TreeWizard wiz = new TreeWizard(adaptor, tokens); in testAB()
75 TreeWizard wiz = new TreeWizard(adaptor, tokens); in testABC()
86 TreeWizard wiz = new TreeWizard(adaptor, tokens); in testVerticalList()
97 TreeWizard wiz = new TreeWizard(adaptor, tokens); in testComplex()
108 TreeWizard wiz = new TreeWizard(adaptor, tokens); in testReset()
/external/antlr/runtime/Python/unittests/
Dtesttreewizard.py8 from antlr3.treewizard import TreeWizard, computeTokenTypes, \
141 self.wizard = TreeWizard(self.adaptor, tokenNames=self.tokens)
248 wiz = TreeWizard(
263 wiz = TreeWizard(
284 wiz = TreeWizard(self.adaptor, self.tokens)
292 wiz = TreeWizard(self.adaptor, self.tokens)
300 wiz = TreeWizard(self.adaptor, self.tokens)
308 wiz = TreeWizard(self.adaptor, self.tokens)
316 wiz = TreeWizard(self.adaptor, self.tokens)
324 wiz = TreeWizard(self.adaptor, self.tokens)
[all …]
Dtesttree.py10 from antlr3.treewizard import TreeWizard
917 wiz = TreeWizard(adaptor, self.tokenNames)
936 wiz = TreeWizard(adaptor, self.tokenNames)
955 wiz = TreeWizard(adaptor, self.tokenNames)
974 wiz = TreeWizard(adaptor, self.tokenNames)
993 wiz = TreeWizard(adaptor, self.tokenNames)
1012 wiz = TreeWizard(adaptor, self.tokenNames)
1031 wiz = TreeWizard(adaptor, self.tokenNames)
1050 wiz = TreeWizard(adaptor, self.tokenNames)
1069 wiz = TreeWizard(adaptor, self.tokenNames)
[all …]
Dtestdottreegen.py11 from antlr3.treewizard import TreeWizard
23 self.wiz = TreeWizard(self.adaptor, self.tokens)
/external/antlr/runtime/Python3/unittests/
Dtesttreewizard.py7 from antlr3.treewizard import TreeWizard, computeTokenTypes, \
140 self.wizard = TreeWizard(self.adaptor, tokenNames=self.tokens)
247 wiz = TreeWizard(
262 wiz = TreeWizard(
283 wiz = TreeWizard(self.adaptor, self.tokens)
291 wiz = TreeWizard(self.adaptor, self.tokens)
299 wiz = TreeWizard(self.adaptor, self.tokens)
307 wiz = TreeWizard(self.adaptor, self.tokens)
315 wiz = TreeWizard(self.adaptor, self.tokens)
323 wiz = TreeWizard(self.adaptor, self.tokens)
[all …]
Dtesttree.py9 from antlr3.treewizard import TreeWizard
908 wiz = TreeWizard(adaptor, self.tokenNames)
927 wiz = TreeWizard(adaptor, self.tokenNames)
946 wiz = TreeWizard(adaptor, self.tokenNames)
965 wiz = TreeWizard(adaptor, self.tokenNames)
984 wiz = TreeWizard(adaptor, self.tokenNames)
1003 wiz = TreeWizard(adaptor, self.tokenNames)
1022 wiz = TreeWizard(adaptor, self.tokenNames)
1041 wiz = TreeWizard(adaptor, self.tokenNames)
1060 wiz = TreeWizard(adaptor, self.tokenNames)
[all …]
/external/antlr/tool/src/main/java/org/antlr/tool/
DStrip.java36 import org.antlr.runtime.tree.TreeWizard;
73 TreeWizard wiz = new TreeWizard(adaptor, tokenNames); in rewrite()
77 new TreeWizard.Visitor() { in rewrite()
83 new TreeWizard.Visitor() { in rewrite()
98 new TreeWizard.Visitor() { in rewrite()
108 new TreeWizard.Visitor() { in rewrite()
118 new TreeWizard.Visitor() { in rewrite()
126 new TreeWizard.Visitor() { in rewrite()
138 new TreeWizard.Visitor() { in rewrite()
148 new TreeWizard.Visitor() { in rewrite()
[all …]
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/
DTreePatternParser.cs41 protected TreeWizard wizard;
44 … public TreePatternParser( TreePatternLexer tokenizer, TreeWizard wizard, ITreeAdaptor adaptor ) in TreePatternParser()
134 TreeWizard.TreePattern node = in ParseNode()
135 new TreeWizard.WildcardTreePattern( wildcardPayload ); in ParseNode()
172 if ( label != null && node2.GetType() == typeof( TreeWizard.TreePattern ) ) in ParseNode()
174 ( (TreeWizard.TreePattern)node2 ).label = label; in ParseNode()
176 if ( arg != null && node2.GetType() == typeof( TreeWizard.TreePattern ) ) in ParseNode()
178 ( (TreeWizard.TreePattern)node2 ).hasTextArg = true; in ParseNode()
DTreeWizard.cs65 public class TreeWizard class
174 public TreeWizard( ITreeAdaptor adaptor ) in TreeWizard() method in Antlr.Runtime.Tree.TreeWizard
179 public TreeWizard( ITreeAdaptor adaptor, IDictionary<string, int> tokenNameToTypeMap ) in TreeWizard() method in Antlr.Runtime.Tree.TreeWizard
185 public TreeWizard( ITreeAdaptor adaptor, string[] tokenNames ) in TreeWizard() method in Antlr.Runtime.Tree.TreeWizard
191 public TreeWizard( string[] tokenNames ) in TreeWizard() method in Antlr.Runtime.Tree.TreeWizard
272 class FindTreeWizardVisitor : TreeWizard.Visitor
284 class FindTreeWizardContextVisitor : TreeWizard.IContextVisitor
286 TreeWizard _outer;
289 … public FindTreeWizardContextVisitor( TreeWizard outer, TreePattern tpattern, IList subtrees ) in FindTreeWizardContextVisitor()
380 class VisitTreeWizardContextVisitor : TreeWizard.IContextVisitor
[all …]
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
DTreePatternParser.cs39 protected TreeWizard wizard;
42 … public TreePatternParser(TreePatternLexer tokenizer, TreeWizard wizard, ITreeAdaptor adaptor) { in TreePatternParser()
114 TreeWizard.TreePattern node = in ParseNode()
115 new TreeWizard.WildcardTreePattern(wildcardPayload); in ParseNode()
147 if (label != null && node2.GetType() == typeof(TreeWizard.TreePattern)) { in ParseNode()
148 ((TreeWizard.TreePattern)node2).label = label; in ParseNode()
150 if (arg != null && node2.GetType() == typeof(TreeWizard.TreePattern)) { in ParseNode()
151 ((TreeWizard.TreePattern)node2).hasTextArg = true; in ParseNode()
DTreeWizard.cs64 public class TreeWizard { class
156 public TreeWizard(ITreeAdaptor adaptor) { in TreeWizard() method in Antlr.Runtime.Tree.TreeWizard
160 public TreeWizard(ITreeAdaptor adaptor, IDictionary<string, int> tokenNameToTypeMap) { in TreeWizard() method in Antlr.Runtime.Tree.TreeWizard
165 public TreeWizard(ITreeAdaptor adaptor, string[] tokenNames) { in TreeWizard() method in Antlr.Runtime.Tree.TreeWizard
170 public TreeWizard(string[] tokenNames) : in TreeWizard() method in Antlr.Runtime.Tree.TreeWizard
240 class FindTreeWizardVisitor : TreeWizard.Visitor {
249 class FindTreeWizardContextVisitor : TreeWizard.IContextVisitor {
250 TreeWizard _outer;
253 … public FindTreeWizardContextVisitor(TreeWizard outer, TreePattern tpattern, IList subtrees) { in FindTreeWizardContextVisitor()
330 class VisitTreeWizardContextVisitor : TreeWizard.IContextVisitor {
[all …]
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/tree/
DTreePatternParser.java36 protected TreeWizard wizard;
39 public TreePatternParser(TreePatternLexer tokenizer, TreeWizard wizard, TreeAdaptor adaptor) { in TreePatternParser()
113 TreeWizard.TreePattern node = in parseNode()
114 new TreeWizard.WildcardTreePattern(wildcardPayload); in parseNode()
146 if ( label!=null && node.getClass()==TreeWizard.TreePattern.class ) { in parseNode()
147 ((TreeWizard.TreePattern)node).label = label; in parseNode()
149 if ( arg!=null && node.getClass()==TreeWizard.TreePattern.class ) { in parseNode()
150 ((TreeWizard.TreePattern)node).hasTextArg = true; in parseNode()
DTreeWizard.java53 public class TreeWizard { class
125 public TreeWizard(TreeAdaptor adaptor) { in TreeWizard() method in TreeWizard
129 public TreeWizard(TreeAdaptor adaptor, Map<String, Integer> tokenNameToTypeMap) { in TreeWizard() method in TreeWizard
134 public TreeWizard(TreeAdaptor adaptor, String[] tokenNames) { in TreeWizard() method in TreeWizard
139 public TreeWizard(String[] tokenNames) { in TreeWizard() method in TreeWizard
205 visit(t, ttype, new TreeWizard.Visitor() { in find()
230 visit(t, rootTokenType, new TreeWizard.ContextVisitor() { in find()
293 visit(t, rootTokenType, new TreeWizard.ContextVisitor() { in visit()
/external/antlr/runtime/ObjC/Framework/
DTreePatternParser.h41 TreeWizard *wizard;
47 Wizard:(TreeWizard *)aWizard
51 Wizard:(TreeWizard *)aWizard
61 @property (retain) TreeWizard *wizard;
DTreeWizard.h97 @interface TreeWizard : NSObject {
101 + (TreeWizard *) newTreeWizard:(id<TreeAdaptor>)anAdaptor;
102 + (TreeWizard *)newTreeWizard:(id<TreeAdaptor>)adaptor Map:(Map *)aTokenNameToTypeMap;
103 + (TreeWizard *)newTreeWizard:(id<TreeAdaptor>)adaptor TokenNames:(NSArray *)theTokNams;
104 + (TreeWizard *)newTreeWizardWithTokenNames:(NSArray *)theTokNams;
116 - (TreeWizard *)findFirst:(CommonTree *) t Type:(NSInteger)ttype;
117 - (TreeWizard *)findFirst:(CommonTree *) t Pattern:(NSString *)pattern;
DTreeWizard.m2 // TreeWizard.m
32 #import "TreeWizard.h"
74 … if ( [(TreeWizard *)actor _parse:t Pattern:object1/* tpattern */ Map:object2 /* labels */] ) {
79 if ( [(TreeWizard *)actor _parse:t Pattern:object1/* tpattern */ Map:nil] ) {
182 @implementation TreeWizard implementation
205 + (TreeWizard *) newTreeWizard:(id<TreeAdaptor>)anAdaptor
207 return [[TreeWizard alloc] initWithAdaptor:anAdaptor];
210 + (TreeWizard *)newTreeWizard:(id<TreeAdaptor>)anAdaptor Map:(Map *)aTokenNameToTypeMap
212 return [[TreeWizard alloc] initWithAdaptor:anAdaptor Map:aTokenNameToTypeMap];
215 + (TreeWizard *)newTreeWizard:(id<TreeAdaptor>)anAdaptor TokenNames:(NSArray *)theTokNams
[all …]
DTreePatternParser.m38 Wizard:(TreeWizard *)aWizard
56 Wizard:(TreeWizard *)aWizard
/external/antlr/runtime/Python/antlr3/
Dextras.py41 from treewizard import TreeWizard
Dtreewizard.py303 class TreeWizard(object): class
/external/antlr/runtime/Python/
DTODO28 - TreeWizard:
/external/antlr/runtime/Python3/antlr3/
Dtreewizard.py303 class TreeWizard(object): class
/external/antlr/runtime/ObjC/Framework/ANTLR.xcodeproj/
Dproject.pbxproj152 …A4A851E11CBCF3700E4BF1B /* TreeWizard.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A4A851C11C…
153 …A4A851F11CBCF3700E4BF1B /* TreeWizard.m in Sources */ = {isa = PBXBuildFile; fileRef = 1A4A851D11C…
669 …1CBCF3700E4BF1B /* TreeWizard.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType …
670 …CBCF3700E4BF1B /* TreeWizard.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType =…
1519 1A4A851C11CBCF3700E4BF1B /* TreeWizard.h */,
1520 1A4A851D11CBCF3700E4BF1B /* TreeWizard.m */,
1815 1A4A851E11CBCF3700E4BF1B /* TreeWizard.h in Headers */,
2711 1A4A851F11CBCF3700E4BF1B /* TreeWizard.m in Sources */,
/external/antlr/tool/
DCHANGES.txt236 * TreeWizard ctor needed a default tree adapator.
1516 * Moved token type index stuff from CommonTreeNodeStream to TreeWizard