HomeSort by relevance Sort by last modified time
    Searched refs:CommonToken (Results 1 - 25 of 123) sorted by null

1 2 3 4 5

  /external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/
Tokens.cs 42 public static readonly IToken Skip = new CommonToken( TokenTypes.Invalid );
CommonToken.cs 40 public class CommonToken : IToken
66 public CommonToken()
70 public CommonToken( int type )
75 public CommonToken( ICharStream input, int type, int channel, int start, int stop )
84 public CommonToken( int type, string text )
91 public CommonToken( IToken oldToken )
100 if ( oldToken is CommonToken )
102 start = ( (CommonToken)oldToken ).start;
103 stop = ( (CommonToken)oldToken ).stop;
  /external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/
TestTrees.java 30 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(102)))
    [all...]
TestTreeNodeStream.java 30 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(104)))
    [all...]
TestBufferedTreeNodeStream.java 30 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)));
TestCommonTokenStream.java 176 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(Token.EOF,""
    [all...]
TestMessages.java 34 import org.antlr.runtime.CommonToken;
65 new CommonToken(ANTLRParser.ACTION,action),1);
  /external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime.Tests/
ITreeFixture.cs 41 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(103)))
    [all...]
ITreeNodeStreamFixture.cs 42 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(103)))
    [all...]
  /external/antlr/antlr-3.4/runtime/Python/unittests/
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...]
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/Java/src/main/java/org/antlr/runtime/
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);
CommonToken.java 32 public class CommonToken implements Token, Serializable {
54 public CommonToken(int type) {
58 public CommonToken(CharStream input, int type, int channel, int start, int stop) {
66 public CommonToken(int type, String text) {
72 public CommonToken(Token oldToken) {
80 if ( oldToken instanceof CommonToken ) {
81 start = ((CommonToken)oldToken).start;
82 stop = ((CommonToken)oldToken).stop;
Parser.java 67 CommonToken t = new CommonToken(expectedTokenType, tokenText);
  /external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/
CommonTreeAdaptor.cs 71 return new CommonToken( tokenType, text );
94 return new CommonToken( fromToken );
  /external/smali/smali/src/main/java/org/jf/smali/
InvalidToken.java 31 import org.antlr.runtime.CommonToken;
33 public class InvalidToken extends CommonToken {
SemanticException.java 31 import org.antlr.runtime.CommonToken;
65 this.index = ((CommonToken)token).getStartIndex();
  /external/antlr/antlr-3.4/runtime/Perl5/lib/ANTLR/Runtime/
Token.pm 8 #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->new({ type => INVALID_TOKEN_TYPE })
    [all...]
  /external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
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 );
CommonToken.cs 39 public class CommonToken : IToken {
64 public CommonToken() {
67 public CommonToken(int type) {
71 public CommonToken(ICharStream input, int type, int channel, int start, int stop) {
79 public CommonToken(int type, string text) {
85 public CommonToken(IToken oldToken) {
93 if (oldToken is CommonToken) {
94 start = ((CommonToken)oldToken).start;
95 stop = ((CommonToken)oldToken).stop;
  /external/smali/smalidea/src/main/java/org/jf/smalidea/util/
StringUtils.java 34 import org.antlr.runtime.CommonToken;
52 CommonToken token = (CommonToken)lexer.nextToken();
  /external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/
CommonToken.as 32 public class CommonToken implements Token {
54 public function CommonToken(type:int, text:String = null) {
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(oldToken).startIndex
    [all...]
  /external/antlr/antlr-3.4/runtime/Perl5/t/classes/Test/ANTLR/Runtime/
CommonToken.pm 1 package Test::ANTLR::Runtime::CommonToken;
12 my $token = ANTLR::Runtime::CommonToken->new({
  /external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/
CommonToken.js 1 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/smali/smalidea/src/main/java/org/jf/smalidea/
SmaliLexer.java 37 import org.antlr.runtime.CommonToken;
45 private CommonToken token = null;
126 token = (CommonToken)lexer.nextToken();

Completed in 524 milliseconds

1 2 3 4 5