Searched refs:CommonToken (Results 1 - 25 of 99) sorted by relevance

1234

/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/
H A DTokens.cs42 public static readonly IToken Skip = new CommonToken( TokenTypes.Invalid );
H A DCommonToken.cs40 public class CommonToken : IToken class in namespace:Antlr.Runtime
66 public CommonToken() method in class:Antlr.Runtime.CommonToken
70 public CommonToken( int type ) method in class:Antlr.Runtime.CommonToken
75 public CommonToken( ICharStream input, int type, int channel, int start, int stop ) method in class:Antlr.Runtime.CommonToken
84 public CommonToken( int type, string text ) method in class:Antlr.Runtime.CommonToken
91 public CommonToken( IToken oldToken ) method in class:Antlr.Runtime.CommonToken
100 if ( oldToken is CommonToken )
102 start = ( (CommonToken)oldToken ).start;
103 stop = ( (CommonToken)oldToken ).stop;
H A DParser.cs83 CommonToken t = new CommonToken( expectedTokenType, tokenText );
/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/
H A DTestTrees.java30 import org.antlr.runtime.CommonToken;
45 public V(int ttype, int x) { this.x=x; token=new CommonToken(ttype); }
51 CommonTree t = new CommonTree(new CommonToken(101));
59 CommonTree u = new V(new CommonToken(102,"102"));
70 CommonTree r0 = new CommonTree(new CommonToken(101));
71 r0.addChild(new CommonTree(new CommonToken(102)));
72 r0.getChild(0).addChild(new CommonTree(new CommonToken(103)));
73 r0.addChild(new CommonTree(new CommonToken(104)));
83 r0.addChild(c0=new CommonTree(new CommonToken(101)));
84 r0.addChild(c1=new CommonTree(new CommonToken(10
[all...]
H A DTestTreeNodeStream.java30 import org.antlr.runtime.CommonToken;
48 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)));
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(new CommonToken(10
[all...]
H A DTestBufferedTreeNodeStream.java30 import org.antlr.runtime.CommonToken;
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 DTestCommonTokenStream.java176 new CommonToken(1," "),
177 new CommonToken(1,"x"),
178 new CommonToken(1," "),
179 new CommonToken(1,"="),
180 new CommonToken(1,"34"),
181 new CommonToken(1," "),
182 new CommonToken(1," "),
183 new CommonToken(1,";"),
184 new CommonToken(1,"\n"),
185 new CommonToken(Toke
[all...]
H A DTestMessages.java34 import org.antlr.runtime.CommonToken;
65 new CommonToken(ANTLRParser.ACTION,action),1);
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime.Tests/
H A DITreeFixture.cs41 using CommonToken = Antlr.Runtime.CommonToken;
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(new CommonToken(104)));
81 r0.AddChild(c0 = new CommonTree(new CommonToken(101)));
82 r0.AddChild(c1 = new CommonTree(new CommonToken(102)));
83 r0.AddChild(c2 = new CommonTree(new CommonToken(10
[all...]
H A DITreeNodeStreamFixture.cs42 using CommonToken = Antlr.Runtime.CommonToken;
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)));
97 ITree t = new CommonTree(new CommonToken(101));
98 t.AddChild(new CommonTree(new CommonToken(102)));
99 t.GetChild(0).AddChild(new CommonTree(new CommonToken(10
[all...]
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/
H A DCommonTreeAdaptor.cs71 return new CommonToken( tokenType, text );
94 return new CommonToken( fromToken );
/external/antlr/antlr-3.4/runtime/Python/unittests/
H A Dtesttree.py9 from antlr3 import CommonToken, UP, DOWN, EOF namespace
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(10
[all...]
H A Dteststreams.py361 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(typ
[all...]
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
H A DTokenConstants.cs67 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 );
H A DCommonToken.cs39 public class CommonToken : IToken { class in namespace:Antlr.Runtime
64 public CommonToken() { method in class:Antlr.Runtime.CommonToken
67 public CommonToken(int type) { method in class:Antlr.Runtime.CommonToken
71 public CommonToken(ICharStream input, int type, int channel, int start, int stop) { method in class:Antlr.Runtime.CommonToken
79 public CommonToken(int type, string text) { method in class:Antlr.Runtime.CommonToken
85 public CommonToken(IToken oldToken) { method in class:Antlr.Runtime.CommonToken
93 if (oldToken is CommonToken) {
94 start = ((CommonToken)oldToken).start;
95 stop = ((CommonToken)oldToken).stop;
H A DParser.cs76 CommonToken t = new CommonToken(expectedTokenType, tokenText);
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/
H A DToken.java42 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);
H A DCommonToken.java32 public class CommonToken implements Token, Serializable { class in inherits:Token,Serializable
54 public CommonToken(int type) { method in class:CommonToken
58 public CommonToken(CharStream input, int type, int channel, int start, int stop) { method in class:CommonToken
66 public CommonToken(int type, String text) { method in class:CommonToken
72 public CommonToken(Token oldToken) { method in class:CommonToken
80 if ( oldToken instanceof CommonToken ) {
81 start = ((CommonToken)oldToken).start;
82 stop = ((CommonToken)oldToken).stop;
H A DParser.java67 CommonToken t = new CommonToken(expectedTokenType, tokenText);
/external/smali/smali/src/main/java/org/jf/smali/
H A DInvalidToken.java31 import org.antlr.runtime.CommonToken;
33 public class InvalidToken extends CommonToken {
H A DSemanticException.java31 import org.antlr.runtime.CommonToken;
65 this.index = ((CommonToken)token).getStartIndex();
/external/antlr/antlr-3.4/runtime/Perl5/lib/ANTLR/Runtime/
H A DToken.pm8 #use ANTLR::Runtime::CommonToken;
39 #Readonly my $EOF_TOKEN => ANTLR::Runtime::CommonToken->new({ type => EOF });
41 require ANTLR::Runtime::CommonToken;
42 state $EOF_TOKEN = ANTLR::Runtime::CommonToken->new({ type => EOF });
49 #Readonly my $INVALID_TOKEN => ANTLR::Runtime::CommonToken->new({ type => INVALID_TOKEN_TYPE });
51 require ANTLR::Runtime::CommonToken;
52 state $INVALID_TOKEN = ANTLR::Runtime::CommonToken->new({ type => INVALID_TOKEN_TYPE });
58 #Readonly my $SKIP_TOKEN => ANTLR::Runtime::CommonToken->new({ type => INVALID_TOKEN_TYPE });
60 require ANTLR::Runtime::CommonToken;
61 state $SKIP_TOKEN = ANTLR::Runtime::CommonToken
[all...]
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/
H A DCommonToken.as32 public class CommonToken implements Token {
54 public function CommonToken(type:int, text:String = null) { function
59 public static function 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(oldToke
[all...]
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/
H A DCommonToken.js1 org.antlr.runtime.CommonToken = function() {
5 this.channel = 0; // org.antlr.runtime.CommonToken.DEFAULT_CHANNEL
19 if ( oldToken instanceof org.antlr.runtime.CommonToken ) {
27 this.channel = 0; // org.antlr.runtime.CommonToken.DEFAULT_CHANNEL
37 org.antlr.lang.extend(org.antlr.runtime.CommonToken,
142 /* Monkey patch Token static vars that depend on 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/Perl5/t/classes/Test/ANTLR/Runtime/
H A DCommonToken.pm1 package Test::ANTLR::Runtime::CommonToken;
12 my $token = ANTLR::Runtime::CommonToken->new({

Completed in 1144 milliseconds

1234