libjava/ChangeLog:
[official-gcc.git] / libjava / classpath / tools / generated / gnu / classpath / tools / gjdoc / expr / JavaLexer.java
blob053f122f0b6eb05b43c41f331831b7ef81209b3d
1 // $ANTLR 2.7.7 (20080530): "java-expression.g" -> "JavaLexer.java"$
3 package gnu.classpath.tools.gjdoc.expr;
5 import java.io.InputStream;
6 import antlr.TokenStreamException;
7 import antlr.TokenStreamIOException;
8 import antlr.TokenStreamRecognitionException;
9 import antlr.CharStreamException;
10 import antlr.CharStreamIOException;
11 import antlr.ANTLRException;
12 import java.io.Reader;
13 import java.util.Hashtable;
14 import antlr.CharScanner;
15 import antlr.InputBuffer;
16 import antlr.ByteBuffer;
17 import antlr.CharBuffer;
18 import antlr.Token;
19 import antlr.CommonToken;
20 import antlr.RecognitionException;
21 import antlr.NoViableAltForCharException;
22 import antlr.MismatchedCharException;
23 import antlr.TokenStream;
24 import antlr.ANTLRHashString;
25 import antlr.LexerSharedInputState;
26 import antlr.collections.impl.BitSet;
27 import antlr.SemanticException;
29 public class JavaLexer extends antlr.CharScanner implements JavaTokenTypes, TokenStream
31 public JavaLexer(InputStream in) {
32 this(new ByteBuffer(in));
34 public JavaLexer(Reader in) {
35 this(new CharBuffer(in));
37 public JavaLexer(InputBuffer ib) {
38 this(new LexerSharedInputState(ib));
40 public JavaLexer(LexerSharedInputState state) {
41 super(state);
42 caseSensitiveLiterals = true;
43 setCaseSensitive(true);
44 literals = new Hashtable();
45 literals.put(new ANTLRHashString("String", this), new Integer(55));
46 literals.put(new ANTLRHashString("final", this), new Integer(39));
47 literals.put(new ANTLRHashString("false", this), new Integer(84));
48 literals.put(new ANTLRHashString("true", this), new Integer(83));
49 literals.put(new ANTLRHashString("void", this), new Integer(46));
50 literals.put(new ANTLRHashString("float", this), new Integer(52));
51 literals.put(new ANTLRHashString("boolean", this), new Integer(47));
52 literals.put(new ANTLRHashString("long", this), new Integer(53));
53 literals.put(new ANTLRHashString("null", this), new Integer(85));
54 literals.put(new ANTLRHashString("short", this), new Integer(50));
55 literals.put(new ANTLRHashString("char", this), new Integer(49));
56 literals.put(new ANTLRHashString("abstract", this), new Integer(40));
57 literals.put(new ANTLRHashString("byte", this), new Integer(48));
58 literals.put(new ANTLRHashString("int", this), new Integer(51));
59 literals.put(new ANTLRHashString("double", this), new Integer(54));
60 literals.put(new ANTLRHashString("strictfp", this), new Integer(41));
63 public Token nextToken() throws TokenStreamException {
64 Token theRetToken=null;
65 tryAgain:
66 for (;;) {
67 Token _token = null;
68 int _ttype = Token.INVALID_TYPE;
69 resetText();
70 try { // for char stream error handling
71 try { // for lexical error handling
72 switch ( LA(1)) {
73 case '?':
75 mQUESTION(true);
76 theRetToken=_returnToken;
77 break;
79 case '(':
81 mLPAREN(true);
82 theRetToken=_returnToken;
83 break;
85 case ')':
87 mRPAREN(true);
88 theRetToken=_returnToken;
89 break;
91 case '[':
93 mLBRACK(true);
94 theRetToken=_returnToken;
95 break;
97 case ']':
99 mRBRACK(true);
100 theRetToken=_returnToken;
101 break;
103 case '{':
105 mLCURLY(true);
106 theRetToken=_returnToken;
107 break;
109 case '}':
111 mRCURLY(true);
112 theRetToken=_returnToken;
113 break;
115 case ':':
117 mCOLON(true);
118 theRetToken=_returnToken;
119 break;
121 case ',':
123 mCOMMA(true);
124 theRetToken=_returnToken;
125 break;
127 case '~':
129 mBNOT(true);
130 theRetToken=_returnToken;
131 break;
133 case ';':
135 mSEMI(true);
136 theRetToken=_returnToken;
137 break;
139 case '\t': case '\n': case '\u000c': case '\r':
140 case ' ':
142 mWS(true);
143 theRetToken=_returnToken;
144 break;
146 case '\'':
148 mCHAR_LITERAL(true);
149 theRetToken=_returnToken;
150 break;
152 case '"':
154 mSTRING_LITERAL(true);
155 theRetToken=_returnToken;
156 break;
158 case '$': case 'A': case 'B': case 'C':
159 case 'D': case 'E': case 'F': case 'G':
160 case 'H': case 'I': case 'J': case 'K':
161 case 'L': case 'M': case 'N': case 'O':
162 case 'P': case 'Q': case 'R': case 'S':
163 case 'T': case 'U': case 'V': case 'W':
164 case 'X': case 'Y': case 'Z': case '_':
165 case 'a': case 'b': case 'c': case 'd':
166 case 'e': case 'f': case 'g': case 'h':
167 case 'i': case 'j': case 'k': case 'l':
168 case 'm': case 'n': case 'o': case 'p':
169 case 'q': case 'r': case 's': case 't':
170 case 'u': case 'v': case 'w': case 'x':
171 case 'y': case 'z':
173 mIDENT(true);
174 theRetToken=_returnToken;
175 break;
177 case '.': case '0': case '1': case '2':
178 case '3': case '4': case '5': case '6':
179 case '7': case '8': case '9':
181 mNUM_INT(true);
182 theRetToken=_returnToken;
183 break;
185 default:
186 if ((LA(1)=='>') && (LA(2)=='>') && (LA(3)=='>') && (LA(4)=='=')) {
187 mBSR_ASSIGN(true);
188 theRetToken=_returnToken;
190 else if ((LA(1)=='>') && (LA(2)=='>') && (LA(3)=='=')) {
191 mSR_ASSIGN(true);
192 theRetToken=_returnToken;
194 else if ((LA(1)=='>') && (LA(2)=='>') && (LA(3)=='>') && (true)) {
195 mBSR(true);
196 theRetToken=_returnToken;
198 else if ((LA(1)=='<') && (LA(2)=='<') && (LA(3)=='=')) {
199 mSL_ASSIGN(true);
200 theRetToken=_returnToken;
202 else if ((LA(1)=='=') && (LA(2)=='=')) {
203 mEQUAL(true);
204 theRetToken=_returnToken;
206 else if ((LA(1)=='!') && (LA(2)=='=')) {
207 mNOT_EQUAL(true);
208 theRetToken=_returnToken;
210 else if ((LA(1)=='/') && (LA(2)=='=')) {
211 mDIV_ASSIGN(true);
212 theRetToken=_returnToken;
214 else if ((LA(1)=='+') && (LA(2)=='=')) {
215 mPLUS_ASSIGN(true);
216 theRetToken=_returnToken;
218 else if ((LA(1)=='+') && (LA(2)=='+')) {
219 mINC(true);
220 theRetToken=_returnToken;
222 else if ((LA(1)=='-') && (LA(2)=='=')) {
223 mMINUS_ASSIGN(true);
224 theRetToken=_returnToken;
226 else if ((LA(1)=='-') && (LA(2)=='-')) {
227 mDEC(true);
228 theRetToken=_returnToken;
230 else if ((LA(1)=='*') && (LA(2)=='=')) {
231 mSTAR_ASSIGN(true);
232 theRetToken=_returnToken;
234 else if ((LA(1)=='%') && (LA(2)=='=')) {
235 mMOD_ASSIGN(true);
236 theRetToken=_returnToken;
238 else if ((LA(1)=='>') && (LA(2)=='>') && (true)) {
239 mSR(true);
240 theRetToken=_returnToken;
242 else if ((LA(1)=='>') && (LA(2)=='=')) {
243 mGE(true);
244 theRetToken=_returnToken;
246 else if ((LA(1)=='<') && (LA(2)=='<') && (true)) {
247 mSL(true);
248 theRetToken=_returnToken;
250 else if ((LA(1)=='<') && (LA(2)=='=')) {
251 mLE(true);
252 theRetToken=_returnToken;
254 else if ((LA(1)=='^') && (LA(2)=='=')) {
255 mBXOR_ASSIGN(true);
256 theRetToken=_returnToken;
258 else if ((LA(1)=='|') && (LA(2)=='=')) {
259 mBOR_ASSIGN(true);
260 theRetToken=_returnToken;
262 else if ((LA(1)=='|') && (LA(2)=='|')) {
263 mLOR(true);
264 theRetToken=_returnToken;
266 else if ((LA(1)=='&') && (LA(2)=='=')) {
267 mBAND_ASSIGN(true);
268 theRetToken=_returnToken;
270 else if ((LA(1)=='&') && (LA(2)=='&')) {
271 mLAND(true);
272 theRetToken=_returnToken;
274 else if ((LA(1)=='/') && (LA(2)=='/')) {
275 mSL_COMMIT(true);
276 theRetToken=_returnToken;
278 else if ((LA(1)=='/') && (LA(2)=='*')) {
279 mML_COMMENT(true);
280 theRetToken=_returnToken;
282 else if ((LA(1)=='=') && (true)) {
283 mASSIGN(true);
284 theRetToken=_returnToken;
286 else if ((LA(1)=='!') && (true)) {
287 mLNOT(true);
288 theRetToken=_returnToken;
290 else if ((LA(1)=='/') && (true)) {
291 mDIV(true);
292 theRetToken=_returnToken;
294 else if ((LA(1)=='+') && (true)) {
295 mPLUS(true);
296 theRetToken=_returnToken;
298 else if ((LA(1)=='-') && (true)) {
299 mMINUS(true);
300 theRetToken=_returnToken;
302 else if ((LA(1)=='*') && (true)) {
303 mSTAR(true);
304 theRetToken=_returnToken;
306 else if ((LA(1)=='%') && (true)) {
307 mMOD(true);
308 theRetToken=_returnToken;
310 else if ((LA(1)=='>') && (true)) {
311 mGT(true);
312 theRetToken=_returnToken;
314 else if ((LA(1)=='<') && (true)) {
315 mLT(true);
316 theRetToken=_returnToken;
318 else if ((LA(1)=='^') && (true)) {
319 mBXOR(true);
320 theRetToken=_returnToken;
322 else if ((LA(1)=='|') && (true)) {
323 mBOR(true);
324 theRetToken=_returnToken;
326 else if ((LA(1)=='&') && (true)) {
327 mBAND(true);
328 theRetToken=_returnToken;
330 else {
331 if (LA(1)==EOF_CHAR) {uponEOF(); _returnToken = makeToken(Token.EOF_TYPE);}
332 else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
335 if ( _returnToken==null ) continue tryAgain; // found SKIP token
336 _ttype = _returnToken.getType();
337 _returnToken.setType(_ttype);
338 return _returnToken;
340 catch (RecognitionException e) {
341 throw new TokenStreamRecognitionException(e);
344 catch (CharStreamException cse) {
345 if ( cse instanceof CharStreamIOException ) {
346 throw new TokenStreamIOException(((CharStreamIOException)cse).io);
348 else {
349 throw new TokenStreamException(cse.getMessage());
355 public final void mQUESTION(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
356 int _ttype; Token _token=null; int _begin=text.length();
357 _ttype = QUESTION;
358 int _saveIndex;
360 match('?');
361 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
362 _token = makeToken(_ttype);
363 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
365 _returnToken = _token;
368 public final void mLPAREN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
369 int _ttype; Token _token=null; int _begin=text.length();
370 _ttype = LPAREN;
371 int _saveIndex;
373 match('(');
374 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
375 _token = makeToken(_ttype);
376 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
378 _returnToken = _token;
381 public final void mRPAREN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
382 int _ttype; Token _token=null; int _begin=text.length();
383 _ttype = RPAREN;
384 int _saveIndex;
386 match(')');
387 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
388 _token = makeToken(_ttype);
389 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
391 _returnToken = _token;
394 public final void mLBRACK(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
395 int _ttype; Token _token=null; int _begin=text.length();
396 _ttype = LBRACK;
397 int _saveIndex;
399 match('[');
400 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
401 _token = makeToken(_ttype);
402 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
404 _returnToken = _token;
407 public final void mRBRACK(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
408 int _ttype; Token _token=null; int _begin=text.length();
409 _ttype = RBRACK;
410 int _saveIndex;
412 match(']');
413 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
414 _token = makeToken(_ttype);
415 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
417 _returnToken = _token;
420 public final void mLCURLY(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
421 int _ttype; Token _token=null; int _begin=text.length();
422 _ttype = LCURLY;
423 int _saveIndex;
425 match('{');
426 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
427 _token = makeToken(_ttype);
428 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
430 _returnToken = _token;
433 public final void mRCURLY(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
434 int _ttype; Token _token=null; int _begin=text.length();
435 _ttype = RCURLY;
436 int _saveIndex;
438 match('}');
439 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
440 _token = makeToken(_ttype);
441 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
443 _returnToken = _token;
446 public final void mCOLON(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
447 int _ttype; Token _token=null; int _begin=text.length();
448 _ttype = COLON;
449 int _saveIndex;
451 match(':');
452 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
453 _token = makeToken(_ttype);
454 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
456 _returnToken = _token;
459 public final void mCOMMA(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
460 int _ttype; Token _token=null; int _begin=text.length();
461 _ttype = COMMA;
462 int _saveIndex;
464 match(',');
465 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
466 _token = makeToken(_ttype);
467 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
469 _returnToken = _token;
472 public final void mASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
473 int _ttype; Token _token=null; int _begin=text.length();
474 _ttype = ASSIGN;
475 int _saveIndex;
477 match('=');
478 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
479 _token = makeToken(_ttype);
480 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
482 _returnToken = _token;
485 public final void mEQUAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
486 int _ttype; Token _token=null; int _begin=text.length();
487 _ttype = EQUAL;
488 int _saveIndex;
490 match("==");
491 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
492 _token = makeToken(_ttype);
493 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
495 _returnToken = _token;
498 public final void mLNOT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
499 int _ttype; Token _token=null; int _begin=text.length();
500 _ttype = LNOT;
501 int _saveIndex;
503 match('!');
504 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
505 _token = makeToken(_ttype);
506 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
508 _returnToken = _token;
511 public final void mBNOT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
512 int _ttype; Token _token=null; int _begin=text.length();
513 _ttype = BNOT;
514 int _saveIndex;
516 match('~');
517 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
518 _token = makeToken(_ttype);
519 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
521 _returnToken = _token;
524 public final void mNOT_EQUAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
525 int _ttype; Token _token=null; int _begin=text.length();
526 _ttype = NOT_EQUAL;
527 int _saveIndex;
529 match("!=");
530 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
531 _token = makeToken(_ttype);
532 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
534 _returnToken = _token;
537 public final void mDIV(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
538 int _ttype; Token _token=null; int _begin=text.length();
539 _ttype = DIV;
540 int _saveIndex;
542 match('/');
543 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
544 _token = makeToken(_ttype);
545 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
547 _returnToken = _token;
550 public final void mDIV_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
551 int _ttype; Token _token=null; int _begin=text.length();
552 _ttype = DIV_ASSIGN;
553 int _saveIndex;
555 match("/=");
556 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
557 _token = makeToken(_ttype);
558 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
560 _returnToken = _token;
563 public final void mPLUS(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
564 int _ttype; Token _token=null; int _begin=text.length();
565 _ttype = PLUS;
566 int _saveIndex;
568 match('+');
569 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
570 _token = makeToken(_ttype);
571 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
573 _returnToken = _token;
576 public final void mPLUS_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
577 int _ttype; Token _token=null; int _begin=text.length();
578 _ttype = PLUS_ASSIGN;
579 int _saveIndex;
581 match("+=");
582 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
583 _token = makeToken(_ttype);
584 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
586 _returnToken = _token;
589 public final void mINC(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
590 int _ttype; Token _token=null; int _begin=text.length();
591 _ttype = INC;
592 int _saveIndex;
594 match("++");
595 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
596 _token = makeToken(_ttype);
597 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
599 _returnToken = _token;
602 public final void mMINUS(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
603 int _ttype; Token _token=null; int _begin=text.length();
604 _ttype = MINUS;
605 int _saveIndex;
607 match('-');
608 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
609 _token = makeToken(_ttype);
610 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
612 _returnToken = _token;
615 public final void mMINUS_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
616 int _ttype; Token _token=null; int _begin=text.length();
617 _ttype = MINUS_ASSIGN;
618 int _saveIndex;
620 match("-=");
621 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
622 _token = makeToken(_ttype);
623 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
625 _returnToken = _token;
628 public final void mDEC(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
629 int _ttype; Token _token=null; int _begin=text.length();
630 _ttype = DEC;
631 int _saveIndex;
633 match("--");
634 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
635 _token = makeToken(_ttype);
636 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
638 _returnToken = _token;
641 public final void mSTAR(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
642 int _ttype; Token _token=null; int _begin=text.length();
643 _ttype = STAR;
644 int _saveIndex;
646 match('*');
647 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
648 _token = makeToken(_ttype);
649 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
651 _returnToken = _token;
654 public final void mSTAR_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
655 int _ttype; Token _token=null; int _begin=text.length();
656 _ttype = STAR_ASSIGN;
657 int _saveIndex;
659 match("*=");
660 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
661 _token = makeToken(_ttype);
662 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
664 _returnToken = _token;
667 public final void mMOD(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
668 int _ttype; Token _token=null; int _begin=text.length();
669 _ttype = MOD;
670 int _saveIndex;
672 match('%');
673 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
674 _token = makeToken(_ttype);
675 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
677 _returnToken = _token;
680 public final void mMOD_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
681 int _ttype; Token _token=null; int _begin=text.length();
682 _ttype = MOD_ASSIGN;
683 int _saveIndex;
685 match("%=");
686 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
687 _token = makeToken(_ttype);
688 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
690 _returnToken = _token;
693 public final void mSR(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
694 int _ttype; Token _token=null; int _begin=text.length();
695 _ttype = SR;
696 int _saveIndex;
698 match(">>");
699 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
700 _token = makeToken(_ttype);
701 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
703 _returnToken = _token;
706 public final void mSR_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
707 int _ttype; Token _token=null; int _begin=text.length();
708 _ttype = SR_ASSIGN;
709 int _saveIndex;
711 match(">>=");
712 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
713 _token = makeToken(_ttype);
714 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
716 _returnToken = _token;
719 public final void mBSR(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
720 int _ttype; Token _token=null; int _begin=text.length();
721 _ttype = BSR;
722 int _saveIndex;
724 match(">>>");
725 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
726 _token = makeToken(_ttype);
727 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
729 _returnToken = _token;
732 public final void mBSR_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
733 int _ttype; Token _token=null; int _begin=text.length();
734 _ttype = BSR_ASSIGN;
735 int _saveIndex;
737 match(">>>=");
738 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
739 _token = makeToken(_ttype);
740 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
742 _returnToken = _token;
745 public final void mGE(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
746 int _ttype; Token _token=null; int _begin=text.length();
747 _ttype = GE;
748 int _saveIndex;
750 match(">=");
751 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
752 _token = makeToken(_ttype);
753 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
755 _returnToken = _token;
758 public final void mGT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
759 int _ttype; Token _token=null; int _begin=text.length();
760 _ttype = GT;
761 int _saveIndex;
763 match(">");
764 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
765 _token = makeToken(_ttype);
766 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
768 _returnToken = _token;
771 public final void mSL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
772 int _ttype; Token _token=null; int _begin=text.length();
773 _ttype = SL;
774 int _saveIndex;
776 match("<<");
777 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
778 _token = makeToken(_ttype);
779 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
781 _returnToken = _token;
784 public final void mSL_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
785 int _ttype; Token _token=null; int _begin=text.length();
786 _ttype = SL_ASSIGN;
787 int _saveIndex;
789 match("<<=");
790 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
791 _token = makeToken(_ttype);
792 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
794 _returnToken = _token;
797 public final void mLE(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
798 int _ttype; Token _token=null; int _begin=text.length();
799 _ttype = LE;
800 int _saveIndex;
802 match("<=");
803 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
804 _token = makeToken(_ttype);
805 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
807 _returnToken = _token;
810 public final void mLT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
811 int _ttype; Token _token=null; int _begin=text.length();
812 _ttype = LT;
813 int _saveIndex;
815 match('<');
816 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
817 _token = makeToken(_ttype);
818 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
820 _returnToken = _token;
823 public final void mBXOR(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
824 int _ttype; Token _token=null; int _begin=text.length();
825 _ttype = BXOR;
826 int _saveIndex;
828 match('^');
829 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
830 _token = makeToken(_ttype);
831 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
833 _returnToken = _token;
836 public final void mBXOR_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
837 int _ttype; Token _token=null; int _begin=text.length();
838 _ttype = BXOR_ASSIGN;
839 int _saveIndex;
841 match("^=");
842 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
843 _token = makeToken(_ttype);
844 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
846 _returnToken = _token;
849 public final void mBOR(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
850 int _ttype; Token _token=null; int _begin=text.length();
851 _ttype = BOR;
852 int _saveIndex;
854 match('|');
855 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
856 _token = makeToken(_ttype);
857 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
859 _returnToken = _token;
862 public final void mBOR_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
863 int _ttype; Token _token=null; int _begin=text.length();
864 _ttype = BOR_ASSIGN;
865 int _saveIndex;
867 match("|=");
868 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
869 _token = makeToken(_ttype);
870 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
872 _returnToken = _token;
875 public final void mLOR(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
876 int _ttype; Token _token=null; int _begin=text.length();
877 _ttype = LOR;
878 int _saveIndex;
880 match("||");
881 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
882 _token = makeToken(_ttype);
883 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
885 _returnToken = _token;
888 public final void mBAND(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
889 int _ttype; Token _token=null; int _begin=text.length();
890 _ttype = BAND;
891 int _saveIndex;
893 match('&');
894 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
895 _token = makeToken(_ttype);
896 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
898 _returnToken = _token;
901 public final void mBAND_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
902 int _ttype; Token _token=null; int _begin=text.length();
903 _ttype = BAND_ASSIGN;
904 int _saveIndex;
906 match("&=");
907 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
908 _token = makeToken(_ttype);
909 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
911 _returnToken = _token;
914 public final void mLAND(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
915 int _ttype; Token _token=null; int _begin=text.length();
916 _ttype = LAND;
917 int _saveIndex;
919 match("&&");
920 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
921 _token = makeToken(_ttype);
922 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
924 _returnToken = _token;
927 public final void mSEMI(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
928 int _ttype; Token _token=null; int _begin=text.length();
929 _ttype = SEMI;
930 int _saveIndex;
932 match(';');
933 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
934 _token = makeToken(_ttype);
935 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
937 _returnToken = _token;
940 public final void mWS(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
941 int _ttype; Token _token=null; int _begin=text.length();
942 _ttype = WS;
943 int _saveIndex;
946 int _cnt105=0;
947 _loop105:
948 do {
949 switch ( LA(1)) {
950 case ' ':
952 match(' ');
953 break;
955 case '\t':
957 match('\t');
958 break;
960 case '\u000c':
962 match('\f');
963 break;
965 case '\n': case '\r':
968 if ((LA(1)=='\r') && (LA(2)=='\n') && (true) && (true)) {
969 match("\r\n");
971 else if ((LA(1)=='\r') && (true) && (true) && (true)) {
972 match('\r');
974 else if ((LA(1)=='\n')) {
975 match('\n');
977 else {
978 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
982 if ( inputState.guessing==0 ) {
983 newline();
985 break;
987 default:
989 if ( _cnt105>=1 ) { break _loop105; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
992 _cnt105++;
993 } while (true);
995 if ( inputState.guessing==0 ) {
996 _ttype = Token.SKIP;
998 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
999 _token = makeToken(_ttype);
1000 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
1002 _returnToken = _token;
1005 public final void mSL_COMMIT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
1006 int _ttype; Token _token=null; int _begin=text.length();
1007 _ttype = SL_COMMIT;
1008 int _saveIndex;
1010 match("//");
1012 _loop109:
1013 do {
1014 if ((_tokenSet_0.member(LA(1)))) {
1016 match(_tokenSet_0);
1019 else {
1020 break _loop109;
1023 } while (true);
1026 switch ( LA(1)) {
1027 case '\n':
1029 match('\n');
1030 break;
1032 case '\r':
1034 match('\r');
1036 if ((LA(1)=='\n')) {
1037 match('\n');
1039 else {
1043 break;
1045 default:
1047 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
1051 if ( inputState.guessing==0 ) {
1052 _ttype = Token.SKIP; newline();
1054 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
1055 _token = makeToken(_ttype);
1056 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
1058 _returnToken = _token;
1061 public final void mML_COMMENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
1062 int _ttype; Token _token=null; int _begin=text.length();
1063 _ttype = ML_COMMENT;
1064 int _saveIndex;
1066 match("/*");
1068 _loop115:
1069 do {
1070 if ((LA(1)=='\r') && (LA(2)=='\n') && ((LA(3) >= '\u0003' && LA(3) <= '\uffff')) && ((LA(4) >= '\u0003' && LA(4) <= '\uffff'))) {
1071 match('\r');
1072 match('\n');
1073 if ( inputState.guessing==0 ) {
1074 newline();
1077 else if (((LA(1)=='*') && ((LA(2) >= '\u0003' && LA(2) <= '\uffff')) && ((LA(3) >= '\u0003' && LA(3) <= '\uffff')))&&( LA(2)!='/' )) {
1078 match('*');
1080 else if ((LA(1)=='\r') && ((LA(2) >= '\u0003' && LA(2) <= '\uffff')) && ((LA(3) >= '\u0003' && LA(3) <= '\uffff')) && (true)) {
1081 match('\r');
1082 if ( inputState.guessing==0 ) {
1083 newline();
1086 else if ((LA(1)=='\n')) {
1087 match('\n');
1088 if ( inputState.guessing==0 ) {
1089 newline();
1092 else if ((_tokenSet_1.member(LA(1)))) {
1094 match(_tokenSet_1);
1097 else {
1098 break _loop115;
1101 } while (true);
1103 match("*/");
1104 if ( inputState.guessing==0 ) {
1105 _ttype = Token.SKIP;
1107 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
1108 _token = makeToken(_ttype);
1109 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
1111 _returnToken = _token;
1114 public final void mCHAR_LITERAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
1115 int _ttype; Token _token=null; int _begin=text.length();
1116 _ttype = CHAR_LITERAL;
1117 int _saveIndex;
1119 match('\'');
1121 if ((LA(1)=='\\')) {
1122 mESC(false);
1124 else if ((_tokenSet_2.member(LA(1)))) {
1126 match(_tokenSet_2);
1129 else {
1130 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
1134 match('\'');
1135 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
1136 _token = makeToken(_ttype);
1137 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
1139 _returnToken = _token;
1142 protected final void mESC(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
1143 int _ttype; Token _token=null; int _begin=text.length();
1144 _ttype = ESC;
1145 int _saveIndex;
1147 match('\\');
1149 switch ( LA(1)) {
1150 case 'n':
1152 match('n');
1153 break;
1155 case 'r':
1157 match('r');
1158 break;
1160 case 't':
1162 match('t');
1163 break;
1165 case 'b':
1167 match('b');
1168 break;
1170 case 'f':
1172 match('f');
1173 break;
1175 case '"':
1177 match('"');
1178 break;
1180 case '\'':
1182 match('\'');
1183 break;
1185 case '\\':
1187 match('\\');
1188 break;
1190 case 'u':
1193 int _cnt126=0;
1194 _loop126:
1195 do {
1196 if ((LA(1)=='u')) {
1197 match('u');
1199 else {
1200 if ( _cnt126>=1 ) { break _loop126; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
1203 _cnt126++;
1204 } while (true);
1206 mHEX_DIGIT(false);
1207 mHEX_DIGIT(false);
1208 mHEX_DIGIT(false);
1209 mHEX_DIGIT(false);
1210 break;
1212 case '0': case '1': case '2': case '3':
1214 matchRange('0','3');
1216 if (((LA(1) >= '0' && LA(1) <= '7')) && (_tokenSet_0.member(LA(2))) && (true) && (true)) {
1217 matchRange('0','7');
1219 if (((LA(1) >= '0' && LA(1) <= '7')) && (_tokenSet_0.member(LA(2))) && (true) && (true)) {
1220 matchRange('0','7');
1222 else if ((_tokenSet_0.member(LA(1))) && (true) && (true) && (true)) {
1224 else {
1225 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
1230 else if ((_tokenSet_0.member(LA(1))) && (true) && (true) && (true)) {
1232 else {
1233 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
1237 break;
1239 case '4': case '5': case '6': case '7':
1241 matchRange('4','7');
1243 if (((LA(1) >= '0' && LA(1) <= '7')) && (_tokenSet_0.member(LA(2))) && (true) && (true)) {
1244 matchRange('0','7');
1246 else if ((_tokenSet_0.member(LA(1))) && (true) && (true) && (true)) {
1248 else {
1249 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
1253 break;
1255 default:
1257 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
1261 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
1262 _token = makeToken(_ttype);
1263 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
1265 _returnToken = _token;
1268 public final void mSTRING_LITERAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
1269 int _ttype; Token _token=null; int _begin=text.length();
1270 _ttype = STRING_LITERAL;
1271 int _saveIndex;
1273 match('"');
1275 _loop122:
1276 do {
1277 if ((LA(1)=='\\')) {
1278 mESC(false);
1280 else if ((_tokenSet_3.member(LA(1)))) {
1282 match(_tokenSet_3);
1285 else {
1286 break _loop122;
1289 } while (true);
1291 match('"');
1292 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
1293 _token = makeToken(_ttype);
1294 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
1296 _returnToken = _token;
1299 protected final void mHEX_DIGIT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
1300 int _ttype; Token _token=null; int _begin=text.length();
1301 _ttype = HEX_DIGIT;
1302 int _saveIndex;
1305 switch ( LA(1)) {
1306 case '0': case '1': case '2': case '3':
1307 case '4': case '5': case '6': case '7':
1308 case '8': case '9':
1310 matchRange('0','9');
1311 break;
1313 case 'A': case 'B': case 'C': case 'D':
1314 case 'E': case 'F':
1316 matchRange('A','F');
1317 break;
1319 case 'a': case 'b': case 'c': case 'd':
1320 case 'e': case 'f':
1322 matchRange('a','f');
1323 break;
1325 default:
1327 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
1331 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
1332 _token = makeToken(_ttype);
1333 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
1335 _returnToken = _token;
1338 protected final void mVOCAB(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
1339 int _ttype; Token _token=null; int _begin=text.length();
1340 _ttype = VOCAB;
1341 int _saveIndex;
1343 matchRange('\3','\377');
1344 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
1345 _token = makeToken(_ttype);
1346 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
1348 _returnToken = _token;
1351 public final void mIDENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
1352 int _ttype; Token _token=null; int _begin=text.length();
1353 _ttype = IDENT;
1354 int _saveIndex;
1357 switch ( LA(1)) {
1358 case 'a': case 'b': case 'c': case 'd':
1359 case 'e': case 'f': case 'g': case 'h':
1360 case 'i': case 'j': case 'k': case 'l':
1361 case 'm': case 'n': case 'o': case 'p':
1362 case 'q': case 'r': case 's': case 't':
1363 case 'u': case 'v': case 'w': case 'x':
1364 case 'y': case 'z':
1366 matchRange('a','z');
1367 break;
1369 case 'A': case 'B': case 'C': case 'D':
1370 case 'E': case 'F': case 'G': case 'H':
1371 case 'I': case 'J': case 'K': case 'L':
1372 case 'M': case 'N': case 'O': case 'P':
1373 case 'Q': case 'R': case 'S': case 'T':
1374 case 'U': case 'V': case 'W': case 'X':
1375 case 'Y': case 'Z':
1377 matchRange('A','Z');
1378 break;
1380 case '_':
1382 match('_');
1383 break;
1385 case '$':
1387 match('$');
1388 break;
1390 default:
1392 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
1397 _loop136:
1398 do {
1399 switch ( LA(1)) {
1400 case 'a': case 'b': case 'c': case 'd':
1401 case 'e': case 'f': case 'g': case 'h':
1402 case 'i': case 'j': case 'k': case 'l':
1403 case 'm': case 'n': case 'o': case 'p':
1404 case 'q': case 'r': case 's': case 't':
1405 case 'u': case 'v': case 'w': case 'x':
1406 case 'y': case 'z':
1408 matchRange('a','z');
1409 break;
1411 case 'A': case 'B': case 'C': case 'D':
1412 case 'E': case 'F': case 'G': case 'H':
1413 case 'I': case 'J': case 'K': case 'L':
1414 case 'M': case 'N': case 'O': case 'P':
1415 case 'Q': case 'R': case 'S': case 'T':
1416 case 'U': case 'V': case 'W': case 'X':
1417 case 'Y': case 'Z':
1419 matchRange('A','Z');
1420 break;
1422 case '_':
1424 match('_');
1425 break;
1427 case '0': case '1': case '2': case '3':
1428 case '4': case '5': case '6': case '7':
1429 case '8': case '9':
1431 matchRange('0','9');
1432 break;
1434 case '$':
1436 match('$');
1437 break;
1439 default:
1441 break _loop136;
1444 } while (true);
1446 _ttype = testLiteralsTable(_ttype);
1447 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
1448 _token = makeToken(_ttype);
1449 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
1451 _returnToken = _token;
1454 public final void mNUM_INT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
1455 int _ttype; Token _token=null; int _begin=text.length();
1456 _ttype = NUM_INT;
1457 int _saveIndex;
1458 Token f1=null;
1459 Token f2=null;
1460 Token f3=null;
1461 Token f4=null;
1462 boolean isDecimal=false; Token t=null;
1464 switch ( LA(1)) {
1465 case '.':
1467 match('.');
1468 if ( inputState.guessing==0 ) {
1469 _ttype = DOT;
1472 if (((LA(1) >= '0' && LA(1) <= '9'))) {
1474 int _cnt140=0;
1475 _loop140:
1476 do {
1477 if (((LA(1) >= '0' && LA(1) <= '9'))) {
1478 matchRange('0','9');
1480 else {
1481 if ( _cnt140>=1 ) { break _loop140; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
1484 _cnt140++;
1485 } while (true);
1488 if ((LA(1)=='E'||LA(1)=='e')) {
1489 mEXPONENT(false);
1491 else {
1496 if ((LA(1)=='D'||LA(1)=='F'||LA(1)=='d'||LA(1)=='f')) {
1497 mFLOAT_SUFFIX(true);
1498 f1=_returnToken;
1499 if ( inputState.guessing==0 ) {
1500 t=f1;
1503 else {
1507 if ( inputState.guessing==0 ) {
1509 if (t != null && t.getText().toUpperCase().indexOf('F')>=0) {
1510 _ttype = NUM_FLOAT;
1512 else {
1513 _ttype = NUM_DOUBLE; // assume double
1518 else {
1522 break;
1524 case '0': case '1': case '2': case '3':
1525 case '4': case '5': case '6': case '7':
1526 case '8': case '9':
1529 switch ( LA(1)) {
1530 case '0':
1532 match('0');
1533 if ( inputState.guessing==0 ) {
1534 isDecimal = true;
1537 if ((LA(1)=='X'||LA(1)=='x')) {
1539 switch ( LA(1)) {
1540 case 'x':
1542 match('x');
1543 break;
1545 case 'X':
1547 match('X');
1548 break;
1550 default:
1552 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
1557 int _cnt147=0;
1558 _loop147:
1559 do {
1560 if ((_tokenSet_4.member(LA(1))) && (true) && (true) && (true)) {
1561 mHEX_DIGIT(false);
1563 else {
1564 if ( _cnt147>=1 ) { break _loop147; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
1567 _cnt147++;
1568 } while (true);
1571 else {
1572 boolean synPredMatched152 = false;
1573 if ((((LA(1) >= '0' && LA(1) <= '9')) && (true) && (true) && (true))) {
1574 int _m152 = mark();
1575 synPredMatched152 = true;
1576 inputState.guessing++;
1577 try {
1580 int _cnt150=0;
1581 _loop150:
1582 do {
1583 if (((LA(1) >= '0' && LA(1) <= '9'))) {
1584 matchRange('0','9');
1586 else {
1587 if ( _cnt150>=1 ) { break _loop150; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
1590 _cnt150++;
1591 } while (true);
1594 switch ( LA(1)) {
1595 case '.':
1597 match('.');
1598 break;
1600 case 'E': case 'e':
1602 mEXPONENT(false);
1603 break;
1605 case 'D': case 'F': case 'd': case 'f':
1607 mFLOAT_SUFFIX(false);
1608 break;
1610 default:
1612 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
1618 catch (RecognitionException pe) {
1619 synPredMatched152 = false;
1621 rewind(_m152);
1622 inputState.guessing--;
1624 if ( synPredMatched152 ) {
1626 int _cnt154=0;
1627 _loop154:
1628 do {
1629 if (((LA(1) >= '0' && LA(1) <= '9'))) {
1630 matchRange('0','9');
1632 else {
1633 if ( _cnt154>=1 ) { break _loop154; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
1636 _cnt154++;
1637 } while (true);
1640 else if (((LA(1) >= '0' && LA(1) <= '7')) && (true) && (true) && (true)) {
1642 int _cnt156=0;
1643 _loop156:
1644 do {
1645 if (((LA(1) >= '0' && LA(1) <= '7'))) {
1646 matchRange('0','7');
1648 else {
1649 if ( _cnt156>=1 ) { break _loop156; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
1652 _cnt156++;
1653 } while (true);
1656 else {
1660 break;
1662 case '1': case '2': case '3': case '4':
1663 case '5': case '6': case '7': case '8':
1664 case '9':
1667 matchRange('1','9');
1670 _loop159:
1671 do {
1672 if (((LA(1) >= '0' && LA(1) <= '9'))) {
1673 matchRange('0','9');
1675 else {
1676 break _loop159;
1679 } while (true);
1681 if ( inputState.guessing==0 ) {
1682 isDecimal=true;
1684 break;
1686 default:
1688 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
1693 if ((LA(1)=='L'||LA(1)=='l')) {
1695 switch ( LA(1)) {
1696 case 'l':
1698 match('l');
1699 break;
1701 case 'L':
1703 match('L');
1704 break;
1706 default:
1708 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
1712 if ( inputState.guessing==0 ) {
1713 _ttype = NUM_LONG;
1716 else if (((LA(1)=='.'||LA(1)=='D'||LA(1)=='E'||LA(1)=='F'||LA(1)=='d'||LA(1)=='e'||LA(1)=='f'))&&(isDecimal)) {
1718 switch ( LA(1)) {
1719 case '.':
1721 match('.');
1723 _loop164:
1724 do {
1725 if (((LA(1) >= '0' && LA(1) <= '9'))) {
1726 matchRange('0','9');
1728 else {
1729 break _loop164;
1732 } while (true);
1735 if ((LA(1)=='E'||LA(1)=='e')) {
1736 mEXPONENT(false);
1738 else {
1743 if ((LA(1)=='D'||LA(1)=='F'||LA(1)=='d'||LA(1)=='f')) {
1744 mFLOAT_SUFFIX(true);
1745 f2=_returnToken;
1746 if ( inputState.guessing==0 ) {
1747 t=f2;
1750 else {
1754 break;
1756 case 'E': case 'e':
1758 mEXPONENT(false);
1760 if ((LA(1)=='D'||LA(1)=='F'||LA(1)=='d'||LA(1)=='f')) {
1761 mFLOAT_SUFFIX(true);
1762 f3=_returnToken;
1763 if ( inputState.guessing==0 ) {
1764 t=f3;
1767 else {
1771 break;
1773 case 'D': case 'F': case 'd': case 'f':
1775 mFLOAT_SUFFIX(true);
1776 f4=_returnToken;
1777 if ( inputState.guessing==0 ) {
1778 t=f4;
1780 break;
1782 default:
1784 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
1788 if ( inputState.guessing==0 ) {
1790 if (t != null && t.getText().toUpperCase() .indexOf('F') >= 0) {
1791 _ttype = NUM_FLOAT;
1793 else {
1794 _ttype = NUM_DOUBLE; // assume double
1799 else {
1803 break;
1805 default:
1807 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
1810 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
1811 _token = makeToken(_ttype);
1812 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
1814 _returnToken = _token;
1817 protected final void mEXPONENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
1818 int _ttype; Token _token=null; int _begin=text.length();
1819 _ttype = EXPONENT;
1820 int _saveIndex;
1823 switch ( LA(1)) {
1824 case 'e':
1826 match('e');
1827 break;
1829 case 'E':
1831 match('E');
1832 break;
1834 default:
1836 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
1841 switch ( LA(1)) {
1842 case '+':
1844 match('+');
1845 break;
1847 case '-':
1849 match('-');
1850 break;
1852 case '0': case '1': case '2': case '3':
1853 case '4': case '5': case '6': case '7':
1854 case '8': case '9':
1856 break;
1858 default:
1860 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
1865 int _cnt172=0;
1866 _loop172:
1867 do {
1868 if (((LA(1) >= '0' && LA(1) <= '9'))) {
1869 matchRange('0','9');
1871 else {
1872 if ( _cnt172>=1 ) { break _loop172; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
1875 _cnt172++;
1876 } while (true);
1878 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
1879 _token = makeToken(_ttype);
1880 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
1882 _returnToken = _token;
1885 protected final void mFLOAT_SUFFIX(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
1886 int _ttype; Token _token=null; int _begin=text.length();
1887 _ttype = FLOAT_SUFFIX;
1888 int _saveIndex;
1890 switch ( LA(1)) {
1891 case 'f':
1893 match('f');
1894 break;
1896 case 'F':
1898 match('F');
1899 break;
1901 case 'd':
1903 match('d');
1904 break;
1906 case 'D':
1908 match('D');
1909 break;
1911 default:
1913 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
1916 if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
1917 _token = makeToken(_ttype);
1918 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
1920 _returnToken = _token;
1924 private static final long[] mk_tokenSet_0() {
1925 long[] data = new long[2048];
1926 data[0]=-9224L;
1927 for (int i = 1; i<=1023; i++) { data[i]=-1L; }
1928 return data;
1930 public static final BitSet _tokenSet_0 = new BitSet(mk_tokenSet_0());
1931 private static final long[] mk_tokenSet_1() {
1932 long[] data = new long[2048];
1933 data[0]=-4398046520328L;
1934 for (int i = 1; i<=1023; i++) { data[i]=-1L; }
1935 return data;
1937 public static final BitSet _tokenSet_1 = new BitSet(mk_tokenSet_1());
1938 private static final long[] mk_tokenSet_2() {
1939 long[] data = new long[2048];
1940 data[0]=-549755823112L;
1941 data[1]=-268435457L;
1942 for (int i = 2; i<=1023; i++) { data[i]=-1L; }
1943 return data;
1945 public static final BitSet _tokenSet_2 = new BitSet(mk_tokenSet_2());
1946 private static final long[] mk_tokenSet_3() {
1947 long[] data = new long[2048];
1948 data[0]=-17179878408L;
1949 data[1]=-268435457L;
1950 for (int i = 2; i<=1023; i++) { data[i]=-1L; }
1951 return data;
1953 public static final BitSet _tokenSet_3 = new BitSet(mk_tokenSet_3());
1954 private static final long[] mk_tokenSet_4() {
1955 long[] data = new long[1025];
1956 data[0]=287948901175001088L;
1957 data[1]=541165879422L;
1958 return data;
1960 public static final BitSet _tokenSet_4 = new BitSet(mk_tokenSet_4());