1 2 package org.objectweb.speedo.query.parser; 3 4 5 public class SpeedoQLimplements SpeedoQLTreeConstants, SpeedoQLConstants { 6 protected JJTSpeedoQLState jjtree = new JJTSpeedoQLState(); 7 8 public static void main(String args[]) throws ParseException { 9 SpeedoQL parser; 10 if (args.length == 0) { 11 System.out.println("SpeedoQL Parser : Reading from standard input . . ."); 12 parser = new SpeedoQL(System.in); 13 } else if (args.length == 1) { 14 System.out.println("SpeedoQL Parser : Reading from file " + args[0] + " . . ."); 15 try { 16 parser = new SpeedoQL(new java.io.FileInputStream (args[0])); 17 } catch (java.io.FileNotFoundException e) { 18 System.out.println("SpeedoQL Parser : File " + args[0] + " not found."); 19 return; 20 } 21 } else { 22 System.out.println("SpeedoQL Parser : Usage is one of:"); 23 System.out.println(" java org.objectweb.speedo.test.conform.query.SpeedoQL < inputfile"); 24 System.out.println("OR"); 25 System.out.println(" java org.objectweb.speedo.test.conform.query.SpeedoQL inputfile"); 26 return; 27 } 28 try { 29 SimpleNode sn = parser.SpeedoQL(); 30 sn.dump(""); 31 System.out.println("SpeedoQL Parser : Java program parsed successfully."); 32 } catch (ParseException e) { 33 System.out.println("SpeedoQL Parser : Encountered errors during parse."); 34 e.printStackTrace(); 35 } 36 } 37 38 41 final public SimpleNode SpeedoQL() throws ParseException { 42 43 ASTSpeedoQL jjtn000 = new ASTSpeedoQL(JJTSPEEDOQL); 44 boolean jjtc000 = true; 45 jjtree.openNodeScope(jjtn000); 46 try { 47 SpeedoPrimary(); 48 jj_consume_token(0); 49 jjtree.closeNodeScope(jjtn000, true); 50 jjtc000 = false; 51 { 52 if (true) return jjtn000; 53 } 54 } catch (Throwable jjte000) { 55 if (jjtc000) { 56 jjtree.clearNodeScope(jjtn000); 57 jjtc000 = false; 58 } else { 59 jjtree.popNode(); 60 } 61 if (jjte000 instanceof RuntimeException ) { 62 { 63 if (true) throw (RuntimeException ) jjte000; 64 } 65 } 66 if (jjte000 instanceof ParseException) { 67 { 68 if (true) throw (ParseException) jjte000; 69 } 70 } 71 { 72 if (true) throw (Error ) jjte000; 73 } 74 } finally { 75 if (jjtc000) { 76 jjtree.closeNodeScope(jjtn000, true); 77 } 78 } 79 throw new Error ("Missing return statement in function"); 80 } 81 82 final public void SpeedoPrimary() throws ParseException { 83 84 ASTSpeedoPrimary jjtn000 = new ASTSpeedoPrimary(JJTSPEEDOPRIMARY); 85 boolean jjtc000 = true; 86 jjtree.openNodeScope(jjtn000); 87 try { 88 label_1: 89 while (true) { 90 switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { 91 case NULL: 92 case TRUE: 93 case FALSE: 94 case INTEGER_LITERAL: 95 case FLOATING_POINT_LITERAL: 96 case CHARACTER_LITERAL: 97 case STRING_LITERAL: 98 case IDENTIFIER: 99 case 45: 100 ; 101 break; 102 default: 103 jj_la1[0] = jj_gen; 104 break label_1; 105 } 106 Primary(); 107 } 108 } catch (Throwable jjte000) { 109 if (jjtc000) { 110 jjtree.clearNodeScope(jjtn000); 111 jjtc000 = false; 112 } else { 113 jjtree.popNode(); 114 } 115 if (jjte000 instanceof RuntimeException ) { 116 { 117 if (true) throw (RuntimeException ) jjte000; 118 } 119 } 120 if (jjte000 instanceof ParseException) { 121 { 122 if (true) throw (ParseException) jjte000; 123 } 124 } 125 { 126 if (true) throw (Error ) jjte000; 127 } 128 } finally { 129 if (jjtc000) { 130 jjtree.closeNodeScope(jjtn000, true); 131 } 132 } 133 } 134 135 final public void Primary() throws ParseException { 136 137 ASTPrimary jjtn000 = new ASTPrimary(JJTPRIMARY); 138 boolean jjtc000 = true; 139 jjtree.openNodeScope(jjtn000); 140 Token t; 141 try { 142 switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { 143 case 45: 144 jj_consume_token(45); 145 Expression(); 146 jj_consume_token(46); 147 label_2: 148 while (true) { 149 if (jj_2_1(2)) { 150 ; 151 } else { 152 break label_2; 153 } 154 jj_consume_token(DOT); 155 t = jj_consume_token(IDENTIFIER); 156 jjtn000.value = jjtn000.value + "." + t.image; 157 label_3: 158 while (true) { 159 if (jj_2_2(2)) { 160 ; 161 } else { 162 break label_3; 163 } 164 jj_consume_token(DOT); 165 t = jj_consume_token(IDENTIFIER); 166 jjtn000.value = jjtn000.value +"." + t.image; 167 } 168 label_4: 169 while (true) { 170 if (jj_2_3(2)) { 171 ; 172 } else { 173 break label_4; 174 } 175 ArgumentList(); 176 } 177 label_5: 178 while (true) { 179 if (jj_2_4(2)) { 180 ; 181 } else { 182 break label_5; 183 } 184 jj_consume_token(DOT); 185 t = jj_consume_token(IDENTIFIER); 186 jjtn000.value = jjtn000.value + "." + t.image; 187 } 188 } 189 break; 190 case IDENTIFIER: 191 QualifiedName(); 192 label_6: 193 while (true) { 194 switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { 195 case 45: 196 ; 197 break; 198 default: 199 jj_la1[1] = jj_gen; 200 break label_6; 201 } 202 ArgumentList(); 203 } 204 label_7: 205 while (true) { 206 if (jj_2_5(2)) { 207 ; 208 } else { 209 break label_7; 210 } 211 jj_consume_token(DOT); 212 t = jj_consume_token(IDENTIFIER); 213 jjtn000.value = jjtn000.value + "." + t.image; 214 label_8: 215 while (true) { 216 if (jj_2_6(2)) { 217 ; 218 } else { 219 break label_8; 220 } 221 jj_consume_token(DOT); 222 t = jj_consume_token(IDENTIFIER); 223 jjtn000.value = jjtn000.value + "." + t.image; 224 } 225 label_9: 226 while (true) { 227 if (jj_2_7(2)) { 228 ; 229 } else { 230 break label_9; 231 } 232 ArgumentList(); 233 } 234 label_10: 235 while (true) { 236 if (jj_2_8(2)) { 237 ; 238 } else { 239 break label_10; 240 } 241 jj_consume_token(DOT); 242 t = jj_consume_token(IDENTIFIER); 243 jjtn000.value = jjtn000.value + "." + t.image; 244 } 245 } 246 break; 247 case NULL: 248 case TRUE: 249 case FALSE: 250 case INTEGER_LITERAL: 251 case FLOATING_POINT_LITERAL: 252 case CHARACTER_LITERAL: 253 case STRING_LITERAL: 254 Literal(); 255 label_11: 256 while (true) { 257 switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { 258 case DOT: 259 ; 260 break; 261 default: 262 jj_la1[2] = jj_gen; 263 break label_11; 264 } 265 jj_consume_token(DOT); 266 t = jj_consume_token(IDENTIFIER); 267 jjtn000.value = jjtn000.value + "." + t.image; 268 label_12: 269 while (true) { 270 if (jj_2_9(2)) { 271 ; 272 } else { 273 break label_12; 274 } 275 jj_consume_token(DOT); 276 t = jj_consume_token(IDENTIFIER); 277 jjtn000.value = jjtn000.value + "." + t.image; 278 } 279 label_13: 280 while (true) { 281 if (jj_2_10(2)) { 282 ; 283 } else { 284 break label_13; 285 } 286 ArgumentList(); 287 } 288 label_14: 289 while (true) { 290 if (jj_2_11(2)) { 291 ; 292 } else { 293 break label_14; 294 } 295 jj_consume_token(DOT); 296 t = jj_consume_token(IDENTIFIER); 297 jjtn000.value = jjtn000.value + "." + t.image; 298 } 299 } 300 break; 301 default: 302 jj_la1[3] = jj_gen; 303 jj_consume_token(-1); 304 throw new ParseException(); 305 } 306 } catch (Throwable jjte000) { 307 if (jjtc000) { 308 jjtree.clearNodeScope(jjtn000); 309 jjtc000 = false; 310 } else { 311 jjtree.popNode(); 312 } 313 if (jjte000 instanceof RuntimeException ) { 314 { 315 if (true) throw (RuntimeException ) jjte000; 316 } 317 } 318 if (jjte000 instanceof ParseException) { 319 { 320 if (true) throw (ParseException) jjte000; 321 } 322 } 323 { 324 if (true) throw (Error ) jjte000; 325 } 326 } finally { 327 if (jjtc000) { 328 jjtree.closeNodeScope(jjtn000, true); 329 } 330 } 331 } 332 333 334 final public void Expression() throws ParseException { 335 RelationalExpression(); 336 } 337 338 final public void RelationalExpression() throws ParseException { 339 340 ASTRelationalExpression jjtn000 = new ASTRelationalExpression(JJTRELATIONALEXPRESSION); 341 boolean jjtc000 = true; 342 jjtree.openNodeScope(jjtn000); 343 Token t; 344 try { 345 AdditiveExpression(); 346 label_15: 347 while (true) { 348 switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { 349 case LT: 350 case GT: 351 case LTE: 352 case GTE: 353 case EQ: 354 case NEQ: 355 case OR: 356 case AND: 357 case BITWISEOR: 358 case BITWISEXOR: 359 case BITWISEAND: 360 ; 361 break; 362 default: 363 jj_la1[4] = jj_gen; 364 break label_15; 365 } 366 switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { 367 case OR: 368 t = jj_consume_token(OR); 369 break; 370 case AND: 371 t = jj_consume_token(AND); 372 break; 373 case BITWISEOR: 374 t = jj_consume_token(BITWISEOR); 375 break; 376 case BITWISEXOR: 377 t = jj_consume_token(BITWISEXOR); 378 break; 379 case BITWISEAND: 380 t = jj_consume_token(BITWISEAND); 381 break; 382 case EQ: 383 t = jj_consume_token(EQ); 384 break; 385 case NEQ: 386 t = jj_consume_token(NEQ); 387 break; 388 case LT: 389 t = jj_consume_token(LT); 390 break; 391 case GT: 392 t = jj_consume_token(GT); 393 break; 394 case GTE: 395 t = jj_consume_token(GTE); 396 break; 397 case LTE: 398 t = jj_consume_token(LTE); 399 break; 400 default: 401 jj_la1[5] = jj_gen; 402 jj_consume_token(-1); 403 throw new ParseException(); 404 } 405 jjtn000.ops.add(new Integer (t.kind)); 406 AdditiveExpression(); 407 } 408 } catch (Throwable jjte000) { 409 if (jjtc000) { 410 jjtree.clearNodeScope(jjtn000); 411 jjtc000 = false; 412 } else { 413 jjtree.popNode(); 414 } 415 if (jjte000 instanceof RuntimeException ) { 416 { 417 if (true) throw (RuntimeException ) jjte000; 418 } 419 } 420 if (jjte000 instanceof ParseException) { 421 { 422 if (true) throw (ParseException) jjte000; 423 } 424 } 425 { 426 if (true) throw (Error ) jjte000; 427 } 428 } finally { 429 if (jjtc000) { 430 jjtree.closeNodeScope(jjtn000, true); 431 } 432 } 433 } 434 435 final public void AdditiveExpression() throws ParseException { 436 437 ASTAdditiveExpression jjtn000 = new ASTAdditiveExpression(JJTADDITIVEEXPRESSION); 438 boolean jjtc000 = true; 439 jjtree.openNodeScope(jjtn000); 440 Token t; 441 try { 442 UnaryExpression(); 443 label_16: 444 while (true) { 445 switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { 446 case PLUS: 447 case MINUS: 448 case MULT: 449 case DIV: 450 ; 451 break; 452 default: 453 jj_la1[6] = jj_gen; 454 break label_16; 455 } 456 switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { 457 case PLUS: 458 t = jj_consume_token(PLUS); 459 break; 460 case MINUS: 461 t = jj_consume_token(MINUS); 462 break; 463 case MULT: 464 t = jj_consume_token(MULT); 465 break; 466 case DIV: 467 t = jj_consume_token(DIV); 468 break; 469 default: 470 jj_la1[7] = jj_gen; 471 jj_consume_token(-1); 472 throw new ParseException(); 473 } 474 jjtn000.ops.add(new Integer (t.kind)); 475 UnaryExpression(); 476 } 477 } catch (Throwable jjte000) { 478 if (jjtc000) { 479 jjtree.clearNodeScope(jjtn000); 480 jjtc000 = false; 481 } else { 482 jjtree.popNode(); 483 } 484 if (jjte000 instanceof RuntimeException ) { 485 { 486 if (true) throw (RuntimeException ) jjte000; 487 } 488 } 489 if (jjte000 instanceof ParseException) { 490 { 491 if (true) throw (ParseException) jjte000; 492 } 493 } 494 { 495 if (true) throw (Error ) jjte000; 496 } 497 } finally { 498 if (jjtc000) { 499 jjtree.closeNodeScope(jjtn000, true); 500 } 501 } 502 } 503 504 final public void UnaryExpression() throws ParseException { 505 506 ASTUnaryExpression jjtn000 = new ASTUnaryExpression(JJTUNARYEXPRESSION); 507 boolean jjtc000 = true; 508 jjtree.openNodeScope(jjtn000); 509 Token t; 510 try { 511 switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { 512 case PLUS: 513 case MINUS: 514 switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { 515 case PLUS: 516 t = jj_consume_token(PLUS); 517 break; 518 case MINUS: 519 t = jj_consume_token(MINUS); 520 break; 521 default: 522 jj_la1[8] = jj_gen; 523 jj_consume_token(-1); 524 throw new ParseException(); 525 } 526 jjtn000.ops.add(new Integer (t.kind)); 527 UnaryExpression(); 528 break; 529 case BITWISECOMPL: 530 case NOT: 531 switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { 532 case BITWISECOMPL: 533 t = jj_consume_token(BITWISECOMPL); 534 break; 535 case NOT: 536 t = jj_consume_token(NOT); 537 break; 538 default: 539 jj_la1[9] = jj_gen; 540 jj_consume_token(-1); 541 throw new ParseException(); 542 } 543 jjtn000.ops.add(new Integer (t.kind)); 544 UnaryExpression(); 545 break; 546 default: 547 jj_la1[10] = jj_gen; 548 if (jj_2_12(2147483647)) { 549 CastExpression(); 550 } else if (jj_2_13(2147483647)) { 551 PostfixExpression(); 552 } else { 553 jj_consume_token(-1); 554 throw new ParseException(); 555 } 556 } 557 } catch (Throwable jjte000) { 558 if (jjtc000) { 559 jjtree.clearNodeScope(jjtn000); 560 jjtc000 = false; 561 } else { 562 jjtree.popNode(); 563 } 564 if (jjte000 instanceof RuntimeException ) { 565 { 566 if (true) throw (RuntimeException ) jjte000; 567 } 568 } 569 if (jjte000 instanceof ParseException) { 570 { 571 if (true) throw (ParseException) jjte000; 572 } 573 } 574 { 575 if (true) throw (Error ) jjte000; 576 } 577 } finally { 578 if (jjtc000) { 579 jjtree.closeNodeScope(jjtn000, true); 580 } 581 } 582 } 583 584 final public void PostfixExpression() throws ParseException { 585 if (jj_2_14(2147483647)) { 586 Primary(); 587 } else if (jj_2_15(2147483647)) { 588 QualifiedName(); 589 } else { 590 jj_consume_token(-1); 591 throw new ParseException(); 592 } 593 } 594 595 final public void CastExpression() throws ParseException { 596 597 ASTCastExpression jjtn000 = new ASTCastExpression(JJTCASTEXPRESSION); 598 boolean jjtc000 = true; 599 jjtree.openNodeScope(jjtn000); 600 try { 601 jj_consume_token(45); 602 Type(); 603 jj_consume_token(46); 604 UnaryExpression(); 605 } catch (Throwable jjte000) { 606 if (jjtc000) { 607 jjtree.clearNodeScope(jjtn000); 608 jjtc000 = false; 609 } else { 610 jjtree.popNode(); 611 } 612 if (jjte000 instanceof RuntimeException ) { 613 { 614 if (true) throw (RuntimeException ) jjte000; 615 } 616 } 617 if (jjte000 instanceof ParseException) { 618 { 619 if (true) throw (ParseException) jjte000; 620 } 621 } 622 { 623 if (true) throw (Error ) jjte000; 624 } 625 } finally { 626 if (jjtc000) { 627 jjtree.closeNodeScope(jjtn000, true); 628 } 629 } 630 } 631 632 final public void ArgumentList() throws ParseException { 633 634 ASTArgumentList jjtn000 = new ASTArgumentList(JJTARGUMENTLIST); 635 boolean jjtc000 = true; 636 jjtree.openNodeScope(jjtn000); 637 try { 638 jj_consume_token(45); 639 label_17: 640 while (true) { 641 switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { 642 case NULL: 643 case TRUE: 644 case FALSE: 645 case PLUS: 646 case MINUS: 647 case BITWISECOMPL: 648 case NOT: 649 case INTEGER_LITERAL: 650 case FLOATING_POINT_LITERAL: 651 case CHARACTER_LITERAL: 652 case STRING_LITERAL: 653 case IDENTIFIER: 654 case 45: 655 ; 656 break; 657 default: 658 jj_la1[11] = jj_gen; 659 break label_17; 660 } 661 Expression(); 662 } 663 jj_consume_token(46); 664 } catch (Throwable jjte000) { 665 if (jjtc000) { 666 jjtree.clearNodeScope(jjtn000); 667 jjtc000 = false; 668 } else { 669 jjtree.popNode(); 670 } 671 if (jjte000 instanceof RuntimeException ) { 672 { 673 if (true) throw (RuntimeException ) jjte000; 674 } 675 } 676 if (jjte000 instanceof ParseException) { 677 { 678 if (true) throw (ParseException) jjte000; 679 } 680 } 681 { 682 if (true) throw (Error ) jjte000; 683 } 684 } finally { 685 if (jjtc000) { 686 jjtree.closeNodeScope(jjtn000, true); 687 } 688 } 689 } 690 691 692 final public void Literal() throws ParseException { 693 694 ASTLiteral jjtn000 = new ASTLiteral(JJTLITERAL); 695 boolean jjtc000 = true; 696 jjtree.openNodeScope(jjtn000); 697 Token t; 698 try { 699 switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { 700 case INTEGER_LITERAL: 701 t = jj_consume_token(INTEGER_LITERAL); 702 jjtree.closeNodeScope(jjtn000, true); 703 jjtc000 = false; 704 jjtn000.value = new Integer (t.image); 705 break; 706 case FLOATING_POINT_LITERAL: 707 t = jj_consume_token(FLOATING_POINT_LITERAL); 708 jjtree.closeNodeScope(jjtn000, true); 709 jjtc000 = false; 710 jjtn000.value = new Float (t.image); 711 break; 712 case CHARACTER_LITERAL: 713 t = jj_consume_token(CHARACTER_LITERAL); 714 jjtree.closeNodeScope(jjtn000, true); 715 jjtc000 = false; 716 jjtn000.value = new Character (t.image.charAt(0)); 717 break; 718 case STRING_LITERAL: 719 t = jj_consume_token(STRING_LITERAL); 720 jjtree.closeNodeScope(jjtn000, true); 721 jjtc000 = false; 722 jjtn000.value = t.image; 723 break; 724 case TRUE: 725 t = jj_consume_token(TRUE); 726 jjtree.closeNodeScope(jjtn000, true); 727 jjtc000 = false; 728 jjtn000.value = Boolean.TRUE; 729 break; 730 case FALSE: 731 t = jj_consume_token(FALSE); 732 jjtree.closeNodeScope(jjtn000, true); 733 jjtc000 = false; 734 jjtn000.value = Boolean.FALSE; 735 break; 736 case NULL: 737 t = jj_consume_token(NULL); 738 jjtree.closeNodeScope(jjtn000, true); 739 jjtc000 = false; 740 jjtn000.value = null; 741 break; 742 default: 743 jj_la1[12] = jj_gen; 744 jj_consume_token(-1); 745 throw new ParseException(); 746 } 747 } finally { 748 if (jjtc000) { 749 jjtree.closeNodeScope(jjtn000, true); 750 } 751 } 752 } 753 754 755 final public void Type() throws ParseException { 756 757 ASTType jjtn000 = new ASTType(JJTTYPE); 758 boolean jjtc000 = true; 759 jjtree.openNodeScope(jjtn000); 760 Token t; 761 try { 762 switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { 763 case FLOAT: 764 t = jj_consume_token(FLOAT); 765 jjtree.closeNodeScope(jjtn000, true); 766 jjtc000 = false; 767 jjtn000.value = "float"; 768 break; 769 case DOUBLE: 770 t = jj_consume_token(DOUBLE); 771 jjtree.closeNodeScope(jjtn000, true); 772 jjtc000 = false; 773 jjtn000.value = "double"; 774 break; 775 case BYTE: 776 t = jj_consume_token(BYTE); 777 jjtree.closeNodeScope(jjtn000, true); 778 jjtc000 = false; 779 jjtn000.value = "byte"; 780 break; 781 case SHORT: 782 t = jj_consume_token(SHORT); 783 jjtree.closeNodeScope(jjtn000, true); 784 jjtc000 = false; 785 jjtn000.value = "short"; 786 break; 787 case INT: 788 t = jj_consume_token(INT); 789 jjtree.closeNodeScope(jjtn000, true); 790 jjtc000 = false; 791 jjtn000.value = "integer"; 792 break; 793 case LONG: 794 t = jj_consume_token(LONG); 795 jjtree.closeNodeScope(jjtn000, true); 796 jjtc000 = false; 797 jjtn000.value = "long"; 798 break; 799 case CHAR: 800 t = jj_consume_token(CHAR); 801 jjtree.closeNodeScope(jjtn000, true); 802 jjtc000 = false; 803 jjtn000.value = "char"; 804 break; 805 case BOOLEAN: 806 t = jj_consume_token(BOOLEAN); 807 jjtree.closeNodeScope(jjtn000, true); 808 jjtc000 = false; 809 jjtn000.value = "boolean"; 810 break; 811 case IDENTIFIER: 812 QualifiedName(); 813 break; 814 default: 815 jj_la1[13] = jj_gen; 816 jj_consume_token(-1); 817 throw new ParseException(); 818 } 819 } catch (Throwable jjte000) { 820 if (jjtc000) { 821 jjtree.clearNodeScope(jjtn000); 822 jjtc000 = false; 823 } else { 824 jjtree.popNode(); 825 } 826 if (jjte000 instanceof RuntimeException ) { 827 { 828 if (true) throw (RuntimeException ) jjte000; 829 } 830 } 831 if (jjte000 instanceof ParseException) { 832 { 833 if (true) throw (ParseException) jjte000; 834 } 835 } 836 { 837 if (true) throw (Error ) jjte000; 838 } 839 } finally { 840 if (jjtc000) { 841 jjtree.closeNodeScope(jjtn000, true); 842 } 843 } 844 } 845 846 847 final public void QualifiedName() throws ParseException { 848 849 ASTQualifiedName jjtn000 = new ASTQualifiedName(JJTQUALIFIEDNAME); 850 boolean jjtc000 = true; 851 jjtree.openNodeScope(jjtn000); 852 Token t; 853 try { 854 t = jj_consume_token(IDENTIFIER); 855 jjtn000.value = t.image; 856 label_18: 857 while (true) { 858 if (jj_2_16(2)) { 859 ; 860 } else { 861 break label_18; 862 } 863 jj_consume_token(DOT); 864 t = jj_consume_token(IDENTIFIER); 865 jjtn000.value = jjtn000.value + "." + t.image; 866 } 867 } finally { 868 if (jjtc000) { 869 jjtree.closeNodeScope(jjtn000, true); 870 } 871 } 872 } 873 874 final private boolean jj_2_1(int xla) { 875 jj_la = xla; 876 jj_lastpos = jj_scanpos = token; 877 boolean retval = !jj_3_1(); 878 jj_save(0, xla); 879 return retval; 880 } 881 882 final private boolean jj_2_2(int xla) { 883 jj_la = xla; 884 jj_lastpos = jj_scanpos = token; 885 boolean retval = !jj_3_2(); 886 jj_save(1, xla); 887 return retval; 888 } 889 890 final private boolean jj_2_3(int xla) { 891 jj_la = xla; 892 jj_lastpos = jj_scanpos = token; 893 boolean retval = !jj_3_3(); 894 jj_save(2, xla); 895 return retval; 896 } 897 898 final private boolean jj_2_4(int xla) { 899 jj_la = xla; 900 jj_lastpos = jj_scanpos = token; 901 boolean retval = !jj_3_4(); 902 jj_save(3, xla); 903 return retval; 904 } 905 906 final private boolean jj_2_5(int xla) { 907 jj_la = xla; 908 jj_lastpos = jj_scanpos = token; 909 boolean retval = !jj_3_5(); 910 jj_save(4, xla); 911 return retval; 912 } 913 914 final private boolean jj_2_6(int xla) { 915 jj_la = xla; 916 jj_lastpos = jj_scanpos = token; 917 boolean retval = !jj_3_6(); 918 jj_save(5, xla); 919 return retval; 920 } 921 922 final private boolean jj_2_7(int xla) { 923 jj_la = xla; 924 jj_lastpos = jj_scanpos = token; 925 boolean retval = !jj_3_7(); 926 jj_save(6, xla); 927 return retval; 928 } 929 930 final private boolean jj_2_8(int xla) { 931 jj_la = xla; 932 jj_lastpos = jj_scanpos = token; 933 boolean retval = !jj_3_8(); 934 jj_save(7, xla); 935 return retval; 936 } 937 938 final private boolean jj_2_9(int xla) { 939 jj_la = xla; 940 jj_lastpos = jj_scanpos = token; 941 boolean retval = !jj_3_9(); 942 jj_save(8, xla); 943 return retval; 944 } 945 946 final private boolean jj_2_10(int xla) { 947 jj_la = xla; 948 jj_lastpos = jj_scanpos = token; 949 boolean retval = !jj_3_10(); 950 jj_save(9, xla); 951 return retval; 952 } 953 954 final private boolean jj_2_11(int xla) { 955 jj_la = xla; 956 jj_lastpos = jj_scanpos = token; 957 boolean retval = !jj_3_11(); 958 jj_save(10, xla); 959 return retval; 960 } 961 962 final private boolean jj_2_12(int xla) { 963 jj_la = xla; 964 jj_lastpos = jj_scanpos = token; 965 boolean retval = !jj_3_12(); 966 jj_save(11, xla); 967 return retval; 968 } 969 970 final private boolean jj_2_13(int xla) { 971 jj_la = xla; 972 jj_lastpos = jj_scanpos = token; 973 boolean retval = !jj_3_13(); 974 jj_save(12, xla); 975 return retval; 976 } 977 978 final private boolean jj_2_14(int xla) { 979 jj_la = xla; 980 jj_lastpos = jj_scanpos = token; 981 boolean retval = !jj_3_14(); 982 jj_save(13, xla); 983 return retval; 984 } 985 986 final private boolean jj_2_15(int xla) { 987 jj_la = xla; 988 jj_lastpos = jj_scanpos = token; 989 boolean retval = !jj_3_15(); 990 jj_save(14, xla); 991 return retval; 992 } 993 994 final private boolean jj_2_16(int xla) { 995 jj_la = xla; 996 jj_lastpos = jj_scanpos = token; 997 boolean retval = !jj_3_16(); 998 jj_save(15, xla); 999 return retval; 1000 } 1001 1002 final private boolean jj_3R_70() { 1003 if (jj_scan_token(NEQ)) return true; 1004 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1005 return false; 1006 } 1007 1008 final private boolean jj_3R_69() { 1009 if (jj_scan_token(EQ)) return true; 1010 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1011 return false; 1012 } 1013 1014 final private boolean jj_3_16() { 1015 if (jj_scan_token(DOT)) return true; 1016 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1017 if (jj_scan_token(IDENTIFIER)) return true; 1018 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1019 return false; 1020 } 1021 1022 final private boolean jj_3R_23() { 1023 if (jj_scan_token(IDENTIFIER)) return true; 1024 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1025 Token xsp; 1026 while (true) { 1027 xsp = jj_scanpos; 1028 if (jj_3_16()) { 1029 jj_scanpos = xsp; 1030 break; 1031 } 1032 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1033 } 1034 return false; 1035 } 1036 1037 final private boolean jj_3R_68() { 1038 if (jj_scan_token(BITWISEAND)) return true; 1039 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1040 return false; 1041 } 1042 1043 final private boolean jj_3R_41() { 1044 if (jj_3R_23()) return true; 1045 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1046 return false; 1047 } 1048 1049 final private boolean jj_3R_40() { 1050 if (jj_scan_token(BOOLEAN)) return true; 1051 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1052 return false; 1053 } 1054 1055 final private boolean jj_3R_39() { 1056 if (jj_scan_token(CHAR)) return true; 1057 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1058 return false; 1059 } 1060 1061 final private boolean jj_3R_38() { 1062 if (jj_scan_token(LONG)) return true; 1063 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1064 return false; 1065 } 1066 1067 final private boolean jj_3R_37() { 1068 if (jj_scan_token(INT)) return true; 1069 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1070 return false; 1071 } 1072 1073 final private boolean jj_3R_36() { 1074 if (jj_scan_token(SHORT)) return true; 1075 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1076 return false; 1077 } 1078 1079 final private boolean jj_3R_35() { 1080 if (jj_scan_token(BYTE)) return true; 1081 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1082 return false; 1083 } 1084 1085 final private boolean jj_3R_34() { 1086 if (jj_scan_token(DOUBLE)) return true; 1087 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1088 return false; 1089 } 1090 1091 final private boolean jj_3R_33() { 1092 if (jj_scan_token(FLOAT)) return true; 1093 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1094 return false; 1095 } 1096 1097 final private boolean jj_3R_25() { 1098 Token xsp; 1099 xsp = jj_scanpos; 1100 if (jj_3R_33()) { 1101 jj_scanpos = xsp; 1102 if (jj_3R_34()) { 1103 jj_scanpos = xsp; 1104 if (jj_3R_35()) { 1105 jj_scanpos = xsp; 1106 if (jj_3R_36()) { 1107 jj_scanpos = xsp; 1108 if (jj_3R_37()) { 1109 jj_scanpos = xsp; 1110 if (jj_3R_38()) { 1111 jj_scanpos = xsp; 1112 if (jj_3R_39()) { 1113 jj_scanpos = xsp; 1114 if (jj_3R_40()) { 1115 jj_scanpos = xsp; 1116 if (jj_3R_41()) return true; 1117 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1118 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1119 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1120 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1121 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1122 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1123 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1124 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1125 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1126 return false; 1127 } 1128 1129 final private boolean jj_3R_78() { 1130 if (jj_scan_token(DIV)) return true; 1131 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1132 return false; 1133 } 1134 1135 final private boolean jj_3R_67() { 1136 if (jj_scan_token(BITWISEXOR)) return true; 1137 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1138 return false; 1139 } 1140 1141 final private boolean jj_3R_60() { 1142 if (jj_scan_token(NULL)) return true; 1143 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1144 return false; 1145 } 1146 1147 final private boolean jj_3R_59() { 1148 if (jj_scan_token(FALSE)) return true; 1149 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1150 return false; 1151 } 1152 1153 final private boolean jj_3R_58() { 1154 if (jj_scan_token(TRUE)) return true; 1155 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1156 return false; 1157 } 1158 1159 final private boolean jj_3R_57() { 1160 if (jj_scan_token(STRING_LITERAL)) return true; 1161 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1162 return false; 1163 } 1164 1165 final private boolean jj_3R_56() { 1166 if (jj_scan_token(CHARACTER_LITERAL)) return true; 1167 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1168 return false; 1169 } 1170 1171 final private boolean jj_3R_55() { 1172 if (jj_scan_token(FLOATING_POINT_LITERAL)) return true; 1173 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1174 return false; 1175 } 1176 1177 final private boolean jj_3R_47() { 1178 Token xsp; 1179 xsp = jj_scanpos; 1180 if (jj_3R_54()) { 1181 jj_scanpos = xsp; 1182 if (jj_3R_55()) { 1183 jj_scanpos = xsp; 1184 if (jj_3R_56()) { 1185 jj_scanpos = xsp; 1186 if (jj_3R_57()) { 1187 jj_scanpos = xsp; 1188 if (jj_3R_58()) { 1189 jj_scanpos = xsp; 1190 if (jj_3R_59()) { 1191 jj_scanpos = xsp; 1192 if (jj_3R_60()) return true; 1193 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1194 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1195 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1196 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1197 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1198 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1199 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1200 return false; 1201 } 1202 1203 final private boolean jj_3R_54() { 1204 if (jj_scan_token(INTEGER_LITERAL)) return true; 1205 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1206 return false; 1207 } 1208 1209 final private boolean jj_3R_77() { 1210 if (jj_scan_token(MULT)) return true; 1211 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1212 return false; 1213 } 1214 1215 final private boolean jj_3R_24() { 1216 if (jj_3R_32()) return true; 1217 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1218 return false; 1219 } 1220 1221 final private boolean jj_3R_66() { 1222 if (jj_scan_token(BITWISEOR)) return true; 1223 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1224 return false; 1225 } 1226 1227 final private boolean jj_3R_76() { 1228 if (jj_scan_token(MINUS)) return true; 1229 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1230 return false; 1231 } 1232 1233 final private boolean jj_3R_19() { 1234 if (jj_scan_token(45)) return true; 1235 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1236 Token xsp; 1237 while (true) { 1238 xsp = jj_scanpos; 1239 if (jj_3R_24()) { 1240 jj_scanpos = xsp; 1241 break; 1242 } 1243 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1244 } 1245 if (jj_scan_token(46)) return true; 1246 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1247 return false; 1248 } 1249 1250 final private boolean jj_3R_53() { 1251 if (jj_scan_token(NOT)) return true; 1252 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1253 return false; 1254 } 1255 1256 final private boolean jj_3_15() { 1257 if (jj_3R_23()) return true; 1258 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1259 return false; 1260 } 1261 1262 final private boolean jj_3_14() { 1263 if (jj_3R_22()) return true; 1264 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1265 return false; 1266 } 1267 1268 final private boolean jj_3R_65() { 1269 if (jj_scan_token(AND)) return true; 1270 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1271 return false; 1272 } 1273 1274 final private boolean jj_3R_20() { 1275 if (jj_scan_token(45)) return true; 1276 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1277 if (jj_3R_25()) return true; 1278 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1279 if (jj_scan_token(46)) return true; 1280 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1281 if (jj_3R_26()) return true; 1282 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1283 return false; 1284 } 1285 1286 final private boolean jj_3R_51() { 1287 if (jj_scan_token(MINUS)) return true; 1288 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1289 return false; 1290 } 1291 1292 final private boolean jj_3R_75() { 1293 if (jj_scan_token(PLUS)) return true; 1294 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1295 return false; 1296 } 1297 1298 final private boolean jj_3_13() { 1299 if (jj_3R_21()) return true; 1300 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1301 return false; 1302 } 1303 1304 final private boolean jj_3_12() { 1305 if (jj_3R_20()) return true; 1306 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1307 return false; 1308 } 1309 1310 final private boolean jj_3R_63() { 1311 Token xsp; 1312 xsp = jj_scanpos; 1313 if (jj_3R_75()) { 1314 jj_scanpos = xsp; 1315 if (jj_3R_76()) { 1316 jj_scanpos = xsp; 1317 if (jj_3R_77()) { 1318 jj_scanpos = xsp; 1319 if (jj_3R_78()) return true; 1320 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1321 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1322 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1323 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1324 if (jj_3R_26()) return true; 1325 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1326 return false; 1327 } 1328 1329 final private boolean jj_3R_28() { 1330 if (jj_3R_23()) return true; 1331 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1332 return false; 1333 } 1334 1335 final private boolean jj_3R_27() { 1336 if (jj_3R_22()) return true; 1337 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1338 return false; 1339 } 1340 1341 final private boolean jj_3R_21() { 1342 Token xsp; 1343 xsp = jj_scanpos; 1344 if (jj_3R_27()) { 1345 jj_scanpos = xsp; 1346 if (jj_3R_28()) return true; 1347 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1348 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1349 return false; 1350 } 1351 1352 final private boolean jj_3R_64() { 1353 if (jj_scan_token(OR)) return true; 1354 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1355 return false; 1356 } 1357 1358 final private boolean jj_3R_62() { 1359 Token xsp; 1360 xsp = jj_scanpos; 1361 if (jj_3R_64()) { 1362 jj_scanpos = xsp; 1363 if (jj_3R_65()) { 1364 jj_scanpos = xsp; 1365 if (jj_3R_66()) { 1366 jj_scanpos = xsp; 1367 if (jj_3R_67()) { 1368 jj_scanpos = xsp; 1369 if (jj_3R_68()) { 1370 jj_scanpos = xsp; 1371 if (jj_3R_69()) { 1372 jj_scanpos = xsp; 1373 if (jj_3R_70()) { 1374 jj_scanpos = xsp; 1375 if (jj_3R_71()) { 1376 jj_scanpos = xsp; 1377 if (jj_3R_72()) { 1378 jj_scanpos = xsp; 1379 if (jj_3R_73()) { 1380 jj_scanpos = xsp; 1381 if (jj_3R_74()) return true; 1382 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1383 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1384 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1385 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1386 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1387 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1388 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1389 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1390 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1391 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1392 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1393 if (jj_3R_61()) return true; 1394 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1395 return false; 1396 } 1397 1398 final private boolean jj_3R_45() { 1399 if (jj_3R_21()) return true; 1400 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1401 return false; 1402 } 1403 1404 final private boolean jj_3R_44() { 1405 if (jj_3R_20()) return true; 1406 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1407 return false; 1408 } 1409 1410 final private boolean jj_3R_52() { 1411 if (jj_scan_token(BITWISECOMPL)) return true; 1412 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1413 return false; 1414 } 1415 1416 final private boolean jj_3R_43() { 1417 Token xsp; 1418 xsp = jj_scanpos; 1419 if (jj_3R_52()) { 1420 jj_scanpos = xsp; 1421 if (jj_3R_53()) return true; 1422 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1423 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1424 if (jj_3R_26()) return true; 1425 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1426 return false; 1427 } 1428 1429 final private boolean jj_3R_50() { 1430 if (jj_scan_token(PLUS)) return true; 1431 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1432 return false; 1433 } 1434 1435 final private boolean jj_3R_26() { 1436 Token xsp; 1437 xsp = jj_scanpos; 1438 if (jj_3R_42()) { 1439 jj_scanpos = xsp; 1440 if (jj_3R_43()) { 1441 jj_scanpos = xsp; 1442 if (jj_3R_44()) { 1443 jj_scanpos = xsp; 1444 if (jj_3R_45()) return true; 1445 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1446 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1447 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1448 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1449 return false; 1450 } 1451 1452 final private boolean jj_3R_42() { 1453 Token xsp; 1454 xsp = jj_scanpos; 1455 if (jj_3R_50()) { 1456 jj_scanpos = xsp; 1457 if (jj_3R_51()) return true; 1458 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1459 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1460 if (jj_3R_26()) return true; 1461 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1462 return false; 1463 } 1464 1465 final private boolean jj_3R_61() { 1466 if (jj_3R_26()) return true; 1467 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1468 Token xsp; 1469 while (true) { 1470 xsp = jj_scanpos; 1471 if (jj_3R_63()) { 1472 jj_scanpos = xsp; 1473 break; 1474 } 1475 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1476 } 1477 return false; 1478 } 1479 1480 final private boolean jj_3R_49() { 1481 if (jj_3R_61()) return true; 1482 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1483 Token xsp; 1484 while (true) { 1485 xsp = jj_scanpos; 1486 if (jj_3R_62()) { 1487 jj_scanpos = xsp; 1488 break; 1489 } 1490 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1491 } 1492 return false; 1493 } 1494 1495 final private boolean jj_3R_32() { 1496 if (jj_3R_49()) return true; 1497 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1498 return false; 1499 } 1500 1501 final private boolean jj_3_11() { 1502 if (jj_scan_token(DOT)) return true; 1503 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1504 if (jj_scan_token(IDENTIFIER)) return true; 1505 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1506 return false; 1507 } 1508 1509 final private boolean jj_3_9() { 1510 if (jj_scan_token(DOT)) return true; 1511 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1512 if (jj_scan_token(IDENTIFIER)) return true; 1513 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1514 return false; 1515 } 1516 1517 final private boolean jj_3_10() { 1518 if (jj_3R_19()) return true; 1519 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1520 return false; 1521 } 1522 1523 final private boolean jj_3R_48() { 1524 if (jj_scan_token(DOT)) return true; 1525 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1526 if (jj_scan_token(IDENTIFIER)) return true; 1527 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1528 Token xsp; 1529 while (true) { 1530 xsp = jj_scanpos; 1531 if (jj_3_9()) { 1532 jj_scanpos = xsp; 1533 break; 1534 } 1535 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1536 } 1537 while (true) { 1538 xsp = jj_scanpos; 1539 if (jj_3_10()) { 1540 jj_scanpos = xsp; 1541 break; 1542 } 1543 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1544 } 1545 while (true) { 1546 xsp = jj_scanpos; 1547 if (jj_3_11()) { 1548 jj_scanpos = xsp; 1549 break; 1550 } 1551 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1552 } 1553 return false; 1554 } 1555 1556 final private boolean jj_3_8() { 1557 if (jj_scan_token(DOT)) return true; 1558 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1559 if (jj_scan_token(IDENTIFIER)) return true; 1560 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1561 return false; 1562 } 1563 1564 final private boolean jj_3R_31() { 1565 if (jj_3R_47()) return true; 1566 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1567 Token xsp; 1568 while (true) { 1569 xsp = jj_scanpos; 1570 if (jj_3R_48()) { 1571 jj_scanpos = xsp; 1572 break; 1573 } 1574 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1575 } 1576 return false; 1577 } 1578 1579 final private boolean jj_3_7() { 1580 if (jj_3R_19()) return true; 1581 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1582 return false; 1583 } 1584 1585 final private boolean jj_3_6() { 1586 if (jj_scan_token(DOT)) return true; 1587 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1588 if (jj_scan_token(IDENTIFIER)) return true; 1589 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1590 return false; 1591 } 1592 1593 final private boolean jj_3_5() { 1594 if (jj_scan_token(DOT)) return true; 1595 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1596 if (jj_scan_token(IDENTIFIER)) return true; 1597 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1598 Token xsp; 1599 while (true) { 1600 xsp = jj_scanpos; 1601 if (jj_3_6()) { 1602 jj_scanpos = xsp; 1603 break; 1604 } 1605 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1606 } 1607 while (true) { 1608 xsp = jj_scanpos; 1609 if (jj_3_7()) { 1610 jj_scanpos = xsp; 1611 break; 1612 } 1613 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1614 } 1615 while (true) { 1616 xsp = jj_scanpos; 1617 if (jj_3_8()) { 1618 jj_scanpos = xsp; 1619 break; 1620 } 1621 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1622 } 1623 return false; 1624 } 1625 1626 final private boolean jj_3R_74() { 1627 if (jj_scan_token(LTE)) return true; 1628 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1629 return false; 1630 } 1631 1632 final private boolean jj_3R_46() { 1633 if (jj_3R_19()) return true; 1634 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1635 return false; 1636 } 1637 1638 final private boolean jj_3_4() { 1639 if (jj_scan_token(DOT)) return true; 1640 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1641 if (jj_scan_token(IDENTIFIER)) return true; 1642 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1643 return false; 1644 } 1645 1646 final private boolean jj_3R_30() { 1647 if (jj_3R_23()) return true; 1648 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1649 Token xsp; 1650 while (true) { 1651 xsp = jj_scanpos; 1652 if (jj_3R_46()) { 1653 jj_scanpos = xsp; 1654 break; 1655 } 1656 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1657 } 1658 while (true) { 1659 xsp = jj_scanpos; 1660 if (jj_3_5()) { 1661 jj_scanpos = xsp; 1662 break; 1663 } 1664 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1665 } 1666 return false; 1667 } 1668 1669 final private boolean jj_3_3() { 1670 if (jj_3R_19()) return true; 1671 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1672 return false; 1673 } 1674 1675 final private boolean jj_3_2() { 1676 if (jj_scan_token(DOT)) return true; 1677 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1678 if (jj_scan_token(IDENTIFIER)) return true; 1679 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1680 return false; 1681 } 1682 1683 final private boolean jj_3_1() { 1684 if (jj_scan_token(DOT)) return true; 1685 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1686 if (jj_scan_token(IDENTIFIER)) return true; 1687 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1688 Token xsp; 1689 while (true) { 1690 xsp = jj_scanpos; 1691 if (jj_3_2()) { 1692 jj_scanpos = xsp; 1693 break; 1694 } 1695 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1696 } 1697 while (true) { 1698 xsp = jj_scanpos; 1699 if (jj_3_3()) { 1700 jj_scanpos = xsp; 1701 break; 1702 } 1703 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1704 } 1705 while (true) { 1706 xsp = jj_scanpos; 1707 if (jj_3_4()) { 1708 jj_scanpos = xsp; 1709 break; 1710 } 1711 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1712 } 1713 return false; 1714 } 1715 1716 final private boolean jj_3R_29() { 1717 if (jj_scan_token(45)) return true; 1718 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1719 if (jj_3R_32()) return true; 1720 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1721 if (jj_scan_token(46)) return true; 1722 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1723 Token xsp; 1724 while (true) { 1725 xsp = jj_scanpos; 1726 if (jj_3_1()) { 1727 jj_scanpos = xsp; 1728 break; 1729 } 1730 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1731 } 1732 return false; 1733 } 1734 1735 final private boolean jj_3R_22() { 1736 Token xsp; 1737 xsp = jj_scanpos; 1738 if (jj_3R_29()) { 1739 jj_scanpos = xsp; 1740 if (jj_3R_30()) { 1741 jj_scanpos = xsp; 1742 if (jj_3R_31()) return true; 1743 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1744 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1745 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1746 return false; 1747 } 1748 1749 final private boolean jj_3R_73() { 1750 if (jj_scan_token(GTE)) return true; 1751 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1752 return false; 1753 } 1754 1755 final private boolean jj_3R_72() { 1756 if (jj_scan_token(GT)) return true; 1757 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1758 return false; 1759 } 1760 1761 final private boolean jj_3R_71() { 1762 if (jj_scan_token(LT)) return true; 1763 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 1764 return false; 1765 } 1766 1767 public SpeedoQLTokenManager token_source; 1768 SimpleCharStream jj_input_stream; 1769 public Token token, jj_nt; 1770 private int jj_ntk; 1771 private Token jj_scanpos, jj_lastpos; 1772 private int jj_la; 1773 public boolean lookingAhead = false; 1774 private boolean jj_semLA; 1775 private int jj_gen; 1776 final private int[] jj_la1 = new int[14]; 1777 final private int[] jj_la1_0 = {0x700, 0x0, 0x0, 0x700, 0x7f0f0000, 0x7f0f0000, 0xf00000, 0xf00000, 0x300000, 0x80000000, 0x80300000, 0x80300700, 0x700, 0xf8e0, }; 1778 final private int[] jj_la1_1 = {0x2744, 0x2000, 0x2, 0x2744, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x1, 0x2745, 0x344, 0x400, }; 1779 final private JJCalls[] jj_2_rtns = new JJCalls[16]; 1780 private boolean jj_rescan = false; 1781 private int jj_gc = 0; 1782 1783 public SpeedoQL(java.io.InputStream stream) { 1784 jj_input_stream = new SimpleCharStream(stream, 1, 1); 1785 token_source = new SpeedoQLTokenManager(jj_input_stream); 1786 token = new Token(); 1787 jj_ntk = -1; 1788 jj_gen = 0; 1789 for (int i = 0; i < 14; i++) jj_la1[i] = -1; 1790 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); 1791 } 1792 1793 public void ReInit(java.io.InputStream stream) { 1794 jj_input_stream.ReInit(stream, 1, 1); 1795 token_source.ReInit(jj_input_stream); 1796 token = new Token(); 1797 jj_ntk = -1; 1798 jjtree.reset(); 1799 jj_gen = 0; 1800 for (int i = 0; i < 14; i++) jj_la1[i] = -1; 1801 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); 1802 } 1803 1804 public SpeedoQL(java.io.Reader stream) { 1805 jj_input_stream = new SimpleCharStream(stream, 1, 1); 1806 token_source = new SpeedoQLTokenManager(jj_input_stream); 1807 token = new Token(); 1808 jj_ntk = -1; 1809 jj_gen = 0; 1810 for (int i = 0; i < 14; i++) jj_la1[i] = -1; 1811 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); 1812 } 1813 1814 public void ReInit(java.io.Reader stream) { 1815 jj_input_stream.ReInit(stream, 1, 1); 1816 token_source.ReInit(jj_input_stream); 1817 token = new Token(); 1818 jj_ntk = -1; 1819 jjtree.reset(); 1820 jj_gen = 0; 1821 for (int i = 0; i < 14; i++) jj_la1[i] = -1; 1822 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); 1823 } 1824 1825 public SpeedoQL(SpeedoQLTokenManager tm) { 1826 token_source = tm; 1827 token = new Token(); 1828 jj_ntk = -1; 1829 jj_gen = 0; 1830 for (int i = 0; i < 14; i++) jj_la1[i] = -1; 1831 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); 1832 } 1833 1834 public void ReInit(SpeedoQLTokenManager tm) { 1835 token_source = tm; 1836 token = new Token(); 1837 jj_ntk = -1; 1838 jjtree.reset(); 1839 jj_gen = 0; 1840 for (int i = 0; i < 14; i++) jj_la1[i] = -1; 1841 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); 1842 } 1843 1844 final private Token jj_consume_token(int kind) throws ParseException { 1845 Token oldToken; 1846 if ((oldToken = token).next != null) 1847 token = token.next; 1848 else 1849 token = token.next = token_source.getNextToken(); 1850 jj_ntk = -1; 1851 if (token.kind == kind) { 1852 jj_gen++; 1853 if (++jj_gc > 100) { 1854 jj_gc = 0; 1855 for (int i = 0; i < jj_2_rtns.length; i++) { 1856 JJCalls c = jj_2_rtns[i]; 1857 while (c != null) { 1858 if (c.gen < jj_gen) c.first = null; 1859 c = c.next; 1860 } 1861 } 1862 } 1863 return token; 1864 } 1865 token = oldToken; 1866 jj_kind = kind; 1867 throw generateParseException(); 1868 } 1869 1870 final private boolean jj_scan_token(int kind) { 1871 if (jj_scanpos == jj_lastpos) { 1872 jj_la--; 1873 if (jj_scanpos.next == null) { 1874 jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken(); 1875 } else { 1876 jj_lastpos = jj_scanpos = jj_scanpos.next; 1877 } 1878 } else { 1879 jj_scanpos = jj_scanpos.next; 1880 } 1881 if (jj_rescan) { 1882 int i = 0; 1883 Token tok = token; 1884 while (tok != null && tok != jj_scanpos) { 1885 i++; 1886 tok = tok.next; 1887 } 1888 if (tok != null) jj_add_error_token(kind, i); 1889 } 1890 return (jj_scanpos.kind != kind); 1891 } 1892 1893 final public Token getNextToken() { 1894 if (token.next != null) 1895 token = token.next; 1896 else 1897 token = token.next = token_source.getNextToken(); 1898 jj_ntk = -1; 1899 jj_gen++; 1900 return token; 1901 } 1902 1903 final public Token getToken(int index) { 1904 Token t = lookingAhead ? jj_scanpos : token; 1905 for (int i = 0; i < index; i++) { 1906 if (t.next != null) 1907 t = t.next; 1908 else 1909 t = t.next = token_source.getNextToken(); 1910 } 1911 return t; 1912 } 1913 1914 final private int jj_ntk() { 1915 if ((jj_nt = token.next) == null) 1916 return (jj_ntk = (token.next = token_source.getNextToken()).kind); 1917 else 1918 return (jj_ntk = jj_nt.kind); 1919 } 1920 1921 private java.util.Vector jj_expentries = new java.util.Vector (); 1922 private int[] jj_expentry; 1923 private int jj_kind = -1; 1924 private int[] jj_lasttokens = new int[100]; 1925 private int jj_endpos; 1926 1927 private void jj_add_error_token(int kind, int pos) { 1928 if (pos >= 100) return; 1929 if (pos == jj_endpos + 1) { 1930 jj_lasttokens[jj_endpos++] = kind; 1931 } else if (jj_endpos != 0) { 1932 jj_expentry = new int[jj_endpos]; 1933 for (int i = 0; i < jj_endpos; i++) { 1934 jj_expentry[i] = jj_lasttokens[i]; 1935 } 1936 boolean exists = false; 1937 for (java.util.Enumeration _enum = jj_expentries.elements(); _enum.hasMoreElements();) { 1938 int[] oldentry = (int[]) (_enum.nextElement()); 1939 if (oldentry.length == jj_expentry.length) { 1940 exists = true; 1941 for (int i = 0; i < jj_expentry.length; i++) { 1942 if (oldentry[i] != jj_expentry[i]) { 1943 exists = false; 1944 break; 1945 } 1946 } 1947 if (exists) break; 1948 } 1949 } 1950 if (!exists) jj_expentries.addElement(jj_expentry); 1951 if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind; 1952 } 1953 } 1954 1955 final public ParseException generateParseException() { 1956 jj_expentries.removeAllElements(); 1957 boolean[] la1tokens = new boolean[47]; 1958 for (int i = 0; i < 47; i++) { 1959 la1tokens[i] = false; 1960 } 1961 if (jj_kind >= 0) { 1962 la1tokens[jj_kind] = true; 1963 jj_kind = -1; 1964 } 1965 for (int i = 0; i < 14; i++) { 1966 if (jj_la1[i] == jj_gen) { 1967 for (int j = 0; j < 32; j++) { 1968 if ((jj_la1_0[i] & (1 << j)) != 0) { 1969 la1tokens[j] = true; 1970 } 1971 if ((jj_la1_1[i] & (1 << j)) != 0) { 1972 la1tokens[32 + j] = true; 1973 } 1974 } 1975 } 1976 } 1977 for (int i = 0; i < 47; i++) { 1978 if (la1tokens[i]) { 1979 jj_expentry = new int[1]; 1980 jj_expentry[0] = i; 1981 jj_expentries.addElement(jj_expentry); 1982 } 1983 } 1984 jj_endpos = 0; 1985 jj_rescan_token(); 1986 jj_add_error_token(0, 0); 1987 int[][] exptokseq = new int[jj_expentries.size()][]; 1988 for (int i = 0; i < jj_expentries.size(); i++) { 1989 exptokseq[i] = (int[]) jj_expentries.elementAt(i); 1990 } 1991 return new ParseException(token, exptokseq, tokenImage); 1992 } 1993 1994 final public void enable_tracing() { 1995 } 1996 1997 final public void disable_tracing() { 1998 } 1999 2000 final private void jj_rescan_token() { 2001 jj_rescan = true; 2002 for (int i = 0; i < 16; i++) { 2003 JJCalls p = jj_2_rtns[i]; 2004 do { 2005 if (p.gen > jj_gen) { 2006 jj_la = p.arg; 2007 jj_lastpos = jj_scanpos = p.first; 2008 switch (i) { 2009 case 0: 2010 jj_3_1(); 2011 break; 2012 case 1: 2013 jj_3_2(); 2014 break; 2015 case 2: 2016 jj_3_3(); 2017 break; 2018 case 3: 2019 jj_3_4(); 2020 break; 2021 case 4: 2022 jj_3_5(); 2023 break; 2024 case 5: 2025 jj_3_6(); 2026 break; 2027 case 6: 2028 jj_3_7(); 2029 break; 2030 case 7: 2031 jj_3_8(); 2032 break; 2033 case 8: 2034 jj_3_9(); 2035 break; 2036 case 9: 2037 jj_3_10(); 2038 break; 2039 case 10: 2040 jj_3_11(); 2041 break; 2042 case 11: 2043 jj_3_12(); 2044 break; 2045 case 12: 2046 jj_3_13(); 2047 break; 2048 case 13: 2049 jj_3_14(); 2050 break; 2051 case 14: 2052 jj_3_15(); 2053 break; 2054 case 15: 2055 jj_3_16(); 2056 break; 2057 } 2058 } 2059 p = p.next; 2060 } while (p != null); 2061 } 2062 jj_rescan = false; 2063 } 2064 2065 final private void jj_save(int index, int xla) { 2066 JJCalls p = jj_2_rtns[index]; 2067 while (p.gen > jj_gen) { 2068 if (p.next == null) { 2069 p = p.next = new JJCalls(); 2070 break; 2071 } 2072 p = p.next; 2073 } 2074 p.gen = jj_gen + xla - jj_la; 2075 p.first = token; 2076 p.arg = xla; 2077 } 2078 2079 static final class JJCalls { 2080 int gen; 2081 Token first; 2082 int arg; 2083 JJCalls next; 2084 } 2085 2086} 2087 | Popular Tags |