Added ability to order the execution of dictionary adapter behaviors.
[castle.git] / Experiments / Attic / Rook / Castle.Rook.Compiler / Parser / RookLexer.cs
blob8f410015b0a7b14faed9a559ed3c52a9f307e8b9
1 // $ANTLR 2.7.5 (20050128): "lang4.g" -> "RookLexer.cs"$
3 using System.Text;
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
12 using System;
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;
136 // "nil?" = 97
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()
171 int result;
172 if (lastToken == STATEMENT_END || lastToken == SEMI )
174 result = Token.SKIP;
176 else
178 result = STATEMENT_END;
180 return result;
183 protected internal override IToken makeToken(int type) {
184 lastToken = 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)
201 initialize();
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;
248 tryAgain:
249 for (;;)
251 IToken _token = null;
252 int _ttype = Token.INVALID_TYPE;
253 resetText();
254 try // for char stream error handling
256 try // for lexical error handling
258 switch ( cached_LA1 )
260 case '?':
262 mQUESTION(true);
263 theRetToken = returnToken_;
264 break;
266 case '(':
268 mLPAREN(true);
269 theRetToken = returnToken_;
270 break;
272 case ')':
274 mRPAREN(true);
275 theRetToken = returnToken_;
276 break;
278 case '[':
280 mLBRACK(true);
281 theRetToken = returnToken_;
282 break;
284 case ']':
286 mRBRACK(true);
287 theRetToken = returnToken_;
288 break;
290 case '{':
292 mLCURLY(true);
293 theRetToken = returnToken_;
294 break;
296 case '}':
298 mRCURLY(true);
299 theRetToken = returnToken_;
300 break;
302 case ',':
304 mCOMMA(true);
305 theRetToken = returnToken_;
306 break;
308 case '~':
310 mBNOT(true);
311 theRetToken = returnToken_;
312 break;
314 case ';':
316 mSEMI(true);
317 theRetToken = returnToken_;
318 break;
320 case '\n': case '\r':
322 mNEWLINE(true);
323 theRetToken = returnToken_;
324 break;
326 case '\t': case '\u000c': case ' ':
328 mWS(true);
329 theRetToken = returnToken_;
330 break;
332 case '#':
334 mSL_COMMENT(true);
335 theRetToken = returnToken_;
336 break;
338 case '\'':
340 mCHAR_LITERAL(true);
341 theRetToken = returnToken_;
342 break;
344 case '"':
346 mSTRING_LITERAL(true);
347 theRetToken = returnToken_;
348 break;
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':
363 case 'y': case 'z':
365 mIDENT(true);
366 theRetToken = returnToken_;
367 break;
369 case '0': case '1': case '2': case '3':
370 case '4': case '5': case '6': case '7':
371 case '8': case '9':
373 mNUMBER(true);
374 theRetToken = returnToken_;
375 break;
377 case '\\':
379 mCONTINUED_LINE(true);
380 theRetToken = returnToken_;
381 break;
383 default:
384 if ((cached_LA1=='>') && (cached_LA2=='>') && (LA(3)=='>') && (LA(4)=='='))
386 mBSR_ASSIGN(true);
387 theRetToken = returnToken_;
389 else if ((cached_LA1=='.') && (cached_LA2=='.') && (LA(3)=='.')) {
390 mDOTDOTDOT(true);
391 theRetToken = returnToken_;
393 else if ((cached_LA1=='>') && (cached_LA2=='>') && (LA(3)=='=')) {
394 mSR_ASSIGN(true);
395 theRetToken = returnToken_;
397 else if ((cached_LA1=='>') && (cached_LA2=='>') && (LA(3)=='>') && (true)) {
398 mBSR(true);
399 theRetToken = returnToken_;
401 else if ((cached_LA1=='<') && (cached_LA2=='<') && (LA(3)=='=')) {
402 mSL_ASSIGN(true);
403 theRetToken = returnToken_;
405 else if ((cached_LA1=='.') && (cached_LA2=='.') && (true)) {
406 mDOTDOT(true);
407 theRetToken = returnToken_;
409 else if ((cached_LA1=='=') && (cached_LA2=='=')) {
410 mEQUAL(true);
411 theRetToken = returnToken_;
413 else if ((cached_LA1=='!') && (cached_LA2=='=')) {
414 mNOT_EQUAL(true);
415 theRetToken = returnToken_;
417 else if ((cached_LA1=='/') && (cached_LA2=='=')) {
418 mDIV_ASSIGN(true);
419 theRetToken = returnToken_;
421 else if ((cached_LA1=='+') && (cached_LA2=='=')) {
422 mPLUS_ASSIGN(true);
423 theRetToken = returnToken_;
425 else if ((cached_LA1=='+') && (cached_LA2=='+')) {
426 mINC(true);
427 theRetToken = returnToken_;
429 else if ((cached_LA1=='-') && (cached_LA2=='=')) {
430 mMINUS_ASSIGN(true);
431 theRetToken = returnToken_;
433 else if ((cached_LA1=='-') && (cached_LA2=='-')) {
434 mDEC(true);
435 theRetToken = returnToken_;
437 else if ((cached_LA1=='*') && (cached_LA2=='=')) {
438 mSTAR_ASSIGN(true);
439 theRetToken = returnToken_;
441 else if ((cached_LA1=='%') && (cached_LA2=='=')) {
442 mMOD_ASSIGN(true);
443 theRetToken = returnToken_;
445 else if ((cached_LA1=='>') && (cached_LA2=='>') && (true)) {
446 mSR(true);
447 theRetToken = returnToken_;
449 else if ((cached_LA1=='>') && (cached_LA2=='=')) {
450 mGE(true);
451 theRetToken = returnToken_;
453 else if ((cached_LA1=='<') && (cached_LA2=='<') && (true)) {
454 mSL(true);
455 theRetToken = returnToken_;
457 else if ((cached_LA1=='<') && (cached_LA2=='=')) {
458 mLE(true);
459 theRetToken = returnToken_;
461 else if ((cached_LA1=='^') && (cached_LA2=='=')) {
462 mBXOR_ASSIGN(true);
463 theRetToken = returnToken_;
465 else if ((cached_LA1=='|') && (cached_LA2=='=')) {
466 mBOR_ASSIGN(true);
467 theRetToken = returnToken_;
469 else if ((cached_LA1=='|') && (cached_LA2=='|')) {
470 mLOR(true);
471 theRetToken = returnToken_;
473 else if ((cached_LA1=='&') && (cached_LA2=='=')) {
474 mBAND_ASSIGN(true);
475 theRetToken = returnToken_;
477 else if ((cached_LA1=='&') && (cached_LA2=='&')) {
478 mLAND(true);
479 theRetToken = returnToken_;
481 else if ((cached_LA1=='=') && (cached_LA2=='>')) {
482 mMAPASSIGN(true);
483 theRetToken = returnToken_;
485 else if ((cached_LA1==':') && (cached_LA2==':')) {
486 mCOLONCOLON(true);
487 theRetToken = returnToken_;
489 else if ((cached_LA1=='@') && (tokenSet_0_.member(cached_LA2))) {
490 mINSTIDENT(true);
491 theRetToken = returnToken_;
493 else if ((cached_LA1=='@') && (cached_LA2=='@')) {
494 mSTATICIDENT(true);
495 theRetToken = returnToken_;
497 else if ((cached_LA1=='.') && (true)) {
498 mDOT(true);
499 theRetToken = returnToken_;
501 else if ((cached_LA1=='=') && (true)) {
502 mASSIGN(true);
503 theRetToken = returnToken_;
505 else if ((cached_LA1=='!') && (true)) {
506 mLNOT(true);
507 theRetToken = returnToken_;
509 else if ((cached_LA1=='/') && (true)) {
510 mDIV(true);
511 theRetToken = returnToken_;
513 else if ((cached_LA1=='+') && (true)) {
514 mPLUS(true);
515 theRetToken = returnToken_;
517 else if ((cached_LA1=='-') && (true)) {
518 mMINUS(true);
519 theRetToken = returnToken_;
521 else if ((cached_LA1=='*') && (true)) {
522 mSTAR(true);
523 theRetToken = returnToken_;
525 else if ((cached_LA1=='%') && (true)) {
526 mMOD(true);
527 theRetToken = returnToken_;
529 else if ((cached_LA1=='>') && (true)) {
530 mGT(true);
531 theRetToken = returnToken_;
533 else if ((cached_LA1=='<') && (true)) {
534 mLTHAN(true);
535 theRetToken = returnToken_;
537 else if ((cached_LA1=='^') && (true)) {
538 mBXOR(true);
539 theRetToken = returnToken_;
541 else if ((cached_LA1=='|') && (true)) {
542 mBOR(true);
543 theRetToken = returnToken_;
545 else if ((cached_LA1=='&') && (true)) {
546 mBAND(true);
547 theRetToken = returnToken_;
549 else if ((cached_LA1==':') && (true)) {
550 mCOLON(true);
551 theRetToken = returnToken_;
553 else
555 if (cached_LA1==EOF_CHAR) { uponEOF(); returnToken_ = makeToken(Token.EOF_TYPE); }
556 else {throw new NoViableAltForCharException(cached_LA1, getFilename(), getLine(), getColumn());}
558 break; }
559 if ( null==returnToken_ ) goto tryAgain; // found SKIP token
560 _ttype = returnToken_.Type;
561 returnToken_.Type = _ttype;
562 return returnToken_;
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);
572 else {
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;
582 _ttype = QUESTION;
584 match('?');
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;
596 _ttype = LPAREN;
598 match('(');
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;
610 _ttype = RPAREN;
612 match(')');
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;
624 _ttype = LBRACK;
626 match('[');
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;
638 _ttype = RBRACK;
640 match(']');
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;
652 _ttype = LCURLY;
654 match('{');
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;
666 _ttype = RCURLY;
668 match('}');
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;
680 _ttype = COMMA;
682 match(',');
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;
694 _ttype = DOT;
696 match('.');
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;
708 _ttype = DOTDOT;
710 match("..");
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;
722 _ttype = DOTDOTDOT;
724 match("...");
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;
736 _ttype = ASSIGN;
738 match('=');
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;
750 _ttype = EQUAL;
752 match("==");
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;
764 _ttype = LNOT;
766 match('!');
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;
778 _ttype = BNOT;
780 match('~');
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;
792 _ttype = NOT_EQUAL;
794 match("!=");
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;
806 _ttype = DIV;
808 match('/');
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;
820 _ttype = DIV_ASSIGN;
822 match("/=");
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;
834 _ttype = PLUS;
836 match('+');
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;
850 match("+=");
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;
862 _ttype = INC;
864 match("++");
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;
876 _ttype = MINUS;
878 match('-');
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;
892 match("-=");
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;
904 _ttype = DEC;
906 match("--");
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;
918 _ttype = STAR;
920 match('*');
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;
934 match("*=");
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;
946 _ttype = MOD;
948 match('%');
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;
960 _ttype = MOD_ASSIGN;
962 match("%=");
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;
974 _ttype = SR;
976 match(">>");
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;
988 _ttype = SR_ASSIGN;
990 match(">>=");
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;
1002 _ttype = BSR;
1004 match(">>>");
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;
1018 match(">>>=");
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;
1030 _ttype = GE;
1032 match(">=");
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;
1044 _ttype = GT;
1046 match(">");
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;
1058 _ttype = SL;
1060 match("<<");
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;
1072 _ttype = SL_ASSIGN;
1074 match("<<=");
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;
1086 _ttype = LE;
1088 match("<=");
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;
1100 _ttype = LTHAN;
1102 match('<');
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;
1114 _ttype = BXOR;
1116 match('^');
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;
1130 match("^=");
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;
1142 _ttype = BOR;
1144 match('|');
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;
1158 match("|=");
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;
1170 _ttype = LOR;
1172 match("||");
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;
1184 _ttype = BAND;
1186 match('&');
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;
1200 match("&=");
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;
1212 _ttype = LAND;
1214 match("&&");
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;
1226 _ttype = SEMI;
1228 match(';');
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;
1240 _ttype = MAPASSIGN;
1242 match("=>");
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;
1254 _ttype = COLON;
1256 match(':');
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;
1270 match("::");
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;
1282 _ttype = NEWLINE;
1284 mSL_NEWLINE(false);
1285 if (0==inputState.guessing)
1288 newline();
1289 _ttype = getProperType();
1293 if ((cached_LA1=='\t'||cached_LA1=='\n'||cached_LA1=='\u000c'||cached_LA1=='\r'||cached_LA1==' '||cached_LA1=='#'))
1295 { // ( ... )+
1296 int _cnt210=0;
1297 for (;;)
1299 switch ( cached_LA1 )
1301 case '\n': case '\r':
1303 mSL_NEWLINE(false);
1304 break;
1306 case '\t': case '\u000c': case ' ':
1308 mWS(false);
1309 break;
1311 case '#':
1313 mSL_COMMENT(false);
1314 break;
1316 default:
1318 if (_cnt210 >= 1) { goto _loop210_breakloop; } else { throw new NoViableAltForCharException(cached_LA1, getFilename(), getLine(), getColumn());; }
1320 break; }
1321 _cnt210++;
1323 _loop210_breakloop: ;
1324 } // ( ... )+
1326 else {
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))
1346 match("\r\n");
1348 else if ((cached_LA1=='\r') && (true) && (true) && (true)) {
1349 match('\r');
1351 else if ((cached_LA1=='\n')) {
1352 match('\n');
1354 else
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;
1371 _ttype = WS;
1373 { // ( ... )+
1374 int _cnt219=0;
1375 for (;;)
1377 if ((cached_LA1==' ') && (true) && (true) && (true))
1379 match(' ');
1381 else if ((cached_LA1=='\t') && (true) && (true) && (true)) {
1382 match('\t');
1384 else if ((cached_LA1=='\u000c') && (true) && (true) && (true)) {
1385 match('\f');
1387 else
1389 if (_cnt219 >= 1) { goto _loop219_breakloop; } else { throw new NoViableAltForCharException(cached_LA1, getFilename(), getLine(), getColumn());; }
1392 _cnt219++;
1394 _loop219_breakloop: ;
1395 } // ( ... )+
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;
1413 match('#');
1414 { // ( ... )*
1415 for (;;)
1417 if ((tokenSet_1_.member(cached_LA1)) && (true) && (true) && (true))
1420 match(tokenSet_1_);
1423 else
1425 goto _loop216_breakloop;
1429 _loop216_breakloop: ;
1430 } // ( ... )*
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;
1448 match('\'');
1450 if ((cached_LA1=='\\'))
1452 mESC(false);
1454 else if ((tokenSet_2_.member(cached_LA1))) {
1455 matchNot('\'');
1457 else
1459 throw new NoViableAltForCharException(cached_LA1, getFilename(), getLine(), getColumn());
1463 match('\'');
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;
1475 _ttype = ESC;
1477 match('\\');
1479 switch ( cached_LA1 )
1481 case 'n':
1483 match('n');
1484 break;
1486 case 'r':
1488 match('r');
1489 break;
1491 case 't':
1493 match('t');
1494 break;
1496 case 'b':
1498 match('b');
1499 break;
1501 case 'f':
1503 match('f');
1504 break;
1506 case '"':
1508 match('"');
1509 break;
1511 case '\'':
1513 match('\'');
1514 break;
1516 case '\\':
1518 match('\\');
1519 break;
1521 case 'u':
1523 { // ( ... )+
1524 int _cnt229=0;
1525 for (;;)
1527 if ((cached_LA1=='u'))
1529 match('u');
1531 else
1533 if (_cnt229 >= 1) { goto _loop229_breakloop; } else { throw new NoViableAltForCharException(cached_LA1, getFilename(), getLine(), getColumn());; }
1536 _cnt229++;
1538 _loop229_breakloop: ;
1539 } // ( ... )+
1540 mHEX_DIGIT(false);
1541 mHEX_DIGIT(false);
1542 mHEX_DIGIT(false);
1543 mHEX_DIGIT(false);
1544 break;
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)) {
1560 else
1562 throw new NoViableAltForCharException(cached_LA1, getFilename(), getLine(), getColumn());
1567 else if (((cached_LA1 >= '\u0003' && cached_LA1 <= '\uffff')) && (true) && (true) && (true)) {
1569 else
1571 throw new NoViableAltForCharException(cached_LA1, getFilename(), getLine(), getColumn());
1575 break;
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)) {
1587 else
1589 throw new NoViableAltForCharException(cached_LA1, getFilename(), getLine(), getColumn());
1593 break;
1595 default:
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;
1614 match('"');
1615 { // ( ... )*
1616 for (;;)
1618 if ((cached_LA1=='\\'))
1620 mESC(false);
1622 else if ((tokenSet_3_.member(cached_LA1))) {
1624 match(tokenSet_3_);
1627 else
1629 goto _loop225_breakloop;
1633 _loop225_breakloop: ;
1634 } // ( ... )*
1635 match('"');
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;
1647 _ttype = HEX_DIGIT;
1650 switch ( cached_LA1 )
1652 case '0': case '1': case '2': case '3':
1653 case '4': case '5': case '6': case '7':
1654 case '8': case '9':
1656 matchRange('0','9');
1657 break;
1659 case 'A': case 'B': case 'C': case 'D':
1660 case 'E': case 'F':
1662 matchRange('A','F');
1663 break;
1665 case 'a': case 'b': case 'c': case 'd':
1666 case 'e': case 'f':
1668 matchRange('a','f');
1669 break;
1671 default:
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;
1688 _ttype = VOCAB;
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;
1702 _ttype = IDENT;
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':
1713 case 'y': case 'z':
1715 matchRange('a','z');
1716 break;
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':
1724 case 'Y': case 'Z':
1726 matchRange('A','Z');
1727 break;
1729 case '_':
1731 match('_');
1732 break;
1734 case '$':
1736 match('$');
1737 break;
1739 default:
1741 throw new NoViableAltForCharException(cached_LA1, getFilename(), getLine(), getColumn());
1745 { // ( ... )*
1746 for (;;)
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':
1756 case 'y': case 'z':
1758 matchRange('a','z');
1759 break;
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':
1767 case 'Y': case 'Z':
1769 matchRange('A','Z');
1770 break;
1772 case '_':
1774 match('_');
1775 break;
1777 case '0': case '1': case '2': case '3':
1778 case '4': case '5': case '6': case '7':
1779 case '8': case '9':
1781 matchRange('0','9');
1782 break;
1784 case '$':
1786 match('$');
1787 break;
1789 default:
1791 goto _loop239_breakloop;
1795 _loop239_breakloop: ;
1796 } // ( ... )*
1798 switch ( cached_LA1 )
1800 case '?':
1802 match('?');
1803 break;
1805 case '!':
1807 match('!');
1808 break;
1810 default:
1813 break; }
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;
1827 _ttype = INSTIDENT;
1829 match('@');
1830 mIDENT(false);
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;
1844 match("@@");
1845 mIDENT(false);
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;
1857 _ttype = NUMBER;
1859 if ((cached_LA1=='0') && (cached_LA2=='X'||cached_LA2=='x'))
1861 match('0');
1863 switch ( cached_LA1 )
1865 case 'x':
1867 match('x');
1868 break;
1870 case 'X':
1872 match('X');
1873 break;
1875 default:
1877 throw new NoViableAltForCharException(cached_LA1, getFilename(), getLine(), getColumn());
1881 { // ( ... )+
1882 int _cnt250=0;
1883 for (;;)
1885 switch ( cached_LA1 )
1887 case '0': case '1': case '2': case '3':
1888 case '4': case '5': case '6': case '7':
1889 case '8': case '9':
1891 matchRange('0','9');
1892 break;
1894 case 'a': case 'b': case 'c': case 'd':
1895 case 'e': case 'f':
1897 matchRange('a','f');
1898 break;
1900 case 'A': case 'B': case 'C': case 'D':
1901 case 'E': case 'F':
1903 matchRange('A','F');
1904 break;
1906 default:
1908 if (_cnt250 >= 1) { goto _loop250_breakloop; } else { throw new NoViableAltForCharException(cached_LA1, getFilename(), getLine(), getColumn());; }
1910 break; }
1911 _cnt250++;
1913 _loop250_breakloop: ;
1914 } // ( ... )+
1915 if (0==inputState.guessing)
1917 _ttype = NUM_INT;
1920 switch ( cached_LA1 )
1922 case 'l':
1924 match('l');
1925 break;
1927 case 'L':
1929 match('L');
1930 if (0==inputState.guessing)
1932 _ttype = NUM_LONG;
1934 break;
1936 default:
1939 break; }
1942 else {
1943 bool synPredMatched245 = false;
1944 if ((((cached_LA1 >= '0' && cached_LA1 <= '9')) && (true) && (true) && (true)))
1946 int _m245 = mark();
1947 synPredMatched245 = true;
1948 inputState.guessing++;
1949 try {
1951 mInt(false);
1952 mDOTDOT(false);
1955 catch (RecognitionException)
1957 synPredMatched245 = false;
1959 rewind(_m245);
1960 inputState.guessing--;
1962 if ( synPredMatched245 )
1964 mInt(false);
1965 if (0==inputState.guessing)
1967 _ttype = NUM_INT;
1970 else {
1971 bool synPredMatched247 = false;
1972 if ((((cached_LA1 >= '0' && cached_LA1 <= '9')) && (true) && (true) && (true)))
1974 int _m247 = mark();
1975 synPredMatched247 = true;
1976 inputState.guessing++;
1977 try {
1979 mInt(false);
1980 mDOTDOTDOT(false);
1983 catch (RecognitionException)
1985 synPredMatched247 = false;
1987 rewind(_m247);
1988 inputState.guessing--;
1990 if ( synPredMatched247 )
1992 mInt(false);
1993 if (0==inputState.guessing)
1995 _ttype = NUM_INT;
1998 else if (((cached_LA1 >= '0' && cached_LA1 <= '9')) && (true) && (true) && (true)) {
1999 mInt(false);
2000 if (0==inputState.guessing)
2002 _ttype = NUM_INT;
2005 switch ( cached_LA1 )
2007 case '.':
2009 mFloatTrailer(false);
2010 if (0==inputState.guessing)
2012 _ttype = NUM_FLOAT;
2014 break;
2016 case 'L': case 'l':
2019 switch ( cached_LA1 )
2021 case 'l':
2023 match('l');
2024 break;
2026 case 'L':
2028 match('L');
2029 break;
2031 default:
2033 throw new NoViableAltForCharException(cached_LA1, getFilename(), getLine(), getColumn());
2037 if (0==inputState.guessing)
2039 _ttype = NUM_LONG;
2041 break;
2043 default:
2046 break; }
2049 else
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;
2065 _ttype = Int;
2067 { // ( ... )+
2068 int _cnt256=0;
2069 for (;;)
2071 if (((cached_LA1 >= '0' && cached_LA1 <= '9')))
2073 matchRange('0','9');
2075 else
2077 if (_cnt256 >= 1) { goto _loop256_breakloop; } else { throw new NoViableAltForCharException(cached_LA1, getFilename(), getLine(), getColumn());; }
2080 _cnt256++;
2082 _loop256_breakloop: ;
2083 } // ( ... )+
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;
2097 match('.');
2098 mInt(false);
2100 if ((cached_LA1=='E'||cached_LA1=='e'))
2102 mExponent(false);
2104 else {
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;
2133 _ttype = Exponent;
2136 switch ( cached_LA1 )
2138 case 'e':
2140 match('e');
2141 break;
2143 case 'E':
2145 match('E');
2146 break;
2148 default:
2150 throw new NoViableAltForCharException(cached_LA1, getFilename(), getLine(), getColumn());
2155 switch ( cached_LA1 )
2157 case '+':
2159 match('+');
2160 break;
2162 case '-':
2164 match('-');
2165 break;
2167 case '0': case '1': case '2': case '3':
2168 case '4': case '5': case '6': case '7':
2169 case '8': case '9':
2171 break;
2173 default:
2175 throw new NoViableAltForCharException(cached_LA1, getFilename(), getLine(), getColumn());
2179 mInt(false);
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;
2194 match('\\');
2196 switch ( cached_LA1 )
2198 case '\r':
2200 match('\r');
2201 break;
2203 case '\n':
2205 break;
2207 default:
2209 throw new NoViableAltForCharException(cached_LA1, getFilename(), getLine(), getColumn());
2213 match('\n');
2214 { // ( ... )*
2215 for (;;)
2217 switch ( cached_LA1 )
2219 case ' ':
2221 match(' ');
2222 break;
2224 case '\t':
2226 match('\t');
2227 break;
2229 default:
2231 goto _loop266_breakloop;
2235 _loop266_breakloop: ;
2236 } // ( ... )*
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; }
2256 return data;
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];
2262 data[0]=-9224L;
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; }
2266 return data;
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; }
2276 return data;
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; }
2286 return data;
2288 public static readonly BitSet tokenSet_3_ = new BitSet(mk_tokenSet_3_());