001// $ANTLR 2.7.7 (20060906): "java.g" -> "GeneratedJavaLexer.java"$ 002 003package com.puppycrawl.tools.checkstyle.grammar; 004 005import com.puppycrawl.tools.checkstyle.DetailAstImpl; 006import java.text.MessageFormat; 007import antlr.CommonHiddenStreamToken; 008 009import java.io.InputStream; 010import antlr.TokenStreamException; 011import antlr.TokenStreamIOException; 012import antlr.TokenStreamRecognitionException; 013import antlr.CharStreamException; 014import antlr.CharStreamIOException; 015import antlr.ANTLRException; 016import java.io.Reader; 017import java.util.Hashtable; 018import antlr.CharScanner; 019import antlr.InputBuffer; 020import antlr.ByteBuffer; 021import antlr.CharBuffer; 022import antlr.Token; 023import antlr.CommonToken; 024import antlr.RecognitionException; 025import antlr.NoViableAltForCharException; 026import antlr.MismatchedCharException; 027import antlr.TokenStream; 028import antlr.ANTLRHashString; 029import antlr.LexerSharedInputState; 030import antlr.collections.impl.BitSet; 031import antlr.SemanticException; 032 033public class GeneratedJavaLexer extends antlr.CharScanner implements GeneratedJavaTokenTypes, TokenStream 034 { 035 036 037 // explicitly set tab width to 1 (default in ANTLR 2.7.1) 038 // in ANTLR 2.7.2a2 the default has changed from 1 to 8 039 public void tab() 040 { 041 setColumn( getColumn() + 1 ); 042 } 043 044 private CommentListener mCommentListener = null; 045 046 public void setCommentListener(CommentListener aCommentListener) 047 { 048 mCommentListener = aCommentListener; 049 } 050 051 private boolean mTreatAssertAsKeyword = true; 052 053 public void setTreatAssertAsKeyword(boolean aTreatAsKeyword) 054 { 055 mTreatAssertAsKeyword = aTreatAsKeyword; 056 } 057 058 private boolean mTreatEnumAsKeyword = true; 059 060 public void setTreatEnumAsKeyword(boolean aTreatAsKeyword) 061 { 062 mTreatEnumAsKeyword = aTreatAsKeyword; 063 } 064 065public GeneratedJavaLexer(InputStream in) { 066 this(new ByteBuffer(in)); 067} 068public GeneratedJavaLexer(Reader in) { 069 this(new CharBuffer(in)); 070} 071public GeneratedJavaLexer(InputBuffer ib) { 072 this(new LexerSharedInputState(ib)); 073} 074public GeneratedJavaLexer(LexerSharedInputState state) { 075 super(state); 076 caseSensitiveLiterals = true; 077 setCaseSensitive(true); 078 literals = new Hashtable(); 079 literals.put(new ANTLRHashString("byte", this), new Integer(51)); 080 literals.put(new ANTLRHashString("public", this), new Integer(62)); 081 literals.put(new ANTLRHashString("case", this), new Integer(93)); 082 literals.put(new ANTLRHashString("short", this), new Integer(53)); 083 literals.put(new ANTLRHashString("break", this), new Integer(86)); 084 literals.put(new ANTLRHashString("while", this), new Integer(84)); 085 literals.put(new ANTLRHashString("new", this), new Integer(136)); 086 literals.put(new ANTLRHashString("instanceof", this), new Integer(121)); 087 literals.put(new ANTLRHashString("implements", this), new Integer(75)); 088 literals.put(new ANTLRHashString("synchronized", this), new Integer(67)); 089 literals.put(new ANTLRHashString("float", this), new Integer(55)); 090 literals.put(new ANTLRHashString("package", this), new Integer(44)); 091 literals.put(new ANTLRHashString("return", this), new Integer(88)); 092 literals.put(new ANTLRHashString("throw", this), new Integer(90)); 093 literals.put(new ANTLRHashString("null", this), new Integer(135)); 094 literals.put(new ANTLRHashString("protected", this), new Integer(63)); 095 literals.put(new ANTLRHashString("class", this), new Integer(69)); 096 literals.put(new ANTLRHashString("throws", this), new Integer(81)); 097 literals.put(new ANTLRHashString("do", this), new Integer(85)); 098 literals.put(new ANTLRHashString("strictfp", this), new Integer(41)); 099 literals.put(new ANTLRHashString("super", this), new Integer(79)); 100 literals.put(new ANTLRHashString("transient", this), new Integer(65)); 101 literals.put(new ANTLRHashString("native", this), new Integer(66)); 102 literals.put(new ANTLRHashString("interface", this), new Integer(71)); 103 literals.put(new ANTLRHashString("final", this), new Integer(39)); 104 literals.put(new ANTLRHashString("if", this), new Integer(83)); 105 literals.put(new ANTLRHashString("record", this), new Integer(200)); 106 literals.put(new ANTLRHashString("double", this), new Integer(57)); 107 literals.put(new ANTLRHashString("volatile", this), new Integer(68)); 108 literals.put(new ANTLRHashString("catch", this), new Integer(96)); 109 literals.put(new ANTLRHashString("try", this), new Integer(95)); 110 literals.put(new ANTLRHashString("int", this), new Integer(54)); 111 literals.put(new ANTLRHashString("for", this), new Integer(91)); 112 literals.put(new ANTLRHashString("extends", this), new Integer(70)); 113 literals.put(new ANTLRHashString("boolean", this), new Integer(50)); 114 literals.put(new ANTLRHashString("char", this), new Integer(52)); 115 literals.put(new ANTLRHashString("private", this), new Integer(61)); 116 literals.put(new ANTLRHashString("default", this), new Integer(94)); 117 literals.put(new ANTLRHashString("false", this), new Integer(134)); 118 literals.put(new ANTLRHashString("this", this), new Integer(78)); 119 literals.put(new ANTLRHashString("static", this), new Integer(64)); 120 literals.put(new ANTLRHashString("abstract", this), new Integer(40)); 121 literals.put(new ANTLRHashString("continue", this), new Integer(87)); 122 literals.put(new ANTLRHashString("finally", this), new Integer(97)); 123 literals.put(new ANTLRHashString("else", this), new Integer(92)); 124 literals.put(new ANTLRHashString("import", this), new Integer(46)); 125 literals.put(new ANTLRHashString("void", this), new Integer(49)); 126 literals.put(new ANTLRHashString("switch", this), new Integer(89)); 127 literals.put(new ANTLRHashString("true", this), new Integer(133)); 128 literals.put(new ANTLRHashString("long", this), new Integer(56)); 129} 130 131public Token nextToken() throws TokenStreamException { 132 Token theRetToken=null; 133tryAgain: 134 for (;;) { 135 Token _token = null; 136 int _ttype = Token.INVALID_TYPE; 137 resetText(); 138 try { // for char stream error handling 139 try { // for lexical error handling 140 switch ( LA(1)) { 141 case '?': 142 { 143 mQUESTION(true); 144 theRetToken=_returnToken; 145 break; 146 } 147 case '(': 148 { 149 mLPAREN(true); 150 theRetToken=_returnToken; 151 break; 152 } 153 case ')': 154 { 155 mRPAREN(true); 156 theRetToken=_returnToken; 157 break; 158 } 159 case '[': 160 { 161 mLBRACK(true); 162 theRetToken=_returnToken; 163 break; 164 } 165 case ']': 166 { 167 mRBRACK(true); 168 theRetToken=_returnToken; 169 break; 170 } 171 case '{': 172 { 173 mLCURLY(true); 174 theRetToken=_returnToken; 175 break; 176 } 177 case '}': 178 { 179 mRCURLY(true); 180 theRetToken=_returnToken; 181 break; 182 } 183 case ',': 184 { 185 mCOMMA(true); 186 theRetToken=_returnToken; 187 break; 188 } 189 case '~': 190 { 191 mBNOT(true); 192 theRetToken=_returnToken; 193 break; 194 } 195 case ';': 196 { 197 mSEMI(true); 198 theRetToken=_returnToken; 199 break; 200 } 201 case '@': 202 { 203 mAT(true); 204 theRetToken=_returnToken; 205 break; 206 } 207 case '\t': case '\n': case '\u000c': case '\r': 208 case ' ': 209 { 210 mWS(true); 211 theRetToken=_returnToken; 212 break; 213 } 214 case '\'': 215 { 216 mCHAR_LITERAL(true); 217 theRetToken=_returnToken; 218 break; 219 } 220 case '"': 221 { 222 mSTRING_LITERAL(true); 223 theRetToken=_returnToken; 224 break; 225 } 226 case '.': case '0': case '1': case '2': 227 case '3': case '4': case '5': case '6': 228 case '7': case '8': case '9': 229 { 230 mNUM_INT(true); 231 theRetToken=_returnToken; 232 break; 233 } 234 default: 235 if ((LA(1)=='>') && (LA(2)=='>') && (LA(3)=='>') && (LA(4)=='=')) { 236 mBSR_ASSIGN(true); 237 theRetToken=_returnToken; 238 } 239 else if ((LA(1)=='>') && (LA(2)=='>') && (LA(3)=='=')) { 240 mSR_ASSIGN(true); 241 theRetToken=_returnToken; 242 } 243 else if ((LA(1)=='>') && (LA(2)=='>') && (LA(3)=='>') && (true)) { 244 mBSR(true); 245 theRetToken=_returnToken; 246 } 247 else if ((LA(1)=='<') && (LA(2)=='<') && (LA(3)=='=')) { 248 mSL_ASSIGN(true); 249 theRetToken=_returnToken; 250 } 251 else if ((LA(1)==':') && (LA(2)==':')) { 252 mDOUBLE_COLON(true); 253 theRetToken=_returnToken; 254 } 255 else if ((LA(1)=='=') && (LA(2)=='=')) { 256 mEQUAL(true); 257 theRetToken=_returnToken; 258 } 259 else if ((LA(1)=='!') && (LA(2)=='=')) { 260 mNOT_EQUAL(true); 261 theRetToken=_returnToken; 262 } 263 else if ((LA(1)=='/') && (LA(2)=='=')) { 264 mDIV_ASSIGN(true); 265 theRetToken=_returnToken; 266 } 267 else if ((LA(1)=='+') && (LA(2)=='=')) { 268 mPLUS_ASSIGN(true); 269 theRetToken=_returnToken; 270 } 271 else if ((LA(1)=='+') && (LA(2)=='+')) { 272 mINC(true); 273 theRetToken=_returnToken; 274 } 275 else if ((LA(1)=='-') && (LA(2)=='=')) { 276 mMINUS_ASSIGN(true); 277 theRetToken=_returnToken; 278 } 279 else if ((LA(1)=='-') && (LA(2)=='-')) { 280 mDEC(true); 281 theRetToken=_returnToken; 282 } 283 else if ((LA(1)=='*') && (LA(2)=='=')) { 284 mSTAR_ASSIGN(true); 285 theRetToken=_returnToken; 286 } 287 else if ((LA(1)=='%') && (LA(2)=='=')) { 288 mMOD_ASSIGN(true); 289 theRetToken=_returnToken; 290 } 291 else if ((LA(1)=='>') && (LA(2)=='>') && (true)) { 292 mSR(true); 293 theRetToken=_returnToken; 294 } 295 else if ((LA(1)=='>') && (LA(2)=='=')) { 296 mGE(true); 297 theRetToken=_returnToken; 298 } 299 else if ((LA(1)=='<') && (LA(2)=='<') && (true)) { 300 mSL(true); 301 theRetToken=_returnToken; 302 } 303 else if ((LA(1)=='<') && (LA(2)=='=')) { 304 mLE(true); 305 theRetToken=_returnToken; 306 } 307 else if ((LA(1)=='-') && (LA(2)=='>')) { 308 mLAMBDA(true); 309 theRetToken=_returnToken; 310 } 311 else if ((LA(1)=='^') && (LA(2)=='=')) { 312 mBXOR_ASSIGN(true); 313 theRetToken=_returnToken; 314 } 315 else if ((LA(1)=='|') && (LA(2)=='=')) { 316 mBOR_ASSIGN(true); 317 theRetToken=_returnToken; 318 } 319 else if ((LA(1)=='|') && (LA(2)=='|')) { 320 mLOR(true); 321 theRetToken=_returnToken; 322 } 323 else if ((LA(1)=='&') && (LA(2)=='=')) { 324 mBAND_ASSIGN(true); 325 theRetToken=_returnToken; 326 } 327 else if ((LA(1)=='&') && (LA(2)=='&')) { 328 mLAND(true); 329 theRetToken=_returnToken; 330 } 331 else if ((LA(1)=='/') && (LA(2)=='/')) { 332 mSINGLE_LINE_COMMENT(true); 333 theRetToken=_returnToken; 334 } 335 else if ((LA(1)=='/') && (LA(2)=='*')) { 336 mBLOCK_COMMENT_BEGIN(true); 337 theRetToken=_returnToken; 338 } 339 else if ((LA(1)==':') && (true)) { 340 mCOLON(true); 341 theRetToken=_returnToken; 342 } 343 else if ((LA(1)=='=') && (true)) { 344 mASSIGN(true); 345 theRetToken=_returnToken; 346 } 347 else if ((LA(1)=='!') && (true)) { 348 mLNOT(true); 349 theRetToken=_returnToken; 350 } 351 else if ((LA(1)=='/') && (true)) { 352 mDIV(true); 353 theRetToken=_returnToken; 354 } 355 else if ((LA(1)=='+') && (true)) { 356 mPLUS(true); 357 theRetToken=_returnToken; 358 } 359 else if ((LA(1)=='-') && (true)) { 360 mMINUS(true); 361 theRetToken=_returnToken; 362 } 363 else if ((LA(1)=='*') && (true)) { 364 mSTAR(true); 365 theRetToken=_returnToken; 366 } 367 else if ((LA(1)=='%') && (true)) { 368 mMOD(true); 369 theRetToken=_returnToken; 370 } 371 else if ((LA(1)=='>') && (true)) { 372 mGT(true); 373 theRetToken=_returnToken; 374 } 375 else if ((LA(1)=='<') && (true)) { 376 mLT(true); 377 theRetToken=_returnToken; 378 } 379 else if ((LA(1)=='^') && (true)) { 380 mBXOR(true); 381 theRetToken=_returnToken; 382 } 383 else if ((LA(1)=='|') && (true)) { 384 mBOR(true); 385 theRetToken=_returnToken; 386 } 387 else if ((LA(1)=='&') && (true)) { 388 mBAND(true); 389 theRetToken=_returnToken; 390 } 391 else if ((_tokenSet_0.member(LA(1)))) { 392 mIDENT(true); 393 theRetToken=_returnToken; 394 } 395 else { 396 if (LA(1)==EOF_CHAR) {uponEOF(); _returnToken = makeToken(Token.EOF_TYPE);} 397 else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());} 398 } 399 } 400 if ( _returnToken==null ) continue tryAgain; // found SKIP token 401 _ttype = _returnToken.getType(); 402 _returnToken.setType(_ttype); 403 return _returnToken; 404 } 405 catch (RecognitionException e) { 406 throw new TokenStreamRecognitionException(e); 407 } 408 } 409 catch (CharStreamException cse) { 410 if ( cse instanceof CharStreamIOException ) { 411 throw new TokenStreamIOException(((CharStreamIOException)cse).io); 412 } 413 else { 414 throw new TokenStreamException(cse.getMessage()); 415 } 416 } 417 } 418} 419 420 public final void mQUESTION(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 421 int _ttype; Token _token=null; int _begin=text.length(); 422 _ttype = QUESTION; 423 int _saveIndex; 424 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)); 429 } 430 _returnToken = _token; 431 } 432 433 public final void mLPAREN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 434 int _ttype; Token _token=null; int _begin=text.length(); 435 _ttype = LPAREN; 436 int _saveIndex; 437 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)); 442 } 443 _returnToken = _token; 444 } 445 446 public final void mRPAREN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 447 int _ttype; Token _token=null; int _begin=text.length(); 448 _ttype = RPAREN; 449 int _saveIndex; 450 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)); 455 } 456 _returnToken = _token; 457 } 458 459 public final void mLBRACK(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 460 int _ttype; Token _token=null; int _begin=text.length(); 461 _ttype = LBRACK; 462 int _saveIndex; 463 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)); 468 } 469 _returnToken = _token; 470 } 471 472 public final void mRBRACK(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 473 int _ttype; Token _token=null; int _begin=text.length(); 474 _ttype = RBRACK; 475 int _saveIndex; 476 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)); 481 } 482 _returnToken = _token; 483 } 484 485 public final void mLCURLY(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 486 int _ttype; Token _token=null; int _begin=text.length(); 487 _ttype = LCURLY; 488 int _saveIndex; 489 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)); 494 } 495 _returnToken = _token; 496 } 497 498 public final void mRCURLY(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 499 int _ttype; Token _token=null; int _begin=text.length(); 500 _ttype = RCURLY; 501 int _saveIndex; 502 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)); 507 } 508 _returnToken = _token; 509 } 510 511 public final void mCOLON(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 512 int _ttype; Token _token=null; int _begin=text.length(); 513 _ttype = COLON; 514 int _saveIndex; 515 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)); 520 } 521 _returnToken = _token; 522 } 523 524 public final void mDOUBLE_COLON(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 525 int _ttype; Token _token=null; int _begin=text.length(); 526 _ttype = DOUBLE_COLON; 527 int _saveIndex; 528 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)); 533 } 534 _returnToken = _token; 535 } 536 537 public final void mCOMMA(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 538 int _ttype; Token _token=null; int _begin=text.length(); 539 _ttype = COMMA; 540 int _saveIndex; 541 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)); 546 } 547 _returnToken = _token; 548 } 549 550 public final void mASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 551 int _ttype; Token _token=null; int _begin=text.length(); 552 _ttype = ASSIGN; 553 int _saveIndex; 554 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)); 559 } 560 _returnToken = _token; 561 } 562 563 public final void mEQUAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 564 int _ttype; Token _token=null; int _begin=text.length(); 565 _ttype = EQUAL; 566 int _saveIndex; 567 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)); 572 } 573 _returnToken = _token; 574 } 575 576 public final void mLNOT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 577 int _ttype; Token _token=null; int _begin=text.length(); 578 _ttype = LNOT; 579 int _saveIndex; 580 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)); 585 } 586 _returnToken = _token; 587 } 588 589 public final void mBNOT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 590 int _ttype; Token _token=null; int _begin=text.length(); 591 _ttype = BNOT; 592 int _saveIndex; 593 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)); 598 } 599 _returnToken = _token; 600 } 601 602 public final void mNOT_EQUAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 603 int _ttype; Token _token=null; int _begin=text.length(); 604 _ttype = NOT_EQUAL; 605 int _saveIndex; 606 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)); 611 } 612 _returnToken = _token; 613 } 614 615 public final void mDIV(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 616 int _ttype; Token _token=null; int _begin=text.length(); 617 _ttype = DIV; 618 int _saveIndex; 619 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)); 624 } 625 _returnToken = _token; 626 } 627 628 public final void mDIV_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 629 int _ttype; Token _token=null; int _begin=text.length(); 630 _ttype = DIV_ASSIGN; 631 int _saveIndex; 632 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)); 637 } 638 _returnToken = _token; 639 } 640 641 public final void mPLUS(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 642 int _ttype; Token _token=null; int _begin=text.length(); 643 _ttype = PLUS; 644 int _saveIndex; 645 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)); 650 } 651 _returnToken = _token; 652 } 653 654 public final void mPLUS_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 655 int _ttype; Token _token=null; int _begin=text.length(); 656 _ttype = PLUS_ASSIGN; 657 int _saveIndex; 658 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)); 663 } 664 _returnToken = _token; 665 } 666 667 public final void mINC(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 668 int _ttype; Token _token=null; int _begin=text.length(); 669 _ttype = INC; 670 int _saveIndex; 671 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)); 676 } 677 _returnToken = _token; 678 } 679 680 public final void mMINUS(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 681 int _ttype; Token _token=null; int _begin=text.length(); 682 _ttype = MINUS; 683 int _saveIndex; 684 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)); 689 } 690 _returnToken = _token; 691 } 692 693 public final void mMINUS_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 694 int _ttype; Token _token=null; int _begin=text.length(); 695 _ttype = MINUS_ASSIGN; 696 int _saveIndex; 697 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)); 702 } 703 _returnToken = _token; 704 } 705 706 public final void mDEC(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 707 int _ttype; Token _token=null; int _begin=text.length(); 708 _ttype = DEC; 709 int _saveIndex; 710 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)); 715 } 716 _returnToken = _token; 717 } 718 719 public final void mSTAR(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 720 int _ttype; Token _token=null; int _begin=text.length(); 721 _ttype = STAR; 722 int _saveIndex; 723 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)); 728 } 729 _returnToken = _token; 730 } 731 732 public final void mSTAR_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 733 int _ttype; Token _token=null; int _begin=text.length(); 734 _ttype = STAR_ASSIGN; 735 int _saveIndex; 736 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)); 741 } 742 _returnToken = _token; 743 } 744 745 public final void mMOD(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 746 int _ttype; Token _token=null; int _begin=text.length(); 747 _ttype = MOD; 748 int _saveIndex; 749 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)); 754 } 755 _returnToken = _token; 756 } 757 758 public final void mMOD_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 759 int _ttype; Token _token=null; int _begin=text.length(); 760 _ttype = MOD_ASSIGN; 761 int _saveIndex; 762 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)); 767 } 768 _returnToken = _token; 769 } 770 771 public final void mSR(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 772 int _ttype; Token _token=null; int _begin=text.length(); 773 _ttype = SR; 774 int _saveIndex; 775 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)); 780 } 781 _returnToken = _token; 782 } 783 784 public final void mSR_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 785 int _ttype; Token _token=null; int _begin=text.length(); 786 _ttype = SR_ASSIGN; 787 int _saveIndex; 788 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)); 793 } 794 _returnToken = _token; 795 } 796 797 public final void mBSR(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 798 int _ttype; Token _token=null; int _begin=text.length(); 799 _ttype = BSR; 800 int _saveIndex; 801 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)); 806 } 807 _returnToken = _token; 808 } 809 810 public final void mBSR_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 811 int _ttype; Token _token=null; int _begin=text.length(); 812 _ttype = BSR_ASSIGN; 813 int _saveIndex; 814 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)); 819 } 820 _returnToken = _token; 821 } 822 823 public final void mGE(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 824 int _ttype; Token _token=null; int _begin=text.length(); 825 _ttype = GE; 826 int _saveIndex; 827 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)); 832 } 833 _returnToken = _token; 834 } 835 836 public final void mGT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 837 int _ttype; Token _token=null; int _begin=text.length(); 838 _ttype = GT; 839 int _saveIndex; 840 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)); 845 } 846 _returnToken = _token; 847 } 848 849 public final void mSL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 850 int _ttype; Token _token=null; int _begin=text.length(); 851 _ttype = SL; 852 int _saveIndex; 853 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)); 858 } 859 _returnToken = _token; 860 } 861 862 public final void mSL_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 863 int _ttype; Token _token=null; int _begin=text.length(); 864 _ttype = SL_ASSIGN; 865 int _saveIndex; 866 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)); 871 } 872 _returnToken = _token; 873 } 874 875 public final void mLE(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 876 int _ttype; Token _token=null; int _begin=text.length(); 877 _ttype = LE; 878 int _saveIndex; 879 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)); 884 } 885 _returnToken = _token; 886 } 887 888 public final void mLT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 889 int _ttype; Token _token=null; int _begin=text.length(); 890 _ttype = LT; 891 int _saveIndex; 892 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)); 897 } 898 _returnToken = _token; 899 } 900 901 public final void mLAMBDA(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 902 int _ttype; Token _token=null; int _begin=text.length(); 903 _ttype = LAMBDA; 904 int _saveIndex; 905 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)); 910 } 911 _returnToken = _token; 912 } 913 914 public final void mBXOR(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 915 int _ttype; Token _token=null; int _begin=text.length(); 916 _ttype = BXOR; 917 int _saveIndex; 918 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)); 923 } 924 _returnToken = _token; 925 } 926 927 public final void mBXOR_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 928 int _ttype; Token _token=null; int _begin=text.length(); 929 _ttype = BXOR_ASSIGN; 930 int _saveIndex; 931 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)); 936 } 937 _returnToken = _token; 938 } 939 940 public final void mBOR(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 941 int _ttype; Token _token=null; int _begin=text.length(); 942 _ttype = BOR; 943 int _saveIndex; 944 945 match('|'); 946 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 947 _token = makeToken(_ttype); 948 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 949 } 950 _returnToken = _token; 951 } 952 953 public final void mBOR_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 954 int _ttype; Token _token=null; int _begin=text.length(); 955 _ttype = BOR_ASSIGN; 956 int _saveIndex; 957 958 match("|="); 959 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 960 _token = makeToken(_ttype); 961 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 962 } 963 _returnToken = _token; 964 } 965 966 public final void mLOR(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 967 int _ttype; Token _token=null; int _begin=text.length(); 968 _ttype = LOR; 969 int _saveIndex; 970 971 match("||"); 972 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 973 _token = makeToken(_ttype); 974 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 975 } 976 _returnToken = _token; 977 } 978 979 public final void mBAND(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 980 int _ttype; Token _token=null; int _begin=text.length(); 981 _ttype = BAND; 982 int _saveIndex; 983 984 match('&'); 985 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 986 _token = makeToken(_ttype); 987 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 988 } 989 _returnToken = _token; 990 } 991 992 public final void mBAND_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 993 int _ttype; Token _token=null; int _begin=text.length(); 994 _ttype = BAND_ASSIGN; 995 int _saveIndex; 996 997 match("&="); 998 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 999 _token = makeToken(_ttype); 1000 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 1001 } 1002 _returnToken = _token; 1003 } 1004 1005 public final void mLAND(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 1006 int _ttype; Token _token=null; int _begin=text.length(); 1007 _ttype = LAND; 1008 int _saveIndex; 1009 1010 match("&&"); 1011 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 1012 _token = makeToken(_ttype); 1013 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 1014 } 1015 _returnToken = _token; 1016 } 1017 1018 public final void mSEMI(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 1019 int _ttype; Token _token=null; int _begin=text.length(); 1020 _ttype = SEMI; 1021 int _saveIndex; 1022 1023 match(';'); 1024 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 1025 _token = makeToken(_ttype); 1026 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 1027 } 1028 _returnToken = _token; 1029 } 1030 1031 public final void mAT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 1032 int _ttype; Token _token=null; int _begin=text.length(); 1033 _ttype = AT; 1034 int _saveIndex; 1035 1036 match('@'); 1037 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 1038 _token = makeToken(_ttype); 1039 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 1040 } 1041 _returnToken = _token; 1042 } 1043 1044 public final void mWS(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 1045 int _ttype; Token _token=null; int _begin=text.length(); 1046 _ttype = WS; 1047 int _saveIndex; 1048 1049 { 1050 int _cnt468=0; 1051 _loop468: 1052 do { 1053 switch ( LA(1)) { 1054 case ' ': 1055 { 1056 match(' '); 1057 break; 1058 } 1059 case '\t': 1060 { 1061 match('\t'); 1062 break; 1063 } 1064 case '\u000c': 1065 { 1066 match('\f'); 1067 break; 1068 } 1069 case '\n': case '\r': 1070 { 1071 { 1072 if ((LA(1)=='\r') && (LA(2)=='\n') && (true) && (true)) { 1073 match("\r\n"); 1074 } 1075 else if ((LA(1)=='\r') && (true) && (true) && (true)) { 1076 match('\r'); 1077 } 1078 else if ((LA(1)=='\n')) { 1079 match('\n'); 1080 } 1081 else { 1082 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 1083 } 1084 1085 } 1086 if ( inputState.guessing==0 ) { 1087 newline(); 1088 } 1089 break; 1090 } 1091 default: 1092 { 1093 if ( _cnt468>=1 ) { break _loop468; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());} 1094 } 1095 } 1096 _cnt468++; 1097 } while (true); 1098 } 1099 if ( inputState.guessing==0 ) { 1100 _ttype = Token.SKIP; 1101 } 1102 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 1103 _token = makeToken(_ttype); 1104 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 1105 } 1106 _returnToken = _token; 1107 } 1108 1109 public final void mSINGLE_LINE_COMMENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 1110 int _ttype; Token _token=null; int _begin=text.length(); 1111 _ttype = SINGLE_LINE_COMMENT; 1112 int _saveIndex; 1113 Token content=null; 1114 1115 match("//"); 1116 if ( inputState.guessing==0 ) { 1117 mCommentListener.reportSingleLineComment("//", getLine(), 1118 getColumn() - 3); 1119 } 1120 mSINGLE_LINE_COMMENT_CONTENT(true); 1121 content=_returnToken; 1122 if ( inputState.guessing==0 ) { 1123 text.setLength(_begin); text.append(content.getText()); 1124 } 1125 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 1126 _token = makeToken(_ttype); 1127 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 1128 } 1129 _returnToken = _token; 1130 } 1131 1132 protected final void mSINGLE_LINE_COMMENT_CONTENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 1133 int _ttype; Token _token=null; int _begin=text.length(); 1134 _ttype = SINGLE_LINE_COMMENT_CONTENT; 1135 int _saveIndex; 1136 1137 { 1138 _loop473: 1139 do { 1140 if ((_tokenSet_1.member(LA(1)))) { 1141 { 1142 match(_tokenSet_1); 1143 } 1144 } 1145 else { 1146 break _loop473; 1147 } 1148 1149 } while (true); 1150 } 1151 { 1152 switch ( LA(1)) { 1153 case '\n': 1154 { 1155 match('\n'); 1156 break; 1157 } 1158 case '\r': 1159 { 1160 match('\r'); 1161 { 1162 if ((LA(1)=='\n')) { 1163 match('\n'); 1164 } 1165 else { 1166 } 1167 1168 } 1169 break; 1170 } 1171 default: 1172 { 1173 } 1174 } 1175 } 1176 if ( inputState.guessing==0 ) { 1177 newline(); 1178 } 1179 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 1180 _token = makeToken(_ttype); 1181 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 1182 } 1183 _returnToken = _token; 1184 } 1185 1186 public final void mBLOCK_COMMENT_BEGIN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 1187 int _ttype; Token _token=null; int _begin=text.length(); 1188 _ttype = BLOCK_COMMENT_BEGIN; 1189 int _saveIndex; 1190 Token content=null; 1191 1192 int startLine = -1; 1193 int startCol = -1; 1194 1195 1196 match("/*"); 1197 if ( inputState.guessing==0 ) { 1198 startLine = getLine(); startCol = getColumn() - 3; 1199 } 1200 mBLOCK_COMMENT_CONTENT(true); 1201 content=_returnToken; 1202 match("*/"); 1203 if ( inputState.guessing==0 ) { 1204 1205 mCommentListener.reportBlockComment("/*", startLine, startCol, 1206 getLine(), getColumn() - 2); 1207 text.setLength(_begin); text.append(content.getText()); 1208 1209 } 1210 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 1211 _token = makeToken(_ttype); 1212 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 1213 } 1214 _returnToken = _token; 1215 } 1216 1217 protected final void mBLOCK_COMMENT_CONTENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 1218 int _ttype; Token _token=null; int _begin=text.length(); 1219 _ttype = BLOCK_COMMENT_CONTENT; 1220 int _saveIndex; 1221 1222 { 1223 _loop480: 1224 do { 1225 if ((LA(1)=='\r') && (LA(2)=='\n') && ((LA(3) >= '\u0000' && LA(3) <= '\ufffe')) && ((LA(4) >= '\u0000' && LA(4) <= '\ufffe'))) { 1226 match('\r'); 1227 match('\n'); 1228 if ( inputState.guessing==0 ) { 1229 newline(); 1230 } 1231 } 1232 else if (((LA(1)=='*') && ((LA(2) >= '\u0000' && LA(2) <= '\ufffe')) && ((LA(3) >= '\u0000' && LA(3) <= '\ufffe')))&&( LA(2)!='/' )) { 1233 match('*'); 1234 } 1235 else if ((LA(1)=='\r') && ((LA(2) >= '\u0000' && LA(2) <= '\ufffe')) && ((LA(3) >= '\u0000' && LA(3) <= '\ufffe')) && (true)) { 1236 match('\r'); 1237 if ( inputState.guessing==0 ) { 1238 newline(); 1239 } 1240 } 1241 else if ((LA(1)=='\n')) { 1242 match('\n'); 1243 if ( inputState.guessing==0 ) { 1244 newline(); 1245 } 1246 } 1247 else if ((_tokenSet_2.member(LA(1)))) { 1248 { 1249 match(_tokenSet_2); 1250 } 1251 } 1252 else { 1253 break _loop480; 1254 } 1255 1256 } while (true); 1257 } 1258 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 1259 _token = makeToken(_ttype); 1260 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 1261 } 1262 _returnToken = _token; 1263 } 1264 1265 public final void mCHAR_LITERAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 1266 int _ttype; Token _token=null; int _begin=text.length(); 1267 _ttype = CHAR_LITERAL; 1268 int _saveIndex; 1269 1270 match('\''); 1271 { 1272 if ((LA(1)=='\\')) { 1273 mESC(false); 1274 } 1275 else if ((_tokenSet_3.member(LA(1)))) { 1276 matchNot('\''); 1277 } 1278 else { 1279 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 1280 } 1281 1282 } 1283 match('\''); 1284 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 1285 _token = makeToken(_ttype); 1286 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 1287 } 1288 _returnToken = _token; 1289 } 1290 1291 protected final void mESC(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 1292 int _ttype; Token _token=null; int _begin=text.length(); 1293 _ttype = ESC; 1294 int _saveIndex; 1295 1296 match('\\'); 1297 { 1298 switch ( LA(1)) { 1299 case 'u': 1300 { 1301 { 1302 int _cnt489=0; 1303 _loop489: 1304 do { 1305 if ((LA(1)=='u')) { 1306 match('u'); 1307 } 1308 else { 1309 if ( _cnt489>=1 ) { break _loop489; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());} 1310 } 1311 1312 _cnt489++; 1313 } while (true); 1314 } 1315 { 1316 if ((LA(1)=='0') && (LA(2)=='0') && (LA(3)=='5') && (LA(4)=='C'||LA(4)=='c')) { 1317 match('0'); 1318 match('0'); 1319 match('5'); 1320 { 1321 switch ( LA(1)) { 1322 case 'c': 1323 { 1324 match('c'); 1325 break; 1326 } 1327 case 'C': 1328 { 1329 match('C'); 1330 break; 1331 } 1332 default: 1333 { 1334 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 1335 } 1336 } 1337 } 1338 { 1339 if ((LA(1)=='\\') && (LA(2)=='u') && (_tokenSet_4.member(LA(3))) && (_tokenSet_4.member(LA(4)))) { 1340 match('\\'); 1341 { 1342 int _cnt494=0; 1343 _loop494: 1344 do { 1345 if ((LA(1)=='u')) { 1346 match('u'); 1347 } 1348 else { 1349 if ( _cnt494>=1 ) { break _loop494; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());} 1350 } 1351 1352 _cnt494++; 1353 } while (true); 1354 } 1355 mHEX_DIGIT(false); 1356 mHEX_DIGIT(false); 1357 mHEX_DIGIT(false); 1358 mHEX_DIGIT(false); 1359 } 1360 else if ((LA(1)=='"'||LA(1)=='\''||LA(1)=='0'||LA(1)=='1'||LA(1)=='2'||LA(1)=='3'||LA(1)=='4'||LA(1)=='5'||LA(1)=='6'||LA(1)=='7'||LA(1)=='\\'||LA(1)=='b'||LA(1)=='f'||LA(1)=='n'||LA(1)=='r'||LA(1)=='t') && ((LA(2) >= '\u0000' && LA(2) <= '\ufffe')) && (true) && (true)) { 1361 mSTD_ESC(false); 1362 } 1363 else { 1364 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 1365 } 1366 1367 } 1368 } 1369 else if ((_tokenSet_5.member(LA(1))) && (_tokenSet_5.member(LA(2))) && (_tokenSet_5.member(LA(3))) && (_tokenSet_5.member(LA(4)))) { 1370 mHEX_DIGIT(false); 1371 mHEX_DIGIT(false); 1372 mHEX_DIGIT(false); 1373 mHEX_DIGIT(false); 1374 } 1375 else { 1376 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 1377 } 1378 1379 } 1380 break; 1381 } 1382 case '"': case '\'': case '0': case '1': 1383 case '2': case '3': case '4': case '5': 1384 case '6': case '7': case '\\': case 'b': 1385 case 'f': case 'n': case 'r': case 't': 1386 { 1387 mSTD_ESC(false); 1388 break; 1389 } 1390 default: 1391 { 1392 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 1393 } 1394 } 1395 } 1396 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 1397 _token = makeToken(_ttype); 1398 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 1399 } 1400 _returnToken = _token; 1401 } 1402 1403 public final void mSTRING_LITERAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 1404 int _ttype; Token _token=null; int _begin=text.length(); 1405 _ttype = STRING_LITERAL; 1406 int _saveIndex; 1407 1408 match('"'); 1409 { 1410 _loop485: 1411 do { 1412 if ((LA(1)=='\\')) { 1413 mESC(false); 1414 } 1415 else if ((_tokenSet_6.member(LA(1)))) { 1416 matchNot('"'); 1417 } 1418 else { 1419 break _loop485; 1420 } 1421 1422 } while (true); 1423 } 1424 match('"'); 1425 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 1426 _token = makeToken(_ttype); 1427 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 1428 } 1429 _returnToken = _token; 1430 } 1431 1432 protected final void mHEX_DIGIT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 1433 int _ttype; Token _token=null; int _begin=text.length(); 1434 _ttype = HEX_DIGIT; 1435 int _saveIndex; 1436 1437 { 1438 switch ( LA(1)) { 1439 case '0': case '1': case '2': case '3': 1440 case '4': case '5': case '6': case '7': 1441 case '8': case '9': 1442 { 1443 matchRange('0','9'); 1444 break; 1445 } 1446 case 'A': case 'B': case 'C': case 'D': 1447 case 'E': case 'F': 1448 { 1449 matchRange('A','F'); 1450 break; 1451 } 1452 case 'a': case 'b': case 'c': case 'd': 1453 case 'e': case 'f': 1454 { 1455 matchRange('a','f'); 1456 break; 1457 } 1458 default: 1459 { 1460 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 1461 } 1462 } 1463 } 1464 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 1465 _token = makeToken(_ttype); 1466 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 1467 } 1468 _returnToken = _token; 1469 } 1470 1471 protected final void mSTD_ESC(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 1472 int _ttype; Token _token=null; int _begin=text.length(); 1473 _ttype = STD_ESC; 1474 int _saveIndex; 1475 1476 switch ( LA(1)) { 1477 case 'n': 1478 { 1479 match('n'); 1480 break; 1481 } 1482 case 'r': 1483 { 1484 match('r'); 1485 break; 1486 } 1487 case 't': 1488 { 1489 match('t'); 1490 break; 1491 } 1492 case 'b': 1493 { 1494 match('b'); 1495 break; 1496 } 1497 case 'f': 1498 { 1499 match('f'); 1500 break; 1501 } 1502 case '"': 1503 { 1504 match('"'); 1505 break; 1506 } 1507 case '\'': 1508 { 1509 match('\''); 1510 break; 1511 } 1512 case '\\': 1513 { 1514 match('\\'); 1515 break; 1516 } 1517 case '0': case '1': case '2': case '3': 1518 { 1519 { 1520 matchRange('0','3'); 1521 } 1522 { 1523 if (((LA(1) >= '0' && LA(1) <= '7')) && ((LA(2) >= '\u0000' && LA(2) <= '\ufffe')) && (true) && (true)) { 1524 { 1525 matchRange('0','7'); 1526 } 1527 { 1528 if (((LA(1) >= '0' && LA(1) <= '7')) && ((LA(2) >= '\u0000' && LA(2) <= '\ufffe')) && (true) && (true)) { 1529 matchRange('0','7'); 1530 } 1531 else if (((LA(1) >= '\u0000' && LA(1) <= '\ufffe')) && (true) && (true) && (true)) { 1532 } 1533 else { 1534 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 1535 } 1536 1537 } 1538 } 1539 else if (((LA(1) >= '\u0000' && LA(1) <= '\ufffe')) && (true) && (true) && (true)) { 1540 } 1541 else { 1542 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 1543 } 1544 1545 } 1546 break; 1547 } 1548 case '4': case '5': case '6': case '7': 1549 { 1550 { 1551 matchRange('4','7'); 1552 } 1553 { 1554 if (((LA(1) >= '0' && LA(1) <= '9')) && ((LA(2) >= '\u0000' && LA(2) <= '\ufffe')) && (true) && (true)) { 1555 { 1556 matchRange('0','9'); 1557 } 1558 } 1559 else if (((LA(1) >= '\u0000' && LA(1) <= '\ufffe')) && (true) && (true) && (true)) { 1560 } 1561 else { 1562 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 1563 } 1564 1565 } 1566 break; 1567 } 1568 default: 1569 { 1570 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 1571 } 1572 } 1573 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 1574 _token = makeToken(_ttype); 1575 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 1576 } 1577 _returnToken = _token; 1578 } 1579 1580 protected final void mBINARY_DIGIT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 1581 int _ttype; Token _token=null; int _begin=text.length(); 1582 _ttype = BINARY_DIGIT; 1583 int _saveIndex; 1584 1585 { 1586 switch ( LA(1)) { 1587 case '0': 1588 { 1589 match('0'); 1590 break; 1591 } 1592 case '1': 1593 { 1594 match('1'); 1595 break; 1596 } 1597 default: 1598 { 1599 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 1600 } 1601 } 1602 } 1603 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 1604 _token = makeToken(_ttype); 1605 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 1606 } 1607 _returnToken = _token; 1608 } 1609 1610 protected final void mID_START(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 1611 int _ttype; Token _token=null; int _begin=text.length(); 1612 _ttype = ID_START; 1613 int _saveIndex; 1614 1615 try { // for error handling 1616 switch ( LA(1)) { 1617 case '_': 1618 { 1619 match('_'); 1620 break; 1621 } 1622 case '$': 1623 { 1624 match('$'); 1625 break; 1626 } 1627 default: 1628 if ((_tokenSet_7.member(LA(1)))) { 1629 { 1630 if (!(Character.isJavaIdentifierStart(LA(1)))) 1631 throw new SemanticException("Character.isJavaIdentifierStart(LA(1))"); 1632 { 1633 match(_tokenSet_7); 1634 } 1635 } 1636 } 1637 else { 1638 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 1639 } 1640 } 1641 } 1642 catch (SemanticException ex) { 1643 if (inputState.guessing==0) { 1644 1645 throw new SemanticException( 1646 MessageFormat.format( 1647 "Unexpected character {0} in identifier", 1648 new Object[] {"0x" + Integer.toHexString(LA(1))}), 1649 getFilename(), getLine(), getColumn()); 1650 1651 } else { 1652 throw ex; 1653 } 1654 } 1655 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 1656 _token = makeToken(_ttype); 1657 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 1658 } 1659 _returnToken = _token; 1660 } 1661 1662 protected final void mID_PART(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 1663 int _ttype; Token _token=null; int _begin=text.length(); 1664 _ttype = ID_PART; 1665 int _saveIndex; 1666 1667 try { // for error handling 1668 switch ( LA(1)) { 1669 case '_': 1670 { 1671 match('_'); 1672 break; 1673 } 1674 case '$': 1675 { 1676 match('$'); 1677 break; 1678 } 1679 default: 1680 if ((_tokenSet_8.member(LA(1)))) { 1681 { 1682 if (!(Character.isJavaIdentifierPart(LA(1)))) 1683 throw new SemanticException("Character.isJavaIdentifierPart(LA(1))"); 1684 { 1685 match(_tokenSet_8); 1686 } 1687 } 1688 } 1689 else { 1690 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 1691 } 1692 } 1693 } 1694 catch (SemanticException ex) { 1695 if (inputState.guessing==0) { 1696 1697 throw new SemanticException( 1698 MessageFormat.format( 1699 "Unexpected character {0} in identifier", 1700 new Object[] {"0x" + Integer.toHexString(LA(1))}), 1701 getFilename(), getLine(), getColumn()); 1702 1703 } else { 1704 throw ex; 1705 } 1706 } 1707 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 1708 _token = makeToken(_ttype); 1709 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 1710 } 1711 _returnToken = _token; 1712 } 1713 1714 public final void mIDENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 1715 int _ttype; Token _token=null; int _begin=text.length(); 1716 _ttype = IDENT; 1717 int _saveIndex; 1718 1719 mID_START(false); 1720 { 1721 _loop515: 1722 do { 1723 if ((_tokenSet_9.member(LA(1)))) { 1724 mID_PART(false); 1725 } 1726 else { 1727 break _loop515; 1728 } 1729 1730 } while (true); 1731 } 1732 if ( inputState.guessing==0 ) { 1733 1734 if (mTreatAssertAsKeyword && "assert".equals(new String(text.getBuffer(),_begin,text.length()-_begin))) { 1735 _ttype = ASSERT; 1736 } 1737 if (mTreatEnumAsKeyword && "enum".equals(new String(text.getBuffer(),_begin,text.length()-_begin))) { 1738 _ttype = ENUM; 1739 } 1740 1741 } 1742 _ttype = testLiteralsTable(_ttype); 1743 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 1744 _token = makeToken(_ttype); 1745 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 1746 } 1747 _returnToken = _token; 1748 } 1749 1750 public final void mNUM_INT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 1751 int _ttype; Token _token=null; int _begin=text.length(); 1752 _ttype = NUM_INT; 1753 int _saveIndex; 1754 1755 boolean synPredMatched526 = false; 1756 if (((LA(1)=='0') && (LA(2)=='X'||LA(2)=='x') && (_tokenSet_10.member(LA(3))) && (_tokenSet_11.member(LA(4))))) { 1757 int _m526 = mark(); 1758 synPredMatched526 = true; 1759 inputState.guessing++; 1760 try { 1761 { 1762 mHEX_DOUBLE_LITERAL(false); 1763 } 1764 } 1765 catch (RecognitionException pe) { 1766 synPredMatched526 = false; 1767 } 1768 rewind(_m526); 1769inputState.guessing--; 1770 } 1771 if ( synPredMatched526 ) { 1772 mHEX_DOUBLE_LITERAL(false); 1773 if ( inputState.guessing==0 ) { 1774 _ttype = NUM_DOUBLE; 1775 } 1776 } 1777 else { 1778 boolean synPredMatched528 = false; 1779 if (((LA(1)=='0') && (LA(2)=='X'||LA(2)=='x') && (_tokenSet_10.member(LA(3))) && (_tokenSet_11.member(LA(4))))) { 1780 int _m528 = mark(); 1781 synPredMatched528 = true; 1782 inputState.guessing++; 1783 try { 1784 { 1785 mHEX_FLOAT_LITERAL(false); 1786 } 1787 } 1788 catch (RecognitionException pe) { 1789 synPredMatched528 = false; 1790 } 1791 rewind(_m528); 1792inputState.guessing--; 1793 } 1794 if ( synPredMatched528 ) { 1795 mHEX_FLOAT_LITERAL(false); 1796 if ( inputState.guessing==0 ) { 1797 _ttype = NUM_FLOAT; 1798 } 1799 } 1800 else { 1801 boolean synPredMatched518 = false; 1802 if (((LA(1)=='.') && (LA(2)=='.') && (LA(3)=='.') && (true))) { 1803 int _m518 = mark(); 1804 synPredMatched518 = true; 1805 inputState.guessing++; 1806 try { 1807 { 1808 mELLIPSIS(false); 1809 } 1810 } 1811 catch (RecognitionException pe) { 1812 synPredMatched518 = false; 1813 } 1814 rewind(_m518); 1815inputState.guessing--; 1816 } 1817 if ( synPredMatched518 ) { 1818 mELLIPSIS(false); 1819 if ( inputState.guessing==0 ) { 1820 _ttype = ELLIPSIS; 1821 } 1822 } 1823 else { 1824 boolean synPredMatched522 = false; 1825 if (((LA(1)=='.'||LA(1)=='0'||LA(1)=='1'||LA(1)=='2'||LA(1)=='3'||LA(1)=='4'||LA(1)=='5'||LA(1)=='6'||LA(1)=='7'||LA(1)=='8'||LA(1)=='9') && (LA(2)=='.'||LA(2)=='0'||LA(2)=='1'||LA(2)=='2'||LA(2)=='3'||LA(2)=='4'||LA(2)=='5'||LA(2)=='6'||LA(2)=='7'||LA(2)=='8'||LA(2)=='9'||LA(2)=='D'||LA(2)=='E'||LA(2)=='_'||LA(2)=='d'||LA(2)=='e') && (true) && (true))) { 1826 int _m522 = mark(); 1827 synPredMatched522 = true; 1828 inputState.guessing++; 1829 try { 1830 { 1831 mDOUBLE_LITERAL(false); 1832 } 1833 } 1834 catch (RecognitionException pe) { 1835 synPredMatched522 = false; 1836 } 1837 rewind(_m522); 1838inputState.guessing--; 1839 } 1840 if ( synPredMatched522 ) { 1841 mDOUBLE_LITERAL(false); 1842 if ( inputState.guessing==0 ) { 1843 _ttype = NUM_DOUBLE; 1844 } 1845 } 1846 else { 1847 boolean synPredMatched524 = false; 1848 if (((LA(1)=='.'||LA(1)=='0'||LA(1)=='1'||LA(1)=='2'||LA(1)=='3'||LA(1)=='4'||LA(1)=='5'||LA(1)=='6'||LA(1)=='7'||LA(1)=='8'||LA(1)=='9') && (LA(2)=='.'||LA(2)=='0'||LA(2)=='1'||LA(2)=='2'||LA(2)=='3'||LA(2)=='4'||LA(2)=='5'||LA(2)=='6'||LA(2)=='7'||LA(2)=='8'||LA(2)=='9'||LA(2)=='E'||LA(2)=='F'||LA(2)=='_'||LA(2)=='e'||LA(2)=='f') && (true) && (true))) { 1849 int _m524 = mark(); 1850 synPredMatched524 = true; 1851 inputState.guessing++; 1852 try { 1853 { 1854 mFLOAT_LITERAL(false); 1855 } 1856 } 1857 catch (RecognitionException pe) { 1858 synPredMatched524 = false; 1859 } 1860 rewind(_m524); 1861inputState.guessing--; 1862 } 1863 if ( synPredMatched524 ) { 1864 mFLOAT_LITERAL(false); 1865 if ( inputState.guessing==0 ) { 1866 _ttype = NUM_FLOAT; 1867 } 1868 } 1869 else { 1870 boolean synPredMatched530 = false; 1871 if ((((LA(1) >= '0' && LA(1) <= '9')) && (LA(2)=='0'||LA(2)=='1'||LA(2)=='2'||LA(2)=='3'||LA(2)=='4'||LA(2)=='5'||LA(2)=='6'||LA(2)=='7'||LA(2)=='8'||LA(2)=='9'||LA(2)=='B'||LA(2)=='L'||LA(2)=='X'||LA(2)=='_'||LA(2)=='b'||LA(2)=='l'||LA(2)=='x') && (true) && (true))) { 1872 int _m530 = mark(); 1873 synPredMatched530 = true; 1874 inputState.guessing++; 1875 try { 1876 { 1877 mLONG_LITERAL(false); 1878 } 1879 } 1880 catch (RecognitionException pe) { 1881 synPredMatched530 = false; 1882 } 1883 rewind(_m530); 1884inputState.guessing--; 1885 } 1886 if ( synPredMatched530 ) { 1887 mLONG_LITERAL(false); 1888 if ( inputState.guessing==0 ) { 1889 _ttype = NUM_LONG; 1890 } 1891 } 1892 else { 1893 boolean synPredMatched520 = false; 1894 if (((LA(1)=='.') && (true))) { 1895 int _m520 = mark(); 1896 synPredMatched520 = true; 1897 inputState.guessing++; 1898 try { 1899 { 1900 mDOT(false); 1901 } 1902 } 1903 catch (RecognitionException pe) { 1904 synPredMatched520 = false; 1905 } 1906 rewind(_m520); 1907inputState.guessing--; 1908 } 1909 if ( synPredMatched520 ) { 1910 mDOT(false); 1911 if ( inputState.guessing==0 ) { 1912 _ttype = DOT; 1913 } 1914 } 1915 else { 1916 boolean synPredMatched532 = false; 1917 if ((((LA(1) >= '0' && LA(1) <= '9')) && (true) && (true) && (true))) { 1918 int _m532 = mark(); 1919 synPredMatched532 = true; 1920 inputState.guessing++; 1921 try { 1922 { 1923 mINT_LITERAL(false); 1924 } 1925 } 1926 catch (RecognitionException pe) { 1927 synPredMatched532 = false; 1928 } 1929 rewind(_m532); 1930inputState.guessing--; 1931 } 1932 if ( synPredMatched532 ) { 1933 mINT_LITERAL(false); 1934 if ( inputState.guessing==0 ) { 1935 _ttype = NUM_INT; 1936 } 1937 } 1938 else { 1939 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 1940 } 1941 }}}}}}} 1942 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 1943 _token = makeToken(_ttype); 1944 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 1945 } 1946 _returnToken = _token; 1947 } 1948 1949 protected final void mELLIPSIS(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 1950 int _ttype; Token _token=null; int _begin=text.length(); 1951 _ttype = ELLIPSIS; 1952 int _saveIndex; 1953 1954 match("..."); 1955 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 1956 _token = makeToken(_ttype); 1957 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 1958 } 1959 _returnToken = _token; 1960 } 1961 1962 protected final void mDOT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 1963 int _ttype; Token _token=null; int _begin=text.length(); 1964 _ttype = DOT; 1965 int _saveIndex; 1966 1967 match('.'); 1968 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 1969 _token = makeToken(_ttype); 1970 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 1971 } 1972 _returnToken = _token; 1973 } 1974 1975 protected final void mDOUBLE_LITERAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 1976 int _ttype; Token _token=null; int _begin=text.length(); 1977 _ttype = DOUBLE_LITERAL; 1978 int _saveIndex; 1979 1980 { 1981 boolean synPredMatched634 = false; 1982 if (((LA(1)=='.'||LA(1)=='0'||LA(1)=='1'||LA(1)=='2'||LA(1)=='3'||LA(1)=='4'||LA(1)=='5'||LA(1)=='6'||LA(1)=='7'||LA(1)=='8'||LA(1)=='9') && (LA(2)=='.'||LA(2)=='0'||LA(2)=='1'||LA(2)=='2'||LA(2)=='3'||LA(2)=='4'||LA(2)=='5'||LA(2)=='6'||LA(2)=='7'||LA(2)=='8'||LA(2)=='9'||LA(2)=='_') && (LA(3)=='.'||LA(3)=='0'||LA(3)=='1'||LA(3)=='2'||LA(3)=='3'||LA(3)=='4'||LA(3)=='5'||LA(3)=='6'||LA(3)=='7'||LA(3)=='8'||LA(3)=='9'||LA(3)=='D'||LA(3)=='E'||LA(3)=='_'||LA(3)=='d'||LA(3)=='e') && (true))) { 1983 int _m634 = mark(); 1984 synPredMatched634 = true; 1985 inputState.guessing++; 1986 try { 1987 { 1988 { 1989 switch ( LA(1)) { 1990 case '0': case '1': case '2': case '3': 1991 case '4': case '5': case '6': case '7': 1992 case '8': case '9': 1993 { 1994 { 1995 matchRange('0','9'); 1996 } 1997 { 1998 switch ( LA(1)) { 1999 case '0': case '1': case '2': case '3': 2000 case '4': case '5': case '6': case '7': 2001 case '8': case '9': case '_': 2002 { 2003 { 2004 _loop632: 2005 do { 2006 if (((LA(1) >= '0' && LA(1) <= '9')) && (LA(2)=='0'||LA(2)=='1'||LA(2)=='2'||LA(2)=='3'||LA(2)=='4'||LA(2)=='5'||LA(2)=='6'||LA(2)=='7'||LA(2)=='8'||LA(2)=='9'||LA(2)=='_')) { 2007 matchRange('0','9'); 2008 } 2009 else if ((LA(1)=='_')) { 2010 match('_'); 2011 } 2012 else { 2013 break _loop632; 2014 } 2015 2016 } while (true); 2017 } 2018 { 2019 matchRange('0','9'); 2020 } 2021 break; 2022 } 2023 case '.': 2024 { 2025 break; 2026 } 2027 default: 2028 { 2029 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 2030 } 2031 } 2032 } 2033 break; 2034 } 2035 case '.': 2036 { 2037 break; 2038 } 2039 default: 2040 { 2041 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 2042 } 2043 } 2044 } 2045 match('.'); 2046 } 2047 } 2048 catch (RecognitionException pe) { 2049 synPredMatched634 = false; 2050 } 2051 rewind(_m634); 2052inputState.guessing--; 2053 } 2054 if ( synPredMatched634 ) { 2055 { 2056 switch ( LA(1)) { 2057 case '0': case '1': case '2': case '3': 2058 case '4': case '5': case '6': case '7': 2059 case '8': case '9': 2060 { 2061 { 2062 { 2063 matchRange('0','9'); 2064 } 2065 { 2066 switch ( LA(1)) { 2067 case '0': case '1': case '2': case '3': 2068 case '4': case '5': case '6': case '7': 2069 case '8': case '9': case '_': 2070 { 2071 { 2072 _loop640: 2073 do { 2074 if (((LA(1) >= '0' && LA(1) <= '9')) && (LA(2)=='0'||LA(2)=='1'||LA(2)=='2'||LA(2)=='3'||LA(2)=='4'||LA(2)=='5'||LA(2)=='6'||LA(2)=='7'||LA(2)=='8'||LA(2)=='9'||LA(2)=='_')) { 2075 matchRange('0','9'); 2076 } 2077 else if ((LA(1)=='_')) { 2078 match('_'); 2079 } 2080 else { 2081 break _loop640; 2082 } 2083 2084 } while (true); 2085 } 2086 { 2087 matchRange('0','9'); 2088 } 2089 break; 2090 } 2091 case '.': 2092 { 2093 break; 2094 } 2095 default: 2096 { 2097 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 2098 } 2099 } 2100 } 2101 } 2102 match('.'); 2103 { 2104 switch ( LA(1)) { 2105 case '0': case '1': case '2': case '3': 2106 case '4': case '5': case '6': case '7': 2107 case '8': case '9': 2108 { 2109 { 2110 matchRange('0','9'); 2111 } 2112 { 2113 switch ( LA(1)) { 2114 case '0': case '1': case '2': case '3': 2115 case '4': case '5': case '6': case '7': 2116 case '8': case '9': case '_': 2117 { 2118 { 2119 _loop646: 2120 do { 2121 if (((LA(1) >= '0' && LA(1) <= '9')) && (LA(2)=='0'||LA(2)=='1'||LA(2)=='2'||LA(2)=='3'||LA(2)=='4'||LA(2)=='5'||LA(2)=='6'||LA(2)=='7'||LA(2)=='8'||LA(2)=='9'||LA(2)=='_')) { 2122 matchRange('0','9'); 2123 } 2124 else if ((LA(1)=='_')) { 2125 match('_'); 2126 } 2127 else { 2128 break _loop646; 2129 } 2130 2131 } while (true); 2132 } 2133 { 2134 matchRange('0','9'); 2135 } 2136 break; 2137 } 2138 case 'D': case 'E': case 'd': case 'e': 2139 { 2140 break; 2141 } 2142 default: 2143 { 2144 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 2145 } 2146 } 2147 } 2148 break; 2149 } 2150 case 'D': case 'E': case 'd': case 'e': 2151 { 2152 break; 2153 } 2154 default: 2155 { 2156 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 2157 } 2158 } 2159 } 2160 break; 2161 } 2162 case '.': 2163 { 2164 match('.'); 2165 { 2166 { 2167 matchRange('0','9'); 2168 } 2169 { 2170 switch ( LA(1)) { 2171 case '0': case '1': case '2': case '3': 2172 case '4': case '5': case '6': case '7': 2173 case '8': case '9': case '_': 2174 { 2175 { 2176 _loop652: 2177 do { 2178 if (((LA(1) >= '0' && LA(1) <= '9')) && (LA(2)=='0'||LA(2)=='1'||LA(2)=='2'||LA(2)=='3'||LA(2)=='4'||LA(2)=='5'||LA(2)=='6'||LA(2)=='7'||LA(2)=='8'||LA(2)=='9'||LA(2)=='_')) { 2179 matchRange('0','9'); 2180 } 2181 else if ((LA(1)=='_')) { 2182 match('_'); 2183 } 2184 else { 2185 break _loop652; 2186 } 2187 2188 } while (true); 2189 } 2190 { 2191 matchRange('0','9'); 2192 } 2193 break; 2194 } 2195 case 'D': case 'E': case 'd': case 'e': 2196 { 2197 break; 2198 } 2199 default: 2200 { 2201 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 2202 } 2203 } 2204 } 2205 } 2206 break; 2207 } 2208 default: 2209 { 2210 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 2211 } 2212 } 2213 } 2214 } 2215 else if (((LA(1) >= '0' && LA(1) <= '9')) && (LA(2)=='0'||LA(2)=='1'||LA(2)=='2'||LA(2)=='3'||LA(2)=='4'||LA(2)=='5'||LA(2)=='6'||LA(2)=='7'||LA(2)=='8'||LA(2)=='9'||LA(2)=='D'||LA(2)=='E'||LA(2)=='_'||LA(2)=='d'||LA(2)=='e') && (true) && (true)) { 2216 { 2217 { 2218 matchRange('0','9'); 2219 } 2220 { 2221 switch ( LA(1)) { 2222 case '0': case '1': case '2': case '3': 2223 case '4': case '5': case '6': case '7': 2224 case '8': case '9': case '_': 2225 { 2226 { 2227 _loop658: 2228 do { 2229 if (((LA(1) >= '0' && LA(1) <= '9')) && (LA(2)=='0'||LA(2)=='1'||LA(2)=='2'||LA(2)=='3'||LA(2)=='4'||LA(2)=='5'||LA(2)=='6'||LA(2)=='7'||LA(2)=='8'||LA(2)=='9'||LA(2)=='_')) { 2230 matchRange('0','9'); 2231 } 2232 else if ((LA(1)=='_')) { 2233 match('_'); 2234 } 2235 else { 2236 break _loop658; 2237 } 2238 2239 } while (true); 2240 } 2241 { 2242 matchRange('0','9'); 2243 } 2244 break; 2245 } 2246 case 'D': case 'E': case 'd': case 'e': 2247 { 2248 break; 2249 } 2250 default: 2251 { 2252 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 2253 } 2254 } 2255 } 2256 } 2257 } 2258 else { 2259 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 2260 } 2261 2262 } 2263 { 2264 switch ( LA(1)) { 2265 case 'E': case 'e': 2266 { 2267 mEXPONENT(false); 2268 break; 2269 } 2270 case 'D': case 'd': 2271 { 2272 break; 2273 } 2274 default: 2275 { 2276 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 2277 } 2278 } 2279 } 2280 { 2281 switch ( LA(1)) { 2282 case 'd': 2283 { 2284 match('d'); 2285 break; 2286 } 2287 case 'D': 2288 { 2289 match('D'); 2290 break; 2291 } 2292 default: 2293 { 2294 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 2295 } 2296 } 2297 } 2298 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 2299 _token = makeToken(_ttype); 2300 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 2301 } 2302 _returnToken = _token; 2303 } 2304 2305 protected final void mFLOAT_LITERAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 2306 int _ttype; Token _token=null; int _begin=text.length(); 2307 _ttype = FLOAT_LITERAL; 2308 int _saveIndex; 2309 2310 { 2311 boolean synPredMatched593 = false; 2312 if (((LA(1)=='.'||LA(1)=='0'||LA(1)=='1'||LA(1)=='2'||LA(1)=='3'||LA(1)=='4'||LA(1)=='5'||LA(1)=='6'||LA(1)=='7'||LA(1)=='8'||LA(1)=='9') && (LA(2)=='.'||LA(2)=='0'||LA(2)=='1'||LA(2)=='2'||LA(2)=='3'||LA(2)=='4'||LA(2)=='5'||LA(2)=='6'||LA(2)=='7'||LA(2)=='8'||LA(2)=='9'||LA(2)=='_') && (true) && (true))) { 2313 int _m593 = mark(); 2314 synPredMatched593 = true; 2315 inputState.guessing++; 2316 try { 2317 { 2318 { 2319 switch ( LA(1)) { 2320 case '0': case '1': case '2': case '3': 2321 case '4': case '5': case '6': case '7': 2322 case '8': case '9': 2323 { 2324 { 2325 matchRange('0','9'); 2326 } 2327 { 2328 switch ( LA(1)) { 2329 case '0': case '1': case '2': case '3': 2330 case '4': case '5': case '6': case '7': 2331 case '8': case '9': case '_': 2332 { 2333 { 2334 _loop591: 2335 do { 2336 if (((LA(1) >= '0' && LA(1) <= '9')) && (LA(2)=='0'||LA(2)=='1'||LA(2)=='2'||LA(2)=='3'||LA(2)=='4'||LA(2)=='5'||LA(2)=='6'||LA(2)=='7'||LA(2)=='8'||LA(2)=='9'||LA(2)=='_')) { 2337 matchRange('0','9'); 2338 } 2339 else if ((LA(1)=='_')) { 2340 match('_'); 2341 } 2342 else { 2343 break _loop591; 2344 } 2345 2346 } while (true); 2347 } 2348 { 2349 matchRange('0','9'); 2350 } 2351 break; 2352 } 2353 case '.': 2354 { 2355 break; 2356 } 2357 default: 2358 { 2359 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 2360 } 2361 } 2362 } 2363 break; 2364 } 2365 case '.': 2366 { 2367 break; 2368 } 2369 default: 2370 { 2371 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 2372 } 2373 } 2374 } 2375 match('.'); 2376 } 2377 } 2378 catch (RecognitionException pe) { 2379 synPredMatched593 = false; 2380 } 2381 rewind(_m593); 2382inputState.guessing--; 2383 } 2384 if ( synPredMatched593 ) { 2385 { 2386 switch ( LA(1)) { 2387 case '0': case '1': case '2': case '3': 2388 case '4': case '5': case '6': case '7': 2389 case '8': case '9': 2390 { 2391 { 2392 { 2393 matchRange('0','9'); 2394 } 2395 { 2396 switch ( LA(1)) { 2397 case '0': case '1': case '2': case '3': 2398 case '4': case '5': case '6': case '7': 2399 case '8': case '9': case '_': 2400 { 2401 { 2402 _loop599: 2403 do { 2404 if (((LA(1) >= '0' && LA(1) <= '9')) && (LA(2)=='0'||LA(2)=='1'||LA(2)=='2'||LA(2)=='3'||LA(2)=='4'||LA(2)=='5'||LA(2)=='6'||LA(2)=='7'||LA(2)=='8'||LA(2)=='9'||LA(2)=='_')) { 2405 matchRange('0','9'); 2406 } 2407 else if ((LA(1)=='_')) { 2408 match('_'); 2409 } 2410 else { 2411 break _loop599; 2412 } 2413 2414 } while (true); 2415 } 2416 { 2417 matchRange('0','9'); 2418 } 2419 break; 2420 } 2421 case '.': 2422 { 2423 break; 2424 } 2425 default: 2426 { 2427 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 2428 } 2429 } 2430 } 2431 } 2432 match('.'); 2433 { 2434 if (((LA(1) >= '0' && LA(1) <= '9'))) { 2435 { 2436 matchRange('0','9'); 2437 } 2438 { 2439 if ((LA(1)=='0'||LA(1)=='1'||LA(1)=='2'||LA(1)=='3'||LA(1)=='4'||LA(1)=='5'||LA(1)=='6'||LA(1)=='7'||LA(1)=='8'||LA(1)=='9'||LA(1)=='_')) { 2440 { 2441 _loop605: 2442 do { 2443 if (((LA(1) >= '0' && LA(1) <= '9')) && (LA(2)=='0'||LA(2)=='1'||LA(2)=='2'||LA(2)=='3'||LA(2)=='4'||LA(2)=='5'||LA(2)=='6'||LA(2)=='7'||LA(2)=='8'||LA(2)=='9'||LA(2)=='_')) { 2444 matchRange('0','9'); 2445 } 2446 else if ((LA(1)=='_')) { 2447 match('_'); 2448 } 2449 else { 2450 break _loop605; 2451 } 2452 2453 } while (true); 2454 } 2455 { 2456 matchRange('0','9'); 2457 } 2458 } 2459 else { 2460 } 2461 2462 } 2463 } 2464 else { 2465 } 2466 2467 } 2468 break; 2469 } 2470 case '.': 2471 { 2472 match('.'); 2473 { 2474 { 2475 matchRange('0','9'); 2476 } 2477 { 2478 if ((LA(1)=='0'||LA(1)=='1'||LA(1)=='2'||LA(1)=='3'||LA(1)=='4'||LA(1)=='5'||LA(1)=='6'||LA(1)=='7'||LA(1)=='8'||LA(1)=='9'||LA(1)=='_')) { 2479 { 2480 _loop611: 2481 do { 2482 if (((LA(1) >= '0' && LA(1) <= '9')) && (LA(2)=='0'||LA(2)=='1'||LA(2)=='2'||LA(2)=='3'||LA(2)=='4'||LA(2)=='5'||LA(2)=='6'||LA(2)=='7'||LA(2)=='8'||LA(2)=='9'||LA(2)=='_')) { 2483 matchRange('0','9'); 2484 } 2485 else if ((LA(1)=='_')) { 2486 match('_'); 2487 } 2488 else { 2489 break _loop611; 2490 } 2491 2492 } while (true); 2493 } 2494 { 2495 matchRange('0','9'); 2496 } 2497 } 2498 else { 2499 } 2500 2501 } 2502 } 2503 break; 2504 } 2505 default: 2506 { 2507 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 2508 } 2509 } 2510 } 2511 { 2512 if ((LA(1)=='E'||LA(1)=='e')) { 2513 mEXPONENT(false); 2514 } 2515 else { 2516 } 2517 2518 } 2519 { 2520 switch ( LA(1)) { 2521 case 'f': 2522 { 2523 match('f'); 2524 break; 2525 } 2526 case 'F': 2527 { 2528 match('F'); 2529 break; 2530 } 2531 default: 2532 { 2533 } 2534 } 2535 } 2536 } 2537 else if (((LA(1) >= '0' && LA(1) <= '9')) && (LA(2)=='0'||LA(2)=='1'||LA(2)=='2'||LA(2)=='3'||LA(2)=='4'||LA(2)=='5'||LA(2)=='6'||LA(2)=='7'||LA(2)=='8'||LA(2)=='9'||LA(2)=='E'||LA(2)=='F'||LA(2)=='_'||LA(2)=='e'||LA(2)=='f') && (true) && (true)) { 2538 { 2539 { 2540 matchRange('0','9'); 2541 } 2542 { 2543 switch ( LA(1)) { 2544 case '0': case '1': case '2': case '3': 2545 case '4': case '5': case '6': case '7': 2546 case '8': case '9': case '_': 2547 { 2548 { 2549 _loop619: 2550 do { 2551 if (((LA(1) >= '0' && LA(1) <= '9')) && (LA(2)=='0'||LA(2)=='1'||LA(2)=='2'||LA(2)=='3'||LA(2)=='4'||LA(2)=='5'||LA(2)=='6'||LA(2)=='7'||LA(2)=='8'||LA(2)=='9'||LA(2)=='_')) { 2552 matchRange('0','9'); 2553 } 2554 else if ((LA(1)=='_')) { 2555 match('_'); 2556 } 2557 else { 2558 break _loop619; 2559 } 2560 2561 } while (true); 2562 } 2563 { 2564 matchRange('0','9'); 2565 } 2566 break; 2567 } 2568 case 'E': case 'F': case 'e': case 'f': 2569 { 2570 break; 2571 } 2572 default: 2573 { 2574 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 2575 } 2576 } 2577 } 2578 } 2579 { 2580 switch ( LA(1)) { 2581 case 'E': case 'e': 2582 { 2583 { 2584 mEXPONENT(false); 2585 { 2586 switch ( LA(1)) { 2587 case 'f': 2588 { 2589 match('f'); 2590 break; 2591 } 2592 case 'F': 2593 { 2594 match('F'); 2595 break; 2596 } 2597 default: 2598 { 2599 } 2600 } 2601 } 2602 } 2603 break; 2604 } 2605 case 'F': case 'f': 2606 { 2607 { 2608 switch ( LA(1)) { 2609 case 'f': 2610 { 2611 match('f'); 2612 break; 2613 } 2614 case 'F': 2615 { 2616 match('F'); 2617 break; 2618 } 2619 default: 2620 { 2621 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 2622 } 2623 } 2624 } 2625 break; 2626 } 2627 default: 2628 { 2629 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 2630 } 2631 } 2632 } 2633 } 2634 else { 2635 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 2636 } 2637 2638 } 2639 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 2640 _token = makeToken(_ttype); 2641 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 2642 } 2643 _returnToken = _token; 2644 } 2645 2646 protected final void mHEX_DOUBLE_LITERAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 2647 int _ttype; Token _token=null; int _begin=text.length(); 2648 _ttype = HEX_DOUBLE_LITERAL; 2649 int _saveIndex; 2650 2651 match('0'); 2652 { 2653 switch ( LA(1)) { 2654 case 'x': 2655 { 2656 match('x'); 2657 break; 2658 } 2659 case 'X': 2660 { 2661 match('X'); 2662 break; 2663 } 2664 default: 2665 { 2666 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 2667 } 2668 } 2669 } 2670 { 2671 boolean synPredMatched709 = false; 2672 if (((_tokenSet_10.member(LA(1))) && (_tokenSet_12.member(LA(2))) && (_tokenSet_11.member(LA(3))) && (_tokenSet_13.member(LA(4))))) { 2673 int _m709 = mark(); 2674 synPredMatched709 = true; 2675 inputState.guessing++; 2676 try { 2677 { 2678 { 2679 switch ( LA(1)) { 2680 case '0': case '1': case '2': case '3': 2681 case '4': case '5': case '6': case '7': 2682 case '8': case '9': case 'A': case 'B': 2683 case 'C': case 'D': case 'E': case 'F': 2684 case 'a': case 'b': case 'c': case 'd': 2685 case 'e': case 'f': 2686 { 2687 { 2688 mHEX_DIGIT(false); 2689 } 2690 { 2691 switch ( LA(1)) { 2692 case '0': case '1': case '2': case '3': 2693 case '4': case '5': case '6': case '7': 2694 case '8': case '9': case 'A': case 'B': 2695 case 'C': case 'D': case 'E': case 'F': 2696 case '_': case 'a': case 'b': case 'c': 2697 case 'd': case 'e': case 'f': 2698 { 2699 { 2700 _loop707: 2701 do { 2702 if ((_tokenSet_5.member(LA(1))) && (_tokenSet_14.member(LA(2)))) { 2703 mHEX_DIGIT(false); 2704 } 2705 else if ((LA(1)=='_')) { 2706 match('_'); 2707 } 2708 else { 2709 break _loop707; 2710 } 2711 2712 } while (true); 2713 } 2714 { 2715 mHEX_DIGIT(false); 2716 } 2717 break; 2718 } 2719 case '.': 2720 { 2721 break; 2722 } 2723 default: 2724 { 2725 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 2726 } 2727 } 2728 } 2729 break; 2730 } 2731 case '.': 2732 { 2733 break; 2734 } 2735 default: 2736 { 2737 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 2738 } 2739 } 2740 } 2741 match('.'); 2742 } 2743 } 2744 catch (RecognitionException pe) { 2745 synPredMatched709 = false; 2746 } 2747 rewind(_m709); 2748inputState.guessing--; 2749 } 2750 if ( synPredMatched709 ) { 2751 { 2752 switch ( LA(1)) { 2753 case '0': case '1': case '2': case '3': 2754 case '4': case '5': case '6': case '7': 2755 case '8': case '9': case 'A': case 'B': 2756 case 'C': case 'D': case 'E': case 'F': 2757 case 'a': case 'b': case 'c': case 'd': 2758 case 'e': case 'f': 2759 { 2760 { 2761 { 2762 mHEX_DIGIT(false); 2763 } 2764 { 2765 switch ( LA(1)) { 2766 case '0': case '1': case '2': case '3': 2767 case '4': case '5': case '6': case '7': 2768 case '8': case '9': case 'A': case 'B': 2769 case 'C': case 'D': case 'E': case 'F': 2770 case '_': case 'a': case 'b': case 'c': 2771 case 'd': case 'e': case 'f': 2772 { 2773 { 2774 _loop715: 2775 do { 2776 if ((_tokenSet_5.member(LA(1))) && (_tokenSet_14.member(LA(2)))) { 2777 mHEX_DIGIT(false); 2778 } 2779 else if ((LA(1)=='_')) { 2780 match('_'); 2781 } 2782 else { 2783 break _loop715; 2784 } 2785 2786 } while (true); 2787 } 2788 { 2789 mHEX_DIGIT(false); 2790 } 2791 break; 2792 } 2793 case '.': 2794 { 2795 break; 2796 } 2797 default: 2798 { 2799 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 2800 } 2801 } 2802 } 2803 } 2804 match('.'); 2805 { 2806 switch ( LA(1)) { 2807 case '0': case '1': case '2': case '3': 2808 case '4': case '5': case '6': case '7': 2809 case '8': case '9': case 'A': case 'B': 2810 case 'C': case 'D': case 'E': case 'F': 2811 case 'a': case 'b': case 'c': case 'd': 2812 case 'e': case 'f': 2813 { 2814 { 2815 mHEX_DIGIT(false); 2816 } 2817 { 2818 switch ( LA(1)) { 2819 case '0': case '1': case '2': case '3': 2820 case '4': case '5': case '6': case '7': 2821 case '8': case '9': case 'A': case 'B': 2822 case 'C': case 'D': case 'E': case 'F': 2823 case '_': case 'a': case 'b': case 'c': 2824 case 'd': case 'e': case 'f': 2825 { 2826 { 2827 _loop721: 2828 do { 2829 if ((_tokenSet_5.member(LA(1))) && (_tokenSet_14.member(LA(2)))) { 2830 mHEX_DIGIT(false); 2831 } 2832 else if ((LA(1)=='_')) { 2833 match('_'); 2834 } 2835 else { 2836 break _loop721; 2837 } 2838 2839 } while (true); 2840 } 2841 { 2842 mHEX_DIGIT(false); 2843 } 2844 break; 2845 } 2846 case 'P': case 'p': 2847 { 2848 break; 2849 } 2850 default: 2851 { 2852 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 2853 } 2854 } 2855 } 2856 break; 2857 } 2858 case 'P': case 'p': 2859 { 2860 break; 2861 } 2862 default: 2863 { 2864 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 2865 } 2866 } 2867 } 2868 break; 2869 } 2870 case '.': 2871 { 2872 match('.'); 2873 { 2874 { 2875 mHEX_DIGIT(false); 2876 } 2877 { 2878 switch ( LA(1)) { 2879 case '0': case '1': case '2': case '3': 2880 case '4': case '5': case '6': case '7': 2881 case '8': case '9': case 'A': case 'B': 2882 case 'C': case 'D': case 'E': case 'F': 2883 case '_': case 'a': case 'b': case 'c': 2884 case 'd': case 'e': case 'f': 2885 { 2886 { 2887 _loop727: 2888 do { 2889 if ((_tokenSet_5.member(LA(1))) && (_tokenSet_14.member(LA(2)))) { 2890 mHEX_DIGIT(false); 2891 } 2892 else if ((LA(1)=='_')) { 2893 match('_'); 2894 } 2895 else { 2896 break _loop727; 2897 } 2898 2899 } while (true); 2900 } 2901 { 2902 mHEX_DIGIT(false); 2903 } 2904 break; 2905 } 2906 case 'P': case 'p': 2907 { 2908 break; 2909 } 2910 default: 2911 { 2912 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 2913 } 2914 } 2915 } 2916 } 2917 break; 2918 } 2919 default: 2920 { 2921 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 2922 } 2923 } 2924 } 2925 } 2926 else if ((_tokenSet_5.member(LA(1))) && (_tokenSet_15.member(LA(2))) && (_tokenSet_16.member(LA(3))) && (_tokenSet_16.member(LA(4)))) { 2927 { 2928 { 2929 mHEX_DIGIT(false); 2930 } 2931 { 2932 switch ( LA(1)) { 2933 case '0': case '1': case '2': case '3': 2934 case '4': case '5': case '6': case '7': 2935 case '8': case '9': case 'A': case 'B': 2936 case 'C': case 'D': case 'E': case 'F': 2937 case '_': case 'a': case 'b': case 'c': 2938 case 'd': case 'e': case 'f': 2939 { 2940 { 2941 _loop733: 2942 do { 2943 if ((_tokenSet_5.member(LA(1))) && (_tokenSet_14.member(LA(2)))) { 2944 mHEX_DIGIT(false); 2945 } 2946 else if ((LA(1)=='_')) { 2947 match('_'); 2948 } 2949 else { 2950 break _loop733; 2951 } 2952 2953 } while (true); 2954 } 2955 { 2956 mHEX_DIGIT(false); 2957 } 2958 break; 2959 } 2960 case 'P': case 'p': 2961 { 2962 break; 2963 } 2964 default: 2965 { 2966 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 2967 } 2968 } 2969 } 2970 } 2971 } 2972 else { 2973 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 2974 } 2975 2976 } 2977 mBINARY_EXPONENT(false); 2978 { 2979 switch ( LA(1)) { 2980 case 'd': 2981 { 2982 match('d'); 2983 break; 2984 } 2985 case 'D': 2986 { 2987 match('D'); 2988 break; 2989 } 2990 default: 2991 { 2992 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 2993 } 2994 } 2995 } 2996 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 2997 _token = makeToken(_ttype); 2998 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 2999 } 3000 _returnToken = _token; 3001 } 3002 3003 protected final void mHEX_FLOAT_LITERAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 3004 int _ttype; Token _token=null; int _begin=text.length(); 3005 _ttype = HEX_FLOAT_LITERAL; 3006 int _saveIndex; 3007 3008 match('0'); 3009 { 3010 switch ( LA(1)) { 3011 case 'x': 3012 { 3013 match('x'); 3014 break; 3015 } 3016 case 'X': 3017 { 3018 match('X'); 3019 break; 3020 } 3021 default: 3022 { 3023 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 3024 } 3025 } 3026 } 3027 { 3028 boolean synPredMatched672 = false; 3029 if (((_tokenSet_10.member(LA(1))) && (_tokenSet_12.member(LA(2))) && (_tokenSet_11.member(LA(3))) && (_tokenSet_13.member(LA(4))))) { 3030 int _m672 = mark(); 3031 synPredMatched672 = true; 3032 inputState.guessing++; 3033 try { 3034 { 3035 { 3036 switch ( LA(1)) { 3037 case '0': case '1': case '2': case '3': 3038 case '4': case '5': case '6': case '7': 3039 case '8': case '9': case 'A': case 'B': 3040 case 'C': case 'D': case 'E': case 'F': 3041 case 'a': case 'b': case 'c': case 'd': 3042 case 'e': case 'f': 3043 { 3044 { 3045 mHEX_DIGIT(false); 3046 } 3047 { 3048 switch ( LA(1)) { 3049 case '0': case '1': case '2': case '3': 3050 case '4': case '5': case '6': case '7': 3051 case '8': case '9': case 'A': case 'B': 3052 case 'C': case 'D': case 'E': case 'F': 3053 case '_': case 'a': case 'b': case 'c': 3054 case 'd': case 'e': case 'f': 3055 { 3056 { 3057 _loop670: 3058 do { 3059 if ((_tokenSet_5.member(LA(1))) && (_tokenSet_14.member(LA(2)))) { 3060 mHEX_DIGIT(false); 3061 } 3062 else if ((LA(1)=='_')) { 3063 match('_'); 3064 } 3065 else { 3066 break _loop670; 3067 } 3068 3069 } while (true); 3070 } 3071 { 3072 mHEX_DIGIT(false); 3073 } 3074 break; 3075 } 3076 case '.': 3077 { 3078 break; 3079 } 3080 default: 3081 { 3082 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 3083 } 3084 } 3085 } 3086 break; 3087 } 3088 case '.': 3089 { 3090 break; 3091 } 3092 default: 3093 { 3094 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 3095 } 3096 } 3097 } 3098 match('.'); 3099 } 3100 } 3101 catch (RecognitionException pe) { 3102 synPredMatched672 = false; 3103 } 3104 rewind(_m672); 3105inputState.guessing--; 3106 } 3107 if ( synPredMatched672 ) { 3108 { 3109 switch ( LA(1)) { 3110 case '0': case '1': case '2': case '3': 3111 case '4': case '5': case '6': case '7': 3112 case '8': case '9': case 'A': case 'B': 3113 case 'C': case 'D': case 'E': case 'F': 3114 case 'a': case 'b': case 'c': case 'd': 3115 case 'e': case 'f': 3116 { 3117 { 3118 { 3119 mHEX_DIGIT(false); 3120 } 3121 { 3122 switch ( LA(1)) { 3123 case '0': case '1': case '2': case '3': 3124 case '4': case '5': case '6': case '7': 3125 case '8': case '9': case 'A': case 'B': 3126 case 'C': case 'D': case 'E': case 'F': 3127 case '_': case 'a': case 'b': case 'c': 3128 case 'd': case 'e': case 'f': 3129 { 3130 { 3131 _loop678: 3132 do { 3133 if ((_tokenSet_5.member(LA(1))) && (_tokenSet_14.member(LA(2)))) { 3134 mHEX_DIGIT(false); 3135 } 3136 else if ((LA(1)=='_')) { 3137 match('_'); 3138 } 3139 else { 3140 break _loop678; 3141 } 3142 3143 } while (true); 3144 } 3145 { 3146 mHEX_DIGIT(false); 3147 } 3148 break; 3149 } 3150 case '.': 3151 { 3152 break; 3153 } 3154 default: 3155 { 3156 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 3157 } 3158 } 3159 } 3160 } 3161 match('.'); 3162 { 3163 switch ( LA(1)) { 3164 case '0': case '1': case '2': case '3': 3165 case '4': case '5': case '6': case '7': 3166 case '8': case '9': case 'A': case 'B': 3167 case 'C': case 'D': case 'E': case 'F': 3168 case 'a': case 'b': case 'c': case 'd': 3169 case 'e': case 'f': 3170 { 3171 { 3172 mHEX_DIGIT(false); 3173 } 3174 { 3175 switch ( LA(1)) { 3176 case '0': case '1': case '2': case '3': 3177 case '4': case '5': case '6': case '7': 3178 case '8': case '9': case 'A': case 'B': 3179 case 'C': case 'D': case 'E': case 'F': 3180 case '_': case 'a': case 'b': case 'c': 3181 case 'd': case 'e': case 'f': 3182 { 3183 { 3184 _loop684: 3185 do { 3186 if ((_tokenSet_5.member(LA(1))) && (_tokenSet_14.member(LA(2)))) { 3187 mHEX_DIGIT(false); 3188 } 3189 else if ((LA(1)=='_')) { 3190 match('_'); 3191 } 3192 else { 3193 break _loop684; 3194 } 3195 3196 } while (true); 3197 } 3198 { 3199 mHEX_DIGIT(false); 3200 } 3201 break; 3202 } 3203 case 'P': case 'p': 3204 { 3205 break; 3206 } 3207 default: 3208 { 3209 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 3210 } 3211 } 3212 } 3213 break; 3214 } 3215 case 'P': case 'p': 3216 { 3217 break; 3218 } 3219 default: 3220 { 3221 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 3222 } 3223 } 3224 } 3225 break; 3226 } 3227 case '.': 3228 { 3229 match('.'); 3230 { 3231 { 3232 mHEX_DIGIT(false); 3233 } 3234 { 3235 switch ( LA(1)) { 3236 case '0': case '1': case '2': case '3': 3237 case '4': case '5': case '6': case '7': 3238 case '8': case '9': case 'A': case 'B': 3239 case 'C': case 'D': case 'E': case 'F': 3240 case '_': case 'a': case 'b': case 'c': 3241 case 'd': case 'e': case 'f': 3242 { 3243 { 3244 _loop690: 3245 do { 3246 if ((_tokenSet_5.member(LA(1))) && (_tokenSet_14.member(LA(2)))) { 3247 mHEX_DIGIT(false); 3248 } 3249 else if ((LA(1)=='_')) { 3250 match('_'); 3251 } 3252 else { 3253 break _loop690; 3254 } 3255 3256 } while (true); 3257 } 3258 { 3259 mHEX_DIGIT(false); 3260 } 3261 break; 3262 } 3263 case 'P': case 'p': 3264 { 3265 break; 3266 } 3267 default: 3268 { 3269 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 3270 } 3271 } 3272 } 3273 } 3274 break; 3275 } 3276 default: 3277 { 3278 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 3279 } 3280 } 3281 } 3282 } 3283 else if ((_tokenSet_5.member(LA(1))) && (_tokenSet_15.member(LA(2))) && (_tokenSet_16.member(LA(3))) && (true)) { 3284 { 3285 { 3286 mHEX_DIGIT(false); 3287 } 3288 { 3289 switch ( LA(1)) { 3290 case '0': case '1': case '2': case '3': 3291 case '4': case '5': case '6': case '7': 3292 case '8': case '9': case 'A': case 'B': 3293 case 'C': case 'D': case 'E': case 'F': 3294 case '_': case 'a': case 'b': case 'c': 3295 case 'd': case 'e': case 'f': 3296 { 3297 { 3298 _loop696: 3299 do { 3300 if ((_tokenSet_5.member(LA(1))) && (_tokenSet_14.member(LA(2)))) { 3301 mHEX_DIGIT(false); 3302 } 3303 else if ((LA(1)=='_')) { 3304 match('_'); 3305 } 3306 else { 3307 break _loop696; 3308 } 3309 3310 } while (true); 3311 } 3312 { 3313 mHEX_DIGIT(false); 3314 } 3315 break; 3316 } 3317 case 'P': case 'p': 3318 { 3319 break; 3320 } 3321 default: 3322 { 3323 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 3324 } 3325 } 3326 } 3327 } 3328 } 3329 else { 3330 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 3331 } 3332 3333 } 3334 mBINARY_EXPONENT(false); 3335 { 3336 switch ( LA(1)) { 3337 case 'f': 3338 { 3339 match('f'); 3340 break; 3341 } 3342 case 'F': 3343 { 3344 match('F'); 3345 break; 3346 } 3347 default: 3348 { 3349 } 3350 } 3351 } 3352 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 3353 _token = makeToken(_ttype); 3354 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 3355 } 3356 _returnToken = _token; 3357 } 3358 3359 protected final void mLONG_LITERAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 3360 int _ttype; Token _token=null; int _begin=text.length(); 3361 _ttype = LONG_LITERAL; 3362 int _saveIndex; 3363 3364 { 3365 switch ( LA(1)) { 3366 case '0': 3367 { 3368 match('0'); 3369 { 3370 switch ( LA(1)) { 3371 case 'X': case 'x': 3372 { 3373 { 3374 switch ( LA(1)) { 3375 case 'x': 3376 { 3377 match('x'); 3378 break; 3379 } 3380 case 'X': 3381 { 3382 match('X'); 3383 break; 3384 } 3385 default: 3386 { 3387 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 3388 } 3389 } 3390 } 3391 { 3392 mHEX_DIGIT(false); 3393 } 3394 { 3395 switch ( LA(1)) { 3396 case '0': case '1': case '2': case '3': 3397 case '4': case '5': case '6': case '7': 3398 case '8': case '9': case 'A': case 'B': 3399 case 'C': case 'D': case 'E': case 'F': 3400 case '_': case 'a': case 'b': case 'c': 3401 case 'd': case 'e': case 'f': 3402 { 3403 { 3404 _loop565: 3405 do { 3406 if ((_tokenSet_5.member(LA(1))) && (_tokenSet_14.member(LA(2)))) { 3407 mHEX_DIGIT(false); 3408 } 3409 else if ((LA(1)=='_')) { 3410 match('_'); 3411 } 3412 else { 3413 break _loop565; 3414 } 3415 3416 } while (true); 3417 } 3418 { 3419 mHEX_DIGIT(false); 3420 } 3421 break; 3422 } 3423 case 'L': case 'l': 3424 { 3425 break; 3426 } 3427 default: 3428 { 3429 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 3430 } 3431 } 3432 } 3433 break; 3434 } 3435 case 'B': case 'b': 3436 { 3437 { 3438 switch ( LA(1)) { 3439 case 'b': 3440 { 3441 match('b'); 3442 break; 3443 } 3444 case 'B': 3445 { 3446 match('B'); 3447 break; 3448 } 3449 default: 3450 { 3451 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 3452 } 3453 } 3454 } 3455 { 3456 mBINARY_DIGIT(false); 3457 } 3458 { 3459 switch ( LA(1)) { 3460 case '0': case '1': case '_': 3461 { 3462 { 3463 _loop571: 3464 do { 3465 if ((LA(1)=='0'||LA(1)=='1') && (LA(2)=='0'||LA(2)=='1'||LA(2)=='_')) { 3466 mBINARY_DIGIT(false); 3467 } 3468 else if ((LA(1)=='_')) { 3469 match('_'); 3470 } 3471 else { 3472 break _loop571; 3473 } 3474 3475 } while (true); 3476 } 3477 { 3478 mBINARY_DIGIT(false); 3479 } 3480 break; 3481 } 3482 case 'L': case 'l': 3483 { 3484 break; 3485 } 3486 default: 3487 { 3488 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 3489 } 3490 } 3491 } 3492 break; 3493 } 3494 case '0': case '1': case '2': case '3': 3495 case '4': case '5': case '6': case '7': 3496 case 'L': case '_': case 'l': 3497 { 3498 { 3499 switch ( LA(1)) { 3500 case '0': case '1': case '2': case '3': 3501 case '4': case '5': case '6': case '7': 3502 case '_': 3503 { 3504 { 3505 _loop576: 3506 do { 3507 if (((LA(1) >= '0' && LA(1) <= '7')) && (LA(2)=='0'||LA(2)=='1'||LA(2)=='2'||LA(2)=='3'||LA(2)=='4'||LA(2)=='5'||LA(2)=='6'||LA(2)=='7'||LA(2)=='_')) { 3508 { 3509 matchRange('0','7'); 3510 } 3511 } 3512 else if ((LA(1)=='_')) { 3513 match('_'); 3514 } 3515 else { 3516 break _loop576; 3517 } 3518 3519 } while (true); 3520 } 3521 { 3522 matchRange('0','7'); 3523 } 3524 break; 3525 } 3526 case 'L': case 'l': 3527 { 3528 break; 3529 } 3530 default: 3531 { 3532 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 3533 } 3534 } 3535 } 3536 break; 3537 } 3538 default: 3539 { 3540 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 3541 } 3542 } 3543 } 3544 break; 3545 } 3546 case '1': case '2': case '3': case '4': 3547 case '5': case '6': case '7': case '8': 3548 case '9': 3549 { 3550 { 3551 matchRange('1','9'); 3552 } 3553 { 3554 switch ( LA(1)) { 3555 case '0': case '1': case '2': case '3': 3556 case '4': case '5': case '6': case '7': 3557 case '8': case '9': case '_': 3558 { 3559 { 3560 _loop581: 3561 do { 3562 if (((LA(1) >= '0' && LA(1) <= '9')) && (LA(2)=='0'||LA(2)=='1'||LA(2)=='2'||LA(2)=='3'||LA(2)=='4'||LA(2)=='5'||LA(2)=='6'||LA(2)=='7'||LA(2)=='8'||LA(2)=='9'||LA(2)=='_')) { 3563 matchRange('0','9'); 3564 } 3565 else if ((LA(1)=='_')) { 3566 match('_'); 3567 } 3568 else { 3569 break _loop581; 3570 } 3571 3572 } while (true); 3573 } 3574 { 3575 matchRange('0','9'); 3576 } 3577 break; 3578 } 3579 case 'L': case 'l': 3580 { 3581 break; 3582 } 3583 default: 3584 { 3585 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 3586 } 3587 } 3588 } 3589 break; 3590 } 3591 default: 3592 { 3593 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 3594 } 3595 } 3596 } 3597 { 3598 switch ( LA(1)) { 3599 case 'l': 3600 { 3601 match('l'); 3602 break; 3603 } 3604 case 'L': 3605 { 3606 match('L'); 3607 break; 3608 } 3609 default: 3610 { 3611 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 3612 } 3613 } 3614 } 3615 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 3616 _token = makeToken(_ttype); 3617 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 3618 } 3619 _returnToken = _token; 3620 } 3621 3622 protected final void mINT_LITERAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 3623 int _ttype; Token _token=null; int _begin=text.length(); 3624 _ttype = INT_LITERAL; 3625 int _saveIndex; 3626 3627 { 3628 switch ( LA(1)) { 3629 case '0': 3630 { 3631 match('0'); 3632 { 3633 switch ( LA(1)) { 3634 case 'X': case 'x': 3635 { 3636 { 3637 switch ( LA(1)) { 3638 case 'x': 3639 { 3640 match('x'); 3641 break; 3642 } 3643 case 'X': 3644 { 3645 match('X'); 3646 break; 3647 } 3648 default: 3649 { 3650 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 3651 } 3652 } 3653 } 3654 { 3655 mHEX_DIGIT(false); 3656 } 3657 { 3658 if ((_tokenSet_14.member(LA(1)))) { 3659 { 3660 _loop540: 3661 do { 3662 if ((_tokenSet_5.member(LA(1))) && (_tokenSet_14.member(LA(2)))) { 3663 mHEX_DIGIT(false); 3664 } 3665 else if ((LA(1)=='_')) { 3666 match('_'); 3667 } 3668 else { 3669 break _loop540; 3670 } 3671 3672 } while (true); 3673 } 3674 { 3675 mHEX_DIGIT(false); 3676 } 3677 } 3678 else { 3679 } 3680 3681 } 3682 break; 3683 } 3684 case 'B': case 'b': 3685 { 3686 { 3687 switch ( LA(1)) { 3688 case 'b': 3689 { 3690 match('b'); 3691 break; 3692 } 3693 case 'B': 3694 { 3695 match('B'); 3696 break; 3697 } 3698 default: 3699 { 3700 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 3701 } 3702 } 3703 } 3704 { 3705 mBINARY_DIGIT(false); 3706 } 3707 { 3708 if ((LA(1)=='0'||LA(1)=='1'||LA(1)=='_')) { 3709 { 3710 _loop546: 3711 do { 3712 if ((LA(1)=='0'||LA(1)=='1') && (LA(2)=='0'||LA(2)=='1'||LA(2)=='_')) { 3713 mBINARY_DIGIT(false); 3714 } 3715 else if ((LA(1)=='_')) { 3716 match('_'); 3717 } 3718 else { 3719 break _loop546; 3720 } 3721 3722 } while (true); 3723 } 3724 { 3725 mBINARY_DIGIT(false); 3726 } 3727 } 3728 else { 3729 } 3730 3731 } 3732 break; 3733 } 3734 default: 3735 { 3736 { 3737 if ((LA(1)=='0'||LA(1)=='1'||LA(1)=='2'||LA(1)=='3'||LA(1)=='4'||LA(1)=='5'||LA(1)=='6'||LA(1)=='7'||LA(1)=='_')) { 3738 { 3739 _loop551: 3740 do { 3741 if (((LA(1) >= '0' && LA(1) <= '7')) && (LA(2)=='0'||LA(2)=='1'||LA(2)=='2'||LA(2)=='3'||LA(2)=='4'||LA(2)=='5'||LA(2)=='6'||LA(2)=='7'||LA(2)=='_')) { 3742 { 3743 matchRange('0','7'); 3744 } 3745 } 3746 else if ((LA(1)=='_')) { 3747 match('_'); 3748 } 3749 else { 3750 break _loop551; 3751 } 3752 3753 } while (true); 3754 } 3755 { 3756 matchRange('0','7'); 3757 } 3758 } 3759 else { 3760 } 3761 3762 } 3763 } 3764 } 3765 } 3766 break; 3767 } 3768 case '1': case '2': case '3': case '4': 3769 case '5': case '6': case '7': case '8': 3770 case '9': 3771 { 3772 { 3773 matchRange('1','9'); 3774 } 3775 { 3776 if ((LA(1)=='0'||LA(1)=='1'||LA(1)=='2'||LA(1)=='3'||LA(1)=='4'||LA(1)=='5'||LA(1)=='6'||LA(1)=='7'||LA(1)=='8'||LA(1)=='9'||LA(1)=='_')) { 3777 { 3778 _loop556: 3779 do { 3780 if (((LA(1) >= '0' && LA(1) <= '9')) && (LA(2)=='0'||LA(2)=='1'||LA(2)=='2'||LA(2)=='3'||LA(2)=='4'||LA(2)=='5'||LA(2)=='6'||LA(2)=='7'||LA(2)=='8'||LA(2)=='9'||LA(2)=='_')) { 3781 matchRange('0','9'); 3782 } 3783 else if ((LA(1)=='_')) { 3784 match('_'); 3785 } 3786 else { 3787 break _loop556; 3788 } 3789 3790 } while (true); 3791 } 3792 { 3793 matchRange('0','9'); 3794 } 3795 } 3796 else { 3797 } 3798 3799 } 3800 break; 3801 } 3802 default: 3803 { 3804 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 3805 } 3806 } 3807 } 3808 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 3809 _token = makeToken(_ttype); 3810 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 3811 } 3812 _returnToken = _token; 3813 } 3814 3815 protected final void mEXPONENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 3816 int _ttype; Token _token=null; int _begin=text.length(); 3817 _ttype = EXPONENT; 3818 int _saveIndex; 3819 3820 { 3821 switch ( LA(1)) { 3822 case 'e': 3823 { 3824 match('e'); 3825 break; 3826 } 3827 case 'E': 3828 { 3829 match('E'); 3830 break; 3831 } 3832 default: 3833 { 3834 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 3835 } 3836 } 3837 } 3838 mSIGNED_INTEGER(false); 3839 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 3840 _token = makeToken(_ttype); 3841 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 3842 } 3843 _returnToken = _token; 3844 } 3845 3846 protected final void mBINARY_EXPONENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 3847 int _ttype; Token _token=null; int _begin=text.length(); 3848 _ttype = BINARY_EXPONENT; 3849 int _saveIndex; 3850 3851 { 3852 switch ( LA(1)) { 3853 case 'p': 3854 { 3855 match('p'); 3856 break; 3857 } 3858 case 'P': 3859 { 3860 match('P'); 3861 break; 3862 } 3863 default: 3864 { 3865 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 3866 } 3867 } 3868 } 3869 mSIGNED_INTEGER(false); 3870 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 3871 _token = makeToken(_ttype); 3872 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 3873 } 3874 _returnToken = _token; 3875 } 3876 3877 protected final void mSIGNED_INTEGER(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { 3878 int _ttype; Token _token=null; int _begin=text.length(); 3879 _ttype = SIGNED_INTEGER; 3880 int _saveIndex; 3881 3882 { 3883 switch ( LA(1)) { 3884 case '+': 3885 { 3886 match('+'); 3887 break; 3888 } 3889 case '-': 3890 { 3891 match('-'); 3892 break; 3893 } 3894 case '0': case '1': case '2': case '3': 3895 case '4': case '5': case '6': case '7': 3896 case '8': case '9': 3897 { 3898 break; 3899 } 3900 default: 3901 { 3902 throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); 3903 } 3904 } 3905 } 3906 { 3907 { 3908 matchRange('0','9'); 3909 } 3910 { 3911 if ((LA(1)=='0'||LA(1)=='1'||LA(1)=='2'||LA(1)=='3'||LA(1)=='4'||LA(1)=='5'||LA(1)=='6'||LA(1)=='7'||LA(1)=='8'||LA(1)=='9'||LA(1)=='_')) { 3912 { 3913 _loop746: 3914 do { 3915 if (((LA(1) >= '0' && LA(1) <= '9')) && (LA(2)=='0'||LA(2)=='1'||LA(2)=='2'||LA(2)=='3'||LA(2)=='4'||LA(2)=='5'||LA(2)=='6'||LA(2)=='7'||LA(2)=='8'||LA(2)=='9'||LA(2)=='_')) { 3916 matchRange('0','9'); 3917 } 3918 else if ((LA(1)=='_')) { 3919 match('_'); 3920 } 3921 else { 3922 break _loop746; 3923 } 3924 3925 } while (true); 3926 } 3927 { 3928 matchRange('0','9'); 3929 } 3930 } 3931 else { 3932 } 3933 3934 } 3935 } 3936 if ( _createToken && _token==null && _ttype!=Token.SKIP ) { 3937 _token = makeToken(_ttype); 3938 _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); 3939 } 3940 _returnToken = _token; 3941 } 3942 3943 3944 private static final long[] mk_tokenSet_0() { 3945 long[] data = new long[2048]; 3946 data[0]=107374168575L; 3947 data[1]=-8646911286564618242L; 3948 for (int i = 2; i<=1022; i++) { data[i]=-1L; } 3949 data[1023]=9223372036854775807L; 3950 return data; 3951 } 3952 public static final BitSet _tokenSet_0 = new BitSet(mk_tokenSet_0()); 3953 private static final long[] mk_tokenSet_1() { 3954 long[] data = new long[2048]; 3955 data[0]=-9217L; 3956 for (int i = 1; i<=1022; i++) { data[i]=-1L; } 3957 data[1023]=9223372036854775807L; 3958 return data; 3959 } 3960 public static final BitSet _tokenSet_1 = new BitSet(mk_tokenSet_1()); 3961 private static final long[] mk_tokenSet_2() { 3962 long[] data = new long[2048]; 3963 data[0]=-4398046520321L; 3964 for (int i = 1; i<=1022; i++) { data[i]=-1L; } 3965 data[1023]=9223372036854775807L; 3966 return data; 3967 } 3968 public static final BitSet _tokenSet_2 = new BitSet(mk_tokenSet_2()); 3969 private static final long[] mk_tokenSet_3() { 3970 long[] data = new long[2048]; 3971 data[0]=-549755813889L; 3972 data[1]=-268435457L; 3973 for (int i = 2; i<=1022; i++) { data[i]=-1L; } 3974 data[1023]=9223372036854775807L; 3975 return data; 3976 } 3977 public static final BitSet _tokenSet_3 = new BitSet(mk_tokenSet_3()); 3978 private static final long[] mk_tokenSet_4() { 3979 long[] data = new long[1025]; 3980 data[0]=287948901175001088L; 3981 data[1]=9007740420620414L; 3982 return data; 3983 } 3984 public static final BitSet _tokenSet_4 = new BitSet(mk_tokenSet_4()); 3985 private static final long[] mk_tokenSet_5() { 3986 long[] data = new long[1025]; 3987 data[0]=287948901175001088L; 3988 data[1]=541165879422L; 3989 return data; 3990 } 3991 public static final BitSet _tokenSet_5 = new BitSet(mk_tokenSet_5()); 3992 private static final long[] mk_tokenSet_6() { 3993 long[] data = new long[2048]; 3994 data[0]=-17179869185L; 3995 data[1]=-268435457L; 3996 for (int i = 2; i<=1022; i++) { data[i]=-1L; } 3997 data[1023]=9223372036854775807L; 3998 return data; 3999 } 4000 public static final BitSet _tokenSet_6 = new BitSet(mk_tokenSet_6()); 4001 private static final long[] mk_tokenSet_7() { 4002 long[] data = new long[2048]; 4003 data[0]=38654691839L; 4004 data[1]=-8646911288712101890L; 4005 for (int i = 2; i<=1022; i++) { data[i]=-1L; } 4006 data[1023]=9223372036854775807L; 4007 return data; 4008 } 4009 public static final BitSet _tokenSet_7 = new BitSet(mk_tokenSet_7()); 4010 private static final long[] mk_tokenSet_8() { 4011 long[] data = new long[2048]; 4012 data[0]=287948939829692927L; 4013 data[1]=-8646911288712101890L; 4014 for (int i = 2; i<=1022; i++) { data[i]=-1L; } 4015 data[1023]=9223372036854775807L; 4016 return data; 4017 } 4018 public static final BitSet _tokenSet_8 = new BitSet(mk_tokenSet_8()); 4019 private static final long[] mk_tokenSet_9() { 4020 long[] data = new long[2048]; 4021 data[0]=287949008549169663L; 4022 data[1]=-8646911286564618242L; 4023 for (int i = 2; i<=1022; i++) { data[i]=-1L; } 4024 data[1023]=9223372036854775807L; 4025 return data; 4026 } 4027 public static final BitSet _tokenSet_9 = new BitSet(mk_tokenSet_9()); 4028 private static final long[] mk_tokenSet_10() { 4029 long[] data = new long[1025]; 4030 data[0]=288019269919178752L; 4031 data[1]=541165879422L; 4032 return data; 4033 } 4034 public static final BitSet _tokenSet_10 = new BitSet(mk_tokenSet_10()); 4035 private static final long[] mk_tokenSet_11() { 4036 long[] data = new long[1025]; 4037 data[0]=288019269919178752L; 4038 data[1]=282018290139262L; 4039 return data; 4040 } 4041 public static final BitSet _tokenSet_11 = new BitSet(mk_tokenSet_11()); 4042 private static final long[] mk_tokenSet_12() { 4043 long[] data = new long[1025]; 4044 data[0]=288019269919178752L; 4045 data[1]=543313363070L; 4046 return data; 4047 } 4048 public static final BitSet _tokenSet_12 = new BitSet(mk_tokenSet_12()); 4049 private static final long[] mk_tokenSet_13() { 4050 long[] data = new long[1025]; 4051 data[0]=288063250384289792L; 4052 data[1]=282018290139262L; 4053 return data; 4054 } 4055 public static final BitSet _tokenSet_13 = new BitSet(mk_tokenSet_13()); 4056 private static final long[] mk_tokenSet_14() { 4057 long[] data = new long[1025]; 4058 data[0]=287948901175001088L; 4059 data[1]=543313363070L; 4060 return data; 4061 } 4062 public static final BitSet _tokenSet_14 = new BitSet(mk_tokenSet_14()); 4063 private static final long[] mk_tokenSet_15() { 4064 long[] data = new long[1025]; 4065 data[0]=287948901175001088L; 4066 data[1]=282018290139262L; 4067 return data; 4068 } 4069 public static final BitSet _tokenSet_15 = new BitSet(mk_tokenSet_15()); 4070 private static final long[] mk_tokenSet_16() { 4071 long[] data = new long[1025]; 4072 data[0]=287992881640112128L; 4073 data[1]=282018290139262L; 4074 return data; 4075 } 4076 public static final BitSet _tokenSet_16 = new BitSet(mk_tokenSet_16()); 4077 4078 }