1 // $ANTLR 2.7.5 (20050128): "lang4.g" -> "RookLexer.cs"$
4 using System
.Collections
;
6 using Castle
.Rook
.Compiler
.AST
;
7 using Castle
.Rook
.Compiler
.Services
;
9 namespace Castle
.Rook
.Compiler
.Parser
11 // Generate header specific to lexer CSharp file
13 using Stream
= System
.IO
.Stream
;
14 using TextReader
= System
.IO
.TextReader
;
15 using Hashtable
= System
.Collections
.Hashtable
;
16 using Comparer
= System
.Collections
.Comparer
;
18 using TokenStreamException
= antlr
.TokenStreamException
;
19 using TokenStreamIOException
= antlr
.TokenStreamIOException
;
20 using TokenStreamRecognitionException
= antlr
.TokenStreamRecognitionException
;
21 using CharStreamException
= antlr
.CharStreamException
;
22 using CharStreamIOException
= antlr
.CharStreamIOException
;
23 using ANTLRException
= antlr
.ANTLRException
;
24 using CharScanner
= antlr
.CharScanner
;
25 using InputBuffer
= antlr
.InputBuffer
;
26 using ByteBuffer
= antlr
.ByteBuffer
;
27 using CharBuffer
= antlr
.CharBuffer
;
28 using Token
= antlr
.Token
;
29 using IToken
= antlr
.IToken
;
30 using CommonToken
= antlr
.CommonToken
;
31 using SemanticException
= antlr
.SemanticException
;
32 using RecognitionException
= antlr
.RecognitionException
;
33 using NoViableAltForCharException
= antlr
.NoViableAltForCharException
;
34 using MismatchedCharException
= antlr
.MismatchedCharException
;
35 using TokenStream
= antlr
.TokenStream
;
36 using LexerSharedInputState
= antlr
.LexerSharedInputState
;
37 using BitSet
= antlr
.collections
.impl
.BitSet
;
39 public class RookLexer
: antlr
.CharScanner
, TokenStream
41 public const int EOF
= 1;
42 public const int NULL_TREE_LOOKAHEAD
= 3;
43 public const int CLASS
= 4;
44 public const int DO
= 5;
45 public const int END
= 6;
46 public const int DEF
= 7;
47 public const int OPERATOR
= 8;
48 public const int BEGIN
= 9;
49 public const int WHILE
= 10;
50 public const int TYPE
= 11;
51 public const int METHOD_CALL
= 12;
52 public const int SUPER_CTOR_CALL
= 13;
53 public const int POST_INC
= 14;
54 public const int POST_DEC
= 15;
55 public const int EXPR
= 16;
56 public const int ELIST
= 17;
57 public const int INDEX_OP
= 18;
58 public const int UNARY_MINUS
= 19;
59 public const int UNARY_PLUS
= 20;
60 public const int TYPECAST
= 21;
61 public const int ARRAY_DECLARATOR
= 22;
62 public const int NUM_INT
= 23;
63 public const int NUM_DOUBLE
= 24;
64 public const int NUM_FLOAT
= 25;
65 public const int NUM_LONG
= 26;
66 public const int STATEMENT_END
= 27;
67 public const int IDENT
= 28;
68 public const int DOT
= 29;
69 public const int COLONCOLON
= 30;
70 public const int COLON
= 31;
71 public const int STATICIDENT
= 32;
72 public const int INSTIDENT
= 33;
73 public const int SEMI
= 34;
74 public const int LITERAL_namespace
= 35;
75 public const int SL
= 36;
76 public const int LITERAL_self
= 37;
77 public const int LITERAL_override
= 38;
78 public const int LITERAL_abstract
= 39;
79 public const int LITERAL_new
= 40;
80 public const int LITERAL_final
= 41;
81 public const int LITERAL_public
= 42;
82 public const int LITERAL_private
= 43;
83 public const int LITERAL_protected
= 44;
84 public const int LITERAL_internal
= 45;
85 public const int COMMA
= 46;
86 public const int ASSIGN
= 47;
87 public const int LITERAL_initialize
= 48;
88 public const int LPAREN
= 49;
89 public const int RPAREN
= 50;
90 public const int LITERAL_require
= 51;
91 public const int LTHAN
= 52;
92 public const int STAR
= 53;
93 public const int BAND
= 54;
94 public const int PLUS_ASSIGN
= 55;
95 public const int MINUS_ASSIGN
= 56;
96 public const int STAR_ASSIGN
= 57;
97 public const int DIV_ASSIGN
= 58;
98 public const int MOD_ASSIGN
= 59;
99 public const int BAND_ASSIGN
= 60;
100 public const int BOR_ASSIGN
= 61;
101 public const int BXOR_ASSIGN
= 62;
102 public const int LITERAL_if
= 63;
103 public const int LITERAL_unless
= 64;
104 public const int LITERAL_until
= 65;
105 public const int LITERAL_redo
= 66;
106 public const int LITERAL_break
= 67;
107 public const int LITERAL_next
= 68;
108 public const int LITERAL_retry
= 69;
109 public const int LITERAL_lambda
= 70;
110 public const int LCURLY
= 71;
111 public const int RCURLY
= 72;
112 public const int LITERAL_raise
= 73;
113 public const int LITERAL_yield
= 74;
114 public const int BOR
= 75;
115 public const int LITERAL_or
= 76;
116 public const int LITERAL_and
= 77;
117 public const int LITERAL_not
= 78;
118 public const int LNOT
= 79;
119 public const int GT
= 80;
120 public const int EQUAL
= 81;
121 public const int GE
= 82;
122 public const int LE
= 83;
123 public const int NOT_EQUAL
= 84;
124 public const int LITERAL_is
= 85;
125 public const int BXOR
= 86;
126 public const int PLUS
= 87;
127 public const int MINUS
= 88;
128 public const int SLASH
= 89;
129 public const int PERCENT
= 90;
130 public const int BNOT
= 91;
131 public const int LBRACK
= 92;
132 public const int RBRACK
= 93;
133 public const int LITERAL_base
= 94;
134 public const int STRING_LITERAL
= 95;
135 public const int CHAR_LITERAL
= 96;
137 public const int DOTDOT
= 98;
138 public const int DOTDOTDOT
= 99;
139 public const int MAPASSIGN
= 100;
140 public const int QUESTION
= 101;
141 public const int DIV
= 102;
142 public const int INC
= 103;
143 public const int DEC
= 104;
144 public const int MOD
= 105;
145 public const int SR
= 106;
146 public const int SR_ASSIGN
= 107;
147 public const int BSR
= 108;
148 public const int BSR_ASSIGN
= 109;
149 public const int SL_ASSIGN
= 110;
150 public const int LOR
= 111;
151 public const int LAND
= 112;
152 public const int NEWLINE
= 113;
153 public const int SL_NEWLINE
= 114;
154 public const int SL_COMMENT
= 115;
155 public const int WS
= 116;
156 public const int ESC
= 117;
157 public const int HEX_DIGIT
= 118;
158 public const int VOCAB
= 119;
159 public const int NUMBER
= 120;
160 public const int Int
= 121;
161 public const int NonZeroDigit
= 122;
162 public const int FloatTrailer
= 123;
163 public const int Exponent
= 124;
164 public const int CONTINUED_LINE
= 125;
167 private int lastToken
= 0;
169 private int getProperType()
172 if (lastToken
== STATEMENT_END
|| lastToken
== SEMI
)
178 result
= STATEMENT_END
;
183 protected internal override IToken
makeToken(int type
) {
185 return base.makeToken(type
);
187 public RookLexer(Stream ins
) : this(new ByteBuffer(ins
))
191 public RookLexer(TextReader r
) : this(new CharBuffer(r
))
195 public RookLexer(InputBuffer ib
) : this(new LexerSharedInputState(ib
))
199 public RookLexer(LexerSharedInputState state
) : base(state
)
203 private void initialize()
205 caseSensitiveLiterals
= true;
206 setCaseSensitive(true);
207 literals
= new Hashtable(100, (float) 0.4, null, Comparer
.Default
);
208 literals
.Add("raise", 73);
209 literals
.Add("class", 4);
210 literals
.Add("redo", 66);
211 literals
.Add("final", 41);
212 literals
.Add("internal", 45);
213 literals
.Add("self", 37);
214 literals
.Add("base", 94);
215 literals
.Add("require", 51);
216 literals
.Add("and", 77);
217 literals
.Add("def", 7);
218 literals
.Add("retry", 69);
219 literals
.Add("private", 43);
220 literals
.Add("end", 6);
221 literals
.Add("override", 38);
222 literals
.Add("next", 68);
223 literals
.Add("until", 65);
224 literals
.Add("initialize", 48);
225 literals
.Add("begin", 9);
226 literals
.Add("do", 5);
227 literals
.Add("nil?", 97);
228 literals
.Add("namespace", 35);
229 literals
.Add("operator", 8);
230 literals
.Add("lambda", 70);
231 literals
.Add("while", 10);
232 literals
.Add("or", 76);
233 literals
.Add("abstract", 39);
234 literals
.Add("is", 85);
235 literals
.Add("protected", 44);
236 literals
.Add("break", 67);
237 literals
.Add("new", 40);
238 literals
.Add("if", 63);
239 literals
.Add("yield", 74);
240 literals
.Add("public", 42);
241 literals
.Add("unless", 64);
242 literals
.Add("not", 78);
245 override public IToken
nextToken() //throws TokenStreamException
247 IToken theRetToken
= null;
251 IToken _token
= null;
252 int _ttype
= Token
.INVALID_TYPE
;
254 try // for char stream error handling
256 try // for lexical error handling
258 switch ( cached_LA1
)
263 theRetToken
= returnToken_
;
269 theRetToken
= returnToken_
;
275 theRetToken
= returnToken_
;
281 theRetToken
= returnToken_
;
287 theRetToken
= returnToken_
;
293 theRetToken
= returnToken_
;
299 theRetToken
= returnToken_
;
305 theRetToken
= returnToken_
;
311 theRetToken
= returnToken_
;
317 theRetToken
= returnToken_
;
320 case '\n': case '\r':
323 theRetToken
= returnToken_
;
326 case '\t': case '\u000c': case ' ':
329 theRetToken
= returnToken_
;
335 theRetToken
= returnToken_
;
341 theRetToken
= returnToken_
;
346 mSTRING_LITERAL(true);
347 theRetToken
= returnToken_
;
350 case '$': case 'A': case 'B': case 'C':
351 case 'D': case 'E': case 'F': case 'G':
352 case 'H': case 'I': case 'J': case 'K':
353 case 'L': case 'M': case 'N': case 'O':
354 case 'P': case 'Q': case 'R': case 'S':
355 case 'T': case 'U': case 'V': case 'W':
356 case 'X': case 'Y': case 'Z': case '_':
357 case 'a': case 'b': case 'c': case 'd':
358 case 'e': case 'f': case 'g': case 'h':
359 case 'i': case 'j': case 'k': case 'l':
360 case 'm': case 'n': case 'o': case 'p':
361 case 'q': case 'r': case 's': case 't':
362 case 'u': case 'v': case 'w': case 'x':
366 theRetToken
= returnToken_
;
369 case '0': case '1': case '2': case '3':
370 case '4': case '5': case '6': case '7':
374 theRetToken
= returnToken_
;
379 mCONTINUED_LINE(true);
380 theRetToken
= returnToken_
;
384 if ((cached_LA1
=='>') && (cached_LA2
=='>') && (LA(3)=='>') && (LA(4)=='='))
387 theRetToken
= returnToken_
;
389 else if ((cached_LA1
=='.') && (cached_LA2
=='.') && (LA(3)=='.')) {
391 theRetToken
= returnToken_
;
393 else if ((cached_LA1
=='>') && (cached_LA2
=='>') && (LA(3)=='=')) {
395 theRetToken
= returnToken_
;
397 else if ((cached_LA1
=='>') && (cached_LA2
=='>') && (LA(3)=='>') && (true)) {
399 theRetToken
= returnToken_
;
401 else if ((cached_LA1
=='<') && (cached_LA2
=='<') && (LA(3)=='=')) {
403 theRetToken
= returnToken_
;
405 else if ((cached_LA1
=='.') && (cached_LA2
=='.') && (true)) {
407 theRetToken
= returnToken_
;
409 else if ((cached_LA1
=='=') && (cached_LA2
=='=')) {
411 theRetToken
= returnToken_
;
413 else if ((cached_LA1
=='!') && (cached_LA2
=='=')) {
415 theRetToken
= returnToken_
;
417 else if ((cached_LA1
=='/') && (cached_LA2
=='=')) {
419 theRetToken
= returnToken_
;
421 else if ((cached_LA1
=='+') && (cached_LA2
=='=')) {
423 theRetToken
= returnToken_
;
425 else if ((cached_LA1
=='+') && (cached_LA2
=='+')) {
427 theRetToken
= returnToken_
;
429 else if ((cached_LA1
=='-') && (cached_LA2
=='=')) {
431 theRetToken
= returnToken_
;
433 else if ((cached_LA1
=='-') && (cached_LA2
=='-')) {
435 theRetToken
= returnToken_
;
437 else if ((cached_LA1
=='*') && (cached_LA2
=='=')) {
439 theRetToken
= returnToken_
;
441 else if ((cached_LA1
=='%') && (cached_LA2
=='=')) {
443 theRetToken
= returnToken_
;
445 else if ((cached_LA1
=='>') && (cached_LA2
=='>') && (true)) {
447 theRetToken
= returnToken_
;
449 else if ((cached_LA1
=='>') && (cached_LA2
=='=')) {
451 theRetToken
= returnToken_
;
453 else if ((cached_LA1
=='<') && (cached_LA2
=='<') && (true)) {
455 theRetToken
= returnToken_
;
457 else if ((cached_LA1
=='<') && (cached_LA2
=='=')) {
459 theRetToken
= returnToken_
;
461 else if ((cached_LA1
=='^') && (cached_LA2
=='=')) {
463 theRetToken
= returnToken_
;
465 else if ((cached_LA1
=='|') && (cached_LA2
=='=')) {
467 theRetToken
= returnToken_
;
469 else if ((cached_LA1
=='|') && (cached_LA2
=='|')) {
471 theRetToken
= returnToken_
;
473 else if ((cached_LA1
=='&') && (cached_LA2
=='=')) {
475 theRetToken
= returnToken_
;
477 else if ((cached_LA1
=='&') && (cached_LA2
=='&')) {
479 theRetToken
= returnToken_
;
481 else if ((cached_LA1
=='=') && (cached_LA2
=='>')) {
483 theRetToken
= returnToken_
;
485 else if ((cached_LA1
==':') && (cached_LA2
==':')) {
487 theRetToken
= returnToken_
;
489 else if ((cached_LA1
=='@') && (tokenSet_0_
.member(cached_LA2
))) {
491 theRetToken
= returnToken_
;
493 else if ((cached_LA1
=='@') && (cached_LA2
=='@')) {
495 theRetToken
= returnToken_
;
497 else if ((cached_LA1
=='.') && (true)) {
499 theRetToken
= returnToken_
;
501 else if ((cached_LA1
=='=') && (true)) {
503 theRetToken
= returnToken_
;
505 else if ((cached_LA1
=='!') && (true)) {
507 theRetToken
= returnToken_
;
509 else if ((cached_LA1
=='/') && (true)) {
511 theRetToken
= returnToken_
;
513 else if ((cached_LA1
=='+') && (true)) {
515 theRetToken
= returnToken_
;
517 else if ((cached_LA1
=='-') && (true)) {
519 theRetToken
= returnToken_
;
521 else if ((cached_LA1
=='*') && (true)) {
523 theRetToken
= returnToken_
;
525 else if ((cached_LA1
=='%') && (true)) {
527 theRetToken
= returnToken_
;
529 else if ((cached_LA1
=='>') && (true)) {
531 theRetToken
= returnToken_
;
533 else if ((cached_LA1
=='<') && (true)) {
535 theRetToken
= returnToken_
;
537 else if ((cached_LA1
=='^') && (true)) {
539 theRetToken
= returnToken_
;
541 else if ((cached_LA1
=='|') && (true)) {
543 theRetToken
= returnToken_
;
545 else if ((cached_LA1
=='&') && (true)) {
547 theRetToken
= returnToken_
;
549 else if ((cached_LA1
==':') && (true)) {
551 theRetToken
= returnToken_
;
555 if (cached_LA1
==EOF_CHAR
) { uponEOF(); returnToken_ = makeToken(Token.EOF_TYPE); }
556 else {throw new NoViableAltForCharException(cached_LA1, getFilename(), getLine(), getColumn());}
559 if ( null==returnToken_
) goto tryAgain
; // found SKIP token
560 _ttype
= returnToken_
.Type
;
561 returnToken_
.Type
= _ttype
;
564 catch (RecognitionException e
) {
565 throw new TokenStreamRecognitionException(e
);
568 catch (CharStreamException cse
) {
569 if ( cse
is CharStreamIOException
) {
570 throw new TokenStreamIOException(((CharStreamIOException
)cse
).io
);
573 throw new TokenStreamException(cse
.Message
);
579 public void mQUESTION(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
581 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
585 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
587 _token
= makeToken(_ttype
);
588 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
590 returnToken_
= _token
;
593 public void mLPAREN(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
595 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
599 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
601 _token
= makeToken(_ttype
);
602 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
604 returnToken_
= _token
;
607 public void mRPAREN(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
609 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
613 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
615 _token
= makeToken(_ttype
);
616 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
618 returnToken_
= _token
;
621 public void mLBRACK(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
623 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
627 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
629 _token
= makeToken(_ttype
);
630 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
632 returnToken_
= _token
;
635 public void mRBRACK(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
637 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
641 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
643 _token
= makeToken(_ttype
);
644 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
646 returnToken_
= _token
;
649 public void mLCURLY(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
651 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
655 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
657 _token
= makeToken(_ttype
);
658 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
660 returnToken_
= _token
;
663 public void mRCURLY(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
665 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
669 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
671 _token
= makeToken(_ttype
);
672 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
674 returnToken_
= _token
;
677 public void mCOMMA(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
679 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
683 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
685 _token
= makeToken(_ttype
);
686 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
688 returnToken_
= _token
;
691 public void mDOT(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
693 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
697 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
699 _token
= makeToken(_ttype
);
700 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
702 returnToken_
= _token
;
705 public void mDOTDOT(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
707 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
711 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
713 _token
= makeToken(_ttype
);
714 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
716 returnToken_
= _token
;
719 public void mDOTDOTDOT(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
721 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
725 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
727 _token
= makeToken(_ttype
);
728 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
730 returnToken_
= _token
;
733 public void mASSIGN(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
735 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
739 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
741 _token
= makeToken(_ttype
);
742 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
744 returnToken_
= _token
;
747 public void mEQUAL(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
749 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
753 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
755 _token
= makeToken(_ttype
);
756 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
758 returnToken_
= _token
;
761 public void mLNOT(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
763 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
767 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
769 _token
= makeToken(_ttype
);
770 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
772 returnToken_
= _token
;
775 public void mBNOT(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
777 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
781 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
783 _token
= makeToken(_ttype
);
784 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
786 returnToken_
= _token
;
789 public void mNOT_EQUAL(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
791 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
795 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
797 _token
= makeToken(_ttype
);
798 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
800 returnToken_
= _token
;
803 public void mDIV(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
805 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
809 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
811 _token
= makeToken(_ttype
);
812 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
814 returnToken_
= _token
;
817 public void mDIV_ASSIGN(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
819 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
823 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
825 _token
= makeToken(_ttype
);
826 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
828 returnToken_
= _token
;
831 public void mPLUS(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
833 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
837 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
839 _token
= makeToken(_ttype
);
840 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
842 returnToken_
= _token
;
845 public void mPLUS_ASSIGN(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
847 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
848 _ttype
= PLUS_ASSIGN
;
851 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
853 _token
= makeToken(_ttype
);
854 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
856 returnToken_
= _token
;
859 public void mINC(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
861 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
865 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
867 _token
= makeToken(_ttype
);
868 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
870 returnToken_
= _token
;
873 public void mMINUS(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
875 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
879 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
881 _token
= makeToken(_ttype
);
882 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
884 returnToken_
= _token
;
887 public void mMINUS_ASSIGN(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
889 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
890 _ttype
= MINUS_ASSIGN
;
893 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
895 _token
= makeToken(_ttype
);
896 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
898 returnToken_
= _token
;
901 public void mDEC(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
903 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
907 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
909 _token
= makeToken(_ttype
);
910 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
912 returnToken_
= _token
;
915 public void mSTAR(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
917 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
921 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
923 _token
= makeToken(_ttype
);
924 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
926 returnToken_
= _token
;
929 public void mSTAR_ASSIGN(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
931 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
932 _ttype
= STAR_ASSIGN
;
935 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
937 _token
= makeToken(_ttype
);
938 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
940 returnToken_
= _token
;
943 public void mMOD(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
945 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
949 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
951 _token
= makeToken(_ttype
);
952 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
954 returnToken_
= _token
;
957 public void mMOD_ASSIGN(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
959 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
963 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
965 _token
= makeToken(_ttype
);
966 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
968 returnToken_
= _token
;
971 public void mSR(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
973 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
977 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
979 _token
= makeToken(_ttype
);
980 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
982 returnToken_
= _token
;
985 public void mSR_ASSIGN(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
987 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
991 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
993 _token
= makeToken(_ttype
);
994 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
996 returnToken_
= _token
;
999 public void mBSR(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
1001 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
1005 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
1007 _token
= makeToken(_ttype
);
1008 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
1010 returnToken_
= _token
;
1013 public void mBSR_ASSIGN(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
1015 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
1016 _ttype
= BSR_ASSIGN
;
1019 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
1021 _token
= makeToken(_ttype
);
1022 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
1024 returnToken_
= _token
;
1027 public void mGE(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
1029 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
1033 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
1035 _token
= makeToken(_ttype
);
1036 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
1038 returnToken_
= _token
;
1041 public void mGT(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
1043 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
1047 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
1049 _token
= makeToken(_ttype
);
1050 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
1052 returnToken_
= _token
;
1055 public void mSL(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
1057 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
1061 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
1063 _token
= makeToken(_ttype
);
1064 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
1066 returnToken_
= _token
;
1069 public void mSL_ASSIGN(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
1071 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
1075 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
1077 _token
= makeToken(_ttype
);
1078 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
1080 returnToken_
= _token
;
1083 public void mLE(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
1085 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
1089 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
1091 _token
= makeToken(_ttype
);
1092 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
1094 returnToken_
= _token
;
1097 public void mLTHAN(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
1099 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
1103 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
1105 _token
= makeToken(_ttype
);
1106 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
1108 returnToken_
= _token
;
1111 public void mBXOR(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
1113 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
1117 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
1119 _token
= makeToken(_ttype
);
1120 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
1122 returnToken_
= _token
;
1125 public void mBXOR_ASSIGN(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
1127 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
1128 _ttype
= BXOR_ASSIGN
;
1131 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
1133 _token
= makeToken(_ttype
);
1134 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
1136 returnToken_
= _token
;
1139 public void mBOR(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
1141 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
1145 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
1147 _token
= makeToken(_ttype
);
1148 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
1150 returnToken_
= _token
;
1153 public void mBOR_ASSIGN(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
1155 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
1156 _ttype
= BOR_ASSIGN
;
1159 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
1161 _token
= makeToken(_ttype
);
1162 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
1164 returnToken_
= _token
;
1167 public void mLOR(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
1169 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
1173 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
1175 _token
= makeToken(_ttype
);
1176 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
1178 returnToken_
= _token
;
1181 public void mBAND(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
1183 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
1187 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
1189 _token
= makeToken(_ttype
);
1190 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
1192 returnToken_
= _token
;
1195 public void mBAND_ASSIGN(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
1197 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
1198 _ttype
= BAND_ASSIGN
;
1201 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
1203 _token
= makeToken(_ttype
);
1204 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
1206 returnToken_
= _token
;
1209 public void mLAND(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
1211 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
1215 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
1217 _token
= makeToken(_ttype
);
1218 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
1220 returnToken_
= _token
;
1223 public void mSEMI(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
1225 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
1229 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
1231 _token
= makeToken(_ttype
);
1232 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
1234 returnToken_
= _token
;
1237 public void mMAPASSIGN(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
1239 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
1243 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
1245 _token
= makeToken(_ttype
);
1246 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
1248 returnToken_
= _token
;
1251 public void mCOLON(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
1253 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
1257 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
1259 _token
= makeToken(_ttype
);
1260 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
1262 returnToken_
= _token
;
1265 public void mCOLONCOLON(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
1267 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
1268 _ttype
= COLONCOLON
;
1271 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
1273 _token
= makeToken(_ttype
);
1274 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
1276 returnToken_
= _token
;
1279 public void mNEWLINE(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
1281 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
1285 if (0==inputState
.guessing
)
1289 _ttype
= getProperType();
1293 if ((cached_LA1
=='\t'||cached_LA1
=='\n'||cached_LA1
=='\u000c'||cached_LA1
=='\r'||cached_LA1
==' '||cached_LA1
=='#'))
1299 switch ( cached_LA1
)
1301 case '\n': case '\r':
1306 case '\t': case '\u000c': case ' ':
1318 if (_cnt210
>= 1) { goto _loop210_breakloop; }
else { throw new NoViableAltForCharException(cached_LA1, getFilename(), getLine(), getColumn());; }
1323 _loop210_breakloop: ;
1330 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
1332 _token
= makeToken(_ttype
);
1333 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
1335 returnToken_
= _token
;
1338 protected void mSL_NEWLINE(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
1340 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
1341 _ttype
= SL_NEWLINE
;
1344 if ((cached_LA1
=='\r') && (cached_LA2
=='\n') && (true) && (true))
1348 else if ((cached_LA1
=='\r') && (true) && (true) && (true)) {
1351 else if ((cached_LA1
=='\n')) {
1356 throw new NoViableAltForCharException(cached_LA1
, getFilename(), getLine(), getColumn());
1360 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
1362 _token
= makeToken(_ttype
);
1363 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
1365 returnToken_
= _token
;
1368 public void mWS(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
1370 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
1377 if ((cached_LA1
==' ') && (true) && (true) && (true))
1381 else if ((cached_LA1
=='\t') && (true) && (true) && (true)) {
1384 else if ((cached_LA1
=='\u000c') && (true) && (true) && (true)) {
1389 if (_cnt219
>= 1) { goto _loop219_breakloop; }
else { throw new NoViableAltForCharException(cached_LA1, getFilename(), getLine(), getColumn());; }
1394 _loop219_breakloop: ;
1396 if (0==inputState
.guessing
)
1398 _ttype
= Token
.SKIP
;
1400 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
1402 _token
= makeToken(_ttype
);
1403 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
1405 returnToken_
= _token
;
1408 public void mSL_COMMENT(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
1410 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
1411 _ttype
= SL_COMMENT
;
1417 if ((tokenSet_1_
.member(cached_LA1
)) && (true) && (true) && (true))
1425 goto _loop216_breakloop
;
1429 _loop216_breakloop: ;
1431 if (0==inputState
.guessing
)
1433 _ttype
= Token
.SKIP
;
1435 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
1437 _token
= makeToken(_ttype
);
1438 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
1440 returnToken_
= _token
;
1443 public void mCHAR_LITERAL(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
1445 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
1446 _ttype
= CHAR_LITERAL
;
1450 if ((cached_LA1
=='\\'))
1454 else if ((tokenSet_2_
.member(cached_LA1
))) {
1459 throw new NoViableAltForCharException(cached_LA1
, getFilename(), getLine(), getColumn());
1464 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
1466 _token
= makeToken(_ttype
);
1467 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
1469 returnToken_
= _token
;
1472 protected void mESC(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
1474 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
1479 switch ( cached_LA1
)
1527 if ((cached_LA1
=='u'))
1533 if (_cnt229
>= 1) { goto _loop229_breakloop; }
else { throw new NoViableAltForCharException(cached_LA1, getFilename(), getLine(), getColumn());; }
1538 _loop229_breakloop: ;
1546 case '0': case '1': case '2': case '3':
1548 matchRange('0','3');
1550 if (((cached_LA1
>= '0' && cached_LA1
<= '7')) && ((cached_LA2
>= '\u0003' && cached_LA2
<= '\uffff')) && (true) && (true))
1552 matchRange('0','7');
1554 if (((cached_LA1
>= '0' && cached_LA1
<= '7')) && ((cached_LA2
>= '\u0003' && cached_LA2
<= '\uffff')) && (true) && (true))
1556 matchRange('0','7');
1558 else if (((cached_LA1
>= '\u0003' && cached_LA1
<= '\uffff')) && (true) && (true) && (true)) {
1562 throw new NoViableAltForCharException(cached_LA1
, getFilename(), getLine(), getColumn());
1567 else if (((cached_LA1
>= '\u0003' && cached_LA1
<= '\uffff')) && (true) && (true) && (true)) {
1571 throw new NoViableAltForCharException(cached_LA1
, getFilename(), getLine(), getColumn());
1577 case '4': case '5': case '6': case '7':
1579 matchRange('4','7');
1581 if (((cached_LA1
>= '0' && cached_LA1
<= '7')) && ((cached_LA2
>= '\u0003' && cached_LA2
<= '\uffff')) && (true) && (true))
1583 matchRange('0','7');
1585 else if (((cached_LA1
>= '\u0003' && cached_LA1
<= '\uffff')) && (true) && (true) && (true)) {
1589 throw new NoViableAltForCharException(cached_LA1
, getFilename(), getLine(), getColumn());
1597 throw new NoViableAltForCharException(cached_LA1
, getFilename(), getLine(), getColumn());
1601 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
1603 _token
= makeToken(_ttype
);
1604 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
1606 returnToken_
= _token
;
1609 public void mSTRING_LITERAL(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
1611 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
1612 _ttype
= STRING_LITERAL
;
1618 if ((cached_LA1
=='\\'))
1622 else if ((tokenSet_3_
.member(cached_LA1
))) {
1629 goto _loop225_breakloop
;
1633 _loop225_breakloop: ;
1636 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
1638 _token
= makeToken(_ttype
);
1639 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
1641 returnToken_
= _token
;
1644 protected void mHEX_DIGIT(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
1646 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
1650 switch ( cached_LA1
)
1652 case '0': case '1': case '2': case '3':
1653 case '4': case '5': case '6': case '7':
1656 matchRange('0','9');
1659 case 'A': case 'B': case 'C': case 'D':
1662 matchRange('A','F');
1665 case 'a': case 'b': case 'c': case 'd':
1668 matchRange('a','f');
1673 throw new NoViableAltForCharException(cached_LA1
, getFilename(), getLine(), getColumn());
1677 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
1679 _token
= makeToken(_ttype
);
1680 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
1682 returnToken_
= _token
;
1685 protected void mVOCAB(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
1687 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
1690 matchRange('\x3','\xff');
1691 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
1693 _token
= makeToken(_ttype
);
1694 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
1696 returnToken_
= _token
;
1699 public void mIDENT(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
1701 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
1705 switch ( cached_LA1
)
1707 case 'a': case 'b': case 'c': case 'd':
1708 case 'e': case 'f': case 'g': case 'h':
1709 case 'i': case 'j': case 'k': case 'l':
1710 case 'm': case 'n': case 'o': case 'p':
1711 case 'q': case 'r': case 's': case 't':
1712 case 'u': case 'v': case 'w': case 'x':
1715 matchRange('a','z');
1718 case 'A': case 'B': case 'C': case 'D':
1719 case 'E': case 'F': case 'G': case 'H':
1720 case 'I': case 'J': case 'K': case 'L':
1721 case 'M': case 'N': case 'O': case 'P':
1722 case 'Q': case 'R': case 'S': case 'T':
1723 case 'U': case 'V': case 'W': case 'X':
1726 matchRange('A','Z');
1741 throw new NoViableAltForCharException(cached_LA1
, getFilename(), getLine(), getColumn());
1748 switch ( cached_LA1
)
1750 case 'a': case 'b': case 'c': case 'd':
1751 case 'e': case 'f': case 'g': case 'h':
1752 case 'i': case 'j': case 'k': case 'l':
1753 case 'm': case 'n': case 'o': case 'p':
1754 case 'q': case 'r': case 's': case 't':
1755 case 'u': case 'v': case 'w': case 'x':
1758 matchRange('a','z');
1761 case 'A': case 'B': case 'C': case 'D':
1762 case 'E': case 'F': case 'G': case 'H':
1763 case 'I': case 'J': case 'K': case 'L':
1764 case 'M': case 'N': case 'O': case 'P':
1765 case 'Q': case 'R': case 'S': case 'T':
1766 case 'U': case 'V': case 'W': case 'X':
1769 matchRange('A','Z');
1777 case '0': case '1': case '2': case '3':
1778 case '4': case '5': case '6': case '7':
1781 matchRange('0','9');
1791 goto _loop239_breakloop
;
1795 _loop239_breakloop: ;
1798 switch ( cached_LA1
)
1815 _ttype
= testLiteralsTable(_ttype
);
1816 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
1818 _token
= makeToken(_ttype
);
1819 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
1821 returnToken_
= _token
;
1824 public void mINSTIDENT(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
1826 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
1831 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
1833 _token
= makeToken(_ttype
);
1834 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
1836 returnToken_
= _token
;
1839 public void mSTATICIDENT(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
1841 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
1842 _ttype
= STATICIDENT
;
1846 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
1848 _token
= makeToken(_ttype
);
1849 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
1851 returnToken_
= _token
;
1854 public void mNUMBER(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
1856 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
1859 if ((cached_LA1
=='0') && (cached_LA2
=='X'||cached_LA2
=='x'))
1863 switch ( cached_LA1
)
1877 throw new NoViableAltForCharException(cached_LA1
, getFilename(), getLine(), getColumn());
1885 switch ( cached_LA1
)
1887 case '0': case '1': case '2': case '3':
1888 case '4': case '5': case '6': case '7':
1891 matchRange('0','9');
1894 case 'a': case 'b': case 'c': case 'd':
1897 matchRange('a','f');
1900 case 'A': case 'B': case 'C': case 'D':
1903 matchRange('A','F');
1908 if (_cnt250
>= 1) { goto _loop250_breakloop; }
else { throw new NoViableAltForCharException(cached_LA1, getFilename(), getLine(), getColumn());; }
1913 _loop250_breakloop: ;
1915 if (0==inputState
.guessing
)
1920 switch ( cached_LA1
)
1930 if (0==inputState
.guessing
)
1943 bool synPredMatched245
= false;
1944 if ((((cached_LA1
>= '0' && cached_LA1
<= '9')) && (true) && (true) && (true)))
1947 synPredMatched245
= true;
1948 inputState
.guessing
++;
1955 catch (RecognitionException
)
1957 synPredMatched245
= false;
1960 inputState
.guessing
--;
1962 if ( synPredMatched245
)
1965 if (0==inputState
.guessing
)
1971 bool synPredMatched247
= false;
1972 if ((((cached_LA1
>= '0' && cached_LA1
<= '9')) && (true) && (true) && (true)))
1975 synPredMatched247
= true;
1976 inputState
.guessing
++;
1983 catch (RecognitionException
)
1985 synPredMatched247
= false;
1988 inputState
.guessing
--;
1990 if ( synPredMatched247
)
1993 if (0==inputState
.guessing
)
1998 else if (((cached_LA1
>= '0' && cached_LA1
<= '9')) && (true) && (true) && (true)) {
2000 if (0==inputState
.guessing
)
2005 switch ( cached_LA1
)
2009 mFloatTrailer(false);
2010 if (0==inputState
.guessing
)
2019 switch ( cached_LA1
)
2033 throw new NoViableAltForCharException(cached_LA1
, getFilename(), getLine(), getColumn());
2037 if (0==inputState
.guessing
)
2051 throw new NoViableAltForCharException(cached_LA1
, getFilename(), getLine(), getColumn());
2054 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
2056 _token
= makeToken(_ttype
);
2057 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
2059 returnToken_
= _token
;
2062 protected void mInt(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
2064 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
2071 if (((cached_LA1
>= '0' && cached_LA1
<= '9')))
2073 matchRange('0','9');
2077 if (_cnt256
>= 1) { goto _loop256_breakloop; }
else { throw new NoViableAltForCharException(cached_LA1, getFilename(), getLine(), getColumn());; }
2082 _loop256_breakloop: ;
2084 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
2086 _token
= makeToken(_ttype
);
2087 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
2089 returnToken_
= _token
;
2092 protected void mFloatTrailer(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
2094 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
2095 _ttype
= FloatTrailer
;
2100 if ((cached_LA1
=='E'||cached_LA1
=='e'))
2108 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
2110 _token
= makeToken(_ttype
);
2111 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
2113 returnToken_
= _token
;
2116 protected void mNonZeroDigit(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
2118 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
2119 _ttype
= NonZeroDigit
;
2121 matchRange('1','9');
2122 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
2124 _token
= makeToken(_ttype
);
2125 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
2127 returnToken_
= _token
;
2130 protected void mExponent(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
2132 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
2136 switch ( cached_LA1
)
2150 throw new NoViableAltForCharException(cached_LA1
, getFilename(), getLine(), getColumn());
2155 switch ( cached_LA1
)
2167 case '0': case '1': case '2': case '3':
2168 case '4': case '5': case '6': case '7':
2175 throw new NoViableAltForCharException(cached_LA1
, getFilename(), getLine(), getColumn());
2180 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
2182 _token
= makeToken(_ttype
);
2183 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
2185 returnToken_
= _token
;
2188 /** Consume a newline and any whitespace at start of next line */
2189 public void mCONTINUED_LINE(bool _createToken
) //throws RecognitionException, CharStreamException, TokenStreamException
2191 int _ttype
; IToken _token
=null; int _begin
=text
.Length
;
2192 _ttype
= CONTINUED_LINE
;
2196 switch ( cached_LA1
)
2209 throw new NoViableAltForCharException(cached_LA1
, getFilename(), getLine(), getColumn());
2217 switch ( cached_LA1
)
2231 goto _loop266_breakloop
;
2235 _loop266_breakloop: ;
2237 if (0==inputState
.guessing
)
2239 newline(); _ttype
= Token
.SKIP
;
2241 if (_createToken
&& (null == _token
) && (_ttype
!= Token
.SKIP
))
2243 _token
= makeToken(_ttype
);
2244 _token
.setText(text
.ToString(_begin
, text
.Length
-_begin
));
2246 returnToken_
= _token
;
2250 private static long[] mk_tokenSet_0_()
2252 long[] data
= new long[1025];
2253 data
[0]=68719476736L;
2254 data
[1]=576460745995190270L;
2255 for (int i
= 2; i
<=1024; i
++) { data[i]=0L; }
2258 public static readonly BitSet tokenSet_0_
= new BitSet(mk_tokenSet_0_());
2259 private static long[] mk_tokenSet_1_()
2261 long[] data
= new long[2048];
2263 for (int i
= 1; i
<=1022; i
++) { data[i]=-1L; }
2264 data
[1023]=9223372036854775807L;
2265 for (int i
= 1024; i
<=2047; i
++) { data[i]=0L; }
2268 public static readonly BitSet tokenSet_1_
= new BitSet(mk_tokenSet_1_());
2269 private static long[] mk_tokenSet_2_()
2271 long[] data
= new long[2048];
2272 data
[0]=-549755813896L;
2273 data
[1]=-268435457L;
2274 for (int i
= 2; i
<=1023; i
++) { data[i]=-1L; }
2275 for (int i
= 1024; i
<=2047; i
++) { data[i]=0L; }
2278 public static readonly BitSet tokenSet_2_
= new BitSet(mk_tokenSet_2_());
2279 private static long[] mk_tokenSet_3_()
2281 long[] data
= new long[2048];
2282 data
[0]=-17179869192L;
2283 data
[1]=-268435457L;
2284 for (int i
= 2; i
<=1023; i
++) { data[i]=-1L; }
2285 for (int i
= 1024; i
<=2047; i
++) { data[i]=0L; }
2288 public static readonly BitSet tokenSet_3_
= new BitSet(mk_tokenSet_3_());