/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/ |
D | TestTrees.java | 30 import org.antlr.runtime.CommonToken; 45 public V(int ttype, int x) { this.x=x; token=new CommonToken(ttype); } in V() 51 CommonTree t = new CommonTree(new CommonToken(101)); in testSingleNode() 59 CommonTree u = new V(new CommonToken(102,"102")); in testTwoChildrenOfNilRoot() 70 CommonTree r0 = new CommonTree(new CommonToken(101)); in test4Nodes() 71 r0.addChild(new CommonTree(new CommonToken(102))); in test4Nodes() 72 r0.getChild(0).addChild(new CommonTree(new CommonToken(103))); in test4Nodes() 73 r0.addChild(new CommonTree(new CommonToken(104))); in test4Nodes() 83 r0.addChild(c0=new CommonTree(new CommonToken(101))); in testList() 84 r0.addChild(c1=new CommonTree(new CommonToken(102))); in testList() [all …]
|
D | TestTreeNodeStream.java | 30 import org.antlr.runtime.CommonToken; 48 Tree t = new CommonTree(new CommonToken(101)); in testSingleNode() 62 Tree t = new CommonTree(new CommonToken(101)); in test4Nodes() 63 t.addChild(new CommonTree(new CommonToken(102))); in test4Nodes() 64 t.getChild(0).addChild(new CommonTree(new CommonToken(103))); in test4Nodes() 65 t.addChild(new CommonTree(new CommonToken(104))); in test4Nodes() 80 Tree t = new CommonTree(new CommonToken(101)); in testList() 81 t.addChild(new CommonTree(new CommonToken(102))); in testList() 82 t.getChild(0).addChild(new CommonTree(new CommonToken(103))); in testList() 83 t.addChild(new CommonTree(new CommonToken(104))); in testList() [all …]
|
D | TestBufferedTreeNodeStream.java | 30 import org.antlr.runtime.CommonToken; 52 Tree r0 = new CommonTree(new CommonToken(101)); in testSeek() 53 Tree r1 = new CommonTree(new CommonToken(102)); in testSeek() 55 r1.addChild(new CommonTree(new CommonToken(103))); in testSeek() 56 Tree r2 = new CommonTree(new CommonToken(106)); in testSeek() 57 r2.addChild(new CommonTree(new CommonToken(107))); in testSeek() 59 r0.addChild(new CommonTree(new CommonToken(104))); in testSeek() 60 r0.addChild(new CommonTree(new CommonToken(105))); in testSeek()
|
D | TestCommonTokenStream.java | 176 new CommonToken(1," "), in testOffChannel() 177 new CommonToken(1,"x"), in testOffChannel() 178 new CommonToken(1," "), in testOffChannel() 179 new CommonToken(1,"="), in testOffChannel() 180 new CommonToken(1,"34"), in testOffChannel() 181 new CommonToken(1," "), in testOffChannel() 182 new CommonToken(1," "), in testOffChannel() 183 new CommonToken(1,";"), in testOffChannel() 184 new CommonToken(1,"\n"), in testOffChannel() 185 new CommonToken(Token.EOF,"") in testOffChannel()
|
D | TestAttributes.java | 34 import org.antlr.runtime.CommonToken; 60 new CommonToken(ANTLRParser.ACTION,action),0); in testEscapedLessThanInAction() 88 new CommonToken(ANTLRParser.ACTION,action),0); in testEscaped$InAction() 108 new CommonToken(ANTLRParser.ACTION,action),1); in testArguments() 133 new CommonToken(ANTLRParser.ACTION,action),1); in testComplicatedArgParsing() 186 new CommonToken(ANTLRParser.ACTION,action),1); in testStringArgParsing() 222 new CommonToken(ANTLRParser.ACTION,action),1); in testComplicatedSingleArgParsing() 247 new CommonToken(ANTLRParser.ACTION,action),1); in testArgWithLT() 278 new CommonToken(ANTLRParser.ACTION,action),1); in testGenericsAsArgumentDefinition() 316 new CommonToken(ANTLRParser.ACTION,action),1); in testGenericsAsArgumentDefinition2() [all …]
|
D | TestTemplates.java | 34 import org.antlr.runtime.CommonToken; 72 new CommonToken(ANTLRParser.ACTION,action),1); in testTemplateConstructor() 109 new CommonToken(ANTLRParser.ACTION,action),1); in testTemplateConstructorNoArgs() 147 new CommonToken(ANTLRParser.ACTION,action),1); in testIndirectTemplateConstructor() 182 new CommonToken(ANTLRParser.ACTION,action),1); in testStringConstructor() 218 new CommonToken(ANTLRParser.ACTION,action),1); in testSetAttr() 253 new CommonToken(ANTLRParser.ACTION,action),1); in testSetAttrOfExpr()
|
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime.Tests/ |
D | ITreeFixture.cs | 41 using CommonToken = Antlr.Runtime.CommonToken; typedef 57 CommonTree t = new CommonTree(new CommonToken(101)); in testSingleNode() 66 CommonTree r0 = new CommonTree(new CommonToken(101)); in test4Nodes() 67 r0.AddChild(new CommonTree(new CommonToken(102))); in test4Nodes() 68 r0.GetChild(0).AddChild(new CommonTree(new CommonToken(103))); in test4Nodes() 69 r0.AddChild(new CommonTree(new CommonToken(104))); in test4Nodes() 81 r0.AddChild(c0 = new CommonTree(new CommonToken(101))); in testList() 82 r0.AddChild(c1 = new CommonTree(new CommonToken(102))); in testList() 83 r0.AddChild(c2 = new CommonTree(new CommonToken(103))); in testList() 100 CommonTree root = new CommonTree(new CommonToken(5)); in testList2() [all …]
|
D | ITreeNodeStreamFixture.cs | 42 using CommonToken = Antlr.Runtime.CommonToken; typedef 59 ITree t = new CommonTree(new CommonToken(101)); in testSingleNode() 77 ITree t = new CommonTree(new CommonToken(101)); in test4Nodes() 78 t.AddChild(new CommonTree(new CommonToken(102))); in test4Nodes() 79 t.GetChild(0).AddChild(new CommonTree(new CommonToken(103))); in test4Nodes() 80 t.AddChild(new CommonTree(new CommonToken(104))); in test4Nodes() 97 ITree t = new CommonTree(new CommonToken(101)); in testList() 98 t.AddChild(new CommonTree(new CommonToken(102))); in testList() 99 t.GetChild(0).AddChild(new CommonTree(new CommonToken(103))); in testList() 100 t.AddChild(new CommonTree(new CommonToken(104))); in testList() [all …]
|
/external/antlr/antlr-3.4/runtime/Python/unittests/ |
D | testtree.py | 9 from antlr3 import CommonToken, UP, DOWN, EOF 25 t = CommonTree(CommonToken(101)) 44 self.token = CommonToken(type=ttype) 60 u = V(token=CommonToken(type=102, text="102")) 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))) 89 t = CommonTree(CommonToken(101)) 90 t.addChild(CommonTree(CommonToken(102))) [all …]
|
D | teststreams.py | 361 return antlr3.CommonToken(type=antlr3.EOF) 401 antlr3.CommonToken(type=12) 414 antlr3.CommonToken(type=12, channel=antlr3.HIDDEN_CHANNEL) 418 antlr3.CommonToken(type=13) 431 antlr3.CommonToken(type=12) 435 antlr3.CommonToken(type=13, channel=antlr3.HIDDEN_CHANNEL) 449 antlr3.CommonToken(type=12) 453 antlr3.CommonToken(type=13) 468 antlr3.CommonToken(type=12) 472 antlr3.CommonToken(type=13) [all …]
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/ |
D | CommonToken.cs | 40 public class CommonToken : IToken class 66 public CommonToken() in CommonToken() method in Antlr.Runtime.CommonToken 70 public CommonToken( int type ) in CommonToken() method in Antlr.Runtime.CommonToken 75 public CommonToken( ICharStream input, int type, int channel, int start, int stop ) in CommonToken() method in Antlr.Runtime.CommonToken 84 public CommonToken( int type, string text ) in CommonToken() method in Antlr.Runtime.CommonToken 91 public CommonToken( IToken oldToken ) in CommonToken() method in Antlr.Runtime.CommonToken 100 if ( oldToken is CommonToken ) in CommonToken() 102 start = ( (CommonToken)oldToken ).start; in CommonToken() 103 stop = ( (CommonToken)oldToken ).stop; in CommonToken()
|
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/ |
D | CommonToken.cs | 39 public class CommonToken : IToken { class 64 public CommonToken() { in CommonToken() method in Antlr.Runtime.CommonToken 67 public CommonToken(int type) { in CommonToken() method in Antlr.Runtime.CommonToken 71 public CommonToken(ICharStream input, int type, int channel, int start, int stop) { in CommonToken() method in Antlr.Runtime.CommonToken 79 public CommonToken(int type, string text) { in CommonToken() method in Antlr.Runtime.CommonToken 85 public CommonToken(IToken oldToken) { in CommonToken() method in Antlr.Runtime.CommonToken 93 if (oldToken is CommonToken) { in CommonToken() 94 start = ((CommonToken)oldToken).start; in CommonToken() 95 stop = ((CommonToken)oldToken).stop; in CommonToken()
|
D | TokenConstants.cs | 67 public static readonly IToken EndOfFile = Tokens<CommonToken>.EndOfFile; 69 public static readonly IToken Invalid = new CommonToken( TokenTypes.Invalid ); 76 public static readonly IToken Skip = new CommonToken( TokenTypes.Invalid );
|
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/ |
D | CommonToken.java | 32 public class CommonToken implements Token, Serializable { class 54 public CommonToken(int type) { in CommonToken() method in CommonToken 58 public CommonToken(CharStream input, int type, int channel, int start, int stop) { in CommonToken() method in CommonToken 66 public CommonToken(int type, String text) { in CommonToken() method in CommonToken 72 public CommonToken(Token oldToken) { in CommonToken() method in CommonToken 80 if ( oldToken instanceof CommonToken ) { in CommonToken() 81 start = ((CommonToken)oldToken).start; in CommonToken() 82 stop = ((CommonToken)oldToken).stop; in CommonToken()
|
D | Token.java | 42 public static final Token EOF_TOKEN = new CommonToken(EOF); 45 public static final Token INVALID_TOKEN = new CommonToken(INVALID_TOKEN_TYPE); 50 public static final Token SKIP_TOKEN = new CommonToken(INVALID_TOKEN_TYPE);
|
/external/antlr/antlr-3.4/runtime/Perl5/lib/ANTLR/Runtime/ |
D | Token.pm | 41 require ANTLR::Runtime::CommonToken; 42 state $EOF_TOKEN = ANTLR::Runtime::CommonToken->new({ type => EOF }); 51 require ANTLR::Runtime::CommonToken; 52 state $INVALID_TOKEN = ANTLR::Runtime::CommonToken->new({ type => INVALID_TOKEN_TYPE }); 60 require ANTLR::Runtime::CommonToken; 61 state $SKIP_TOKEN = ANTLR::Runtime::CommonToken->new({ type => INVALID_TOKEN_TYPE });
|
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/ |
D | CommonToken.js | 1 org.antlr.runtime.CommonToken = function() { class in org.antlr.runtime 19 if ( oldToken instanceof org.antlr.runtime.CommonToken ) { 37 org.antlr.lang.extend(org.antlr.runtime.CommonToken, 144 EOF_TOKEN: new org.antlr.runtime.CommonToken(org.antlr.runtime.CharStream.EOF), 145 INVALID_TOKEN: new org.antlr.runtime.CommonToken(0), 146 SKIP_TOKEN: new org.antlr.runtime.CommonToken(0)
|
/external/antlr/antlr-3.4/runtime/Ruby/test/unit/ |
D | test-trees.rb | 21 t = CommonTree.new(CommonToken.new { |t| t.type = 101 }) 39 super(token || (CommonToken.new { |t| t.type = type } if type)) 48 u = v.new CommonToken.create(:type => 102, :text => '102') 60 t = CommonTree.new CommonToken[101] 61 t.add_child( CommonTree.new CommonToken[102] ) 62 t.child(0).add_child(CommonTree.new CommonToken[103]) 63 t.add_child(CommonTree.new CommonToken[104]) 78 t = CommonTree.new CommonToken[101] 79 t.add_child CommonTree.new(CommonToken[102]) 80 t.child(0).add_child(CommonTree.new(CommonToken[103])) [all …]
|
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/ |
D | CommonToken.as | 32 public class CommonToken implements Token { class in org.antlr.runtime 54 public function CommonToken(type:int, text:String = null) { method in org.antlr.runtime.CommonToken 59 …nction createFromStream(input:CharStream, type:int, channel:int, start:int, stop:int):CommonToken { 60 var token:CommonToken = new CommonToken(type); 68 public static function cloneToken(oldToken:Token):CommonToken { 69 var token:CommonToken = new CommonToken(oldToken.type, oldToken.text); 74 if ( oldToken is CommonToken ) { 75 token._start = CommonToken(oldToken).startIndex; 76 token._stop = CommonToken(oldToken).stopIndex;
|
D | TokenConstants.as | 13 public static const EOF_TOKEN:Token = new CommonToken(EOF); 16 public static const INVALID_TOKEN:Token = new CommonToken(INVALID_TOKEN_TYPE); 21 public static const SKIP_TOKEN:Token = new CommonToken(INVALID_TOKEN_TYPE);
|
/external/smali/smalidea/src/main/java/org/jf/smalidea/util/ |
D | StringUtils.java | 34 import org.antlr.runtime.CommonToken; 52 CommonToken token = (CommonToken)lexer.nextToken(); in parseQuotedString()
|
/external/smali/smalidea/src/main/java/org/jf/smalidea/ |
D | PsiBuilderTokenStream.java | 38 import org.antlr.runtime.CommonToken; 51 @Nullable private CommonToken currentToken = null; 98 currentToken = new CommonToken(elementType.tokenId, psiBuilder.getTokenText()); in buildCurrentToken() 105 currentToken = new CommonToken(Token.EOF); in buildCurrentToken()
|
D | SmaliLexer.java | 37 import org.antlr.runtime.CommonToken; 45 private CommonToken token = null; 126 token = (CommonToken)lexer.nextToken(); in ensureToken()
|
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/ |
D | Interpreter.java | 59 public CommonToken token; 69 token = new CommonToken((CharStream)input,type,channel,0,0); in exitRule() 84 …return new CommonToken((CharStream)input,Token.EOF,Token.DEFAULT_CHANNEL,input.index(),input.index… in nextToken() 88 CommonToken token = null; in nextToken() 105 return new CommonToken((CharStream)input,Token.EOF,Token.DEFAULT_CHANNEL,start,start); in nextToken() 152 public CommonToken scan(String startRule) in scan() 158 public CommonToken scan(String startRule, in scan()
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/ |
D | CommonTreeAdaptor.cs | 71 return new CommonToken( tokenType, text ); in CreateToken() 94 return new CommonToken( fromToken ); in CreateToken()
|