diff options
Diffstat (limited to 'language-ide/src/main/xtext-gen/org/eclipse/viatra/solver/language/ide/contentassist/antlr/internal/InternalProblemLexer.java')
-rw-r--r-- | language-ide/src/main/xtext-gen/org/eclipse/viatra/solver/language/ide/contentassist/antlr/internal/InternalProblemLexer.java | 918 |
1 files changed, 495 insertions, 423 deletions
diff --git a/language-ide/src/main/xtext-gen/org/eclipse/viatra/solver/language/ide/contentassist/antlr/internal/InternalProblemLexer.java b/language-ide/src/main/xtext-gen/org/eclipse/viatra/solver/language/ide/contentassist/antlr/internal/InternalProblemLexer.java index 36b14a55..8e000971 100644 --- a/language-ide/src/main/xtext-gen/org/eclipse/viatra/solver/language/ide/contentassist/antlr/internal/InternalProblemLexer.java +++ b/language-ide/src/main/xtext-gen/org/eclipse/viatra/solver/language/ide/contentassist/antlr/internal/InternalProblemLexer.java | |||
@@ -50,6 +50,9 @@ public class InternalProblemLexer extends Lexer { | |||
50 | public static final int RULE_WS=10; | 50 | public static final int RULE_WS=10; |
51 | public static final int RULE_ANY_OTHER=11; | 51 | public static final int RULE_ANY_OTHER=11; |
52 | public static final int T__44=44; | 52 | public static final int T__44=44; |
53 | public static final int T__45=45; | ||
54 | public static final int T__46=46; | ||
55 | public static final int T__47=47; | ||
53 | public static final int T__40=40; | 56 | public static final int T__40=40; |
54 | public static final int T__41=41; | 57 | public static final int T__41=41; |
55 | public static final int T__42=42; | 58 | public static final int T__42=42; |
@@ -257,11 +260,10 @@ public class InternalProblemLexer extends Lexer { | |||
257 | try { | 260 | try { |
258 | int _type = T__21; | 261 | int _type = T__21; |
259 | int _channel = DEFAULT_TOKEN_CHANNEL; | 262 | int _channel = DEFAULT_TOKEN_CHANNEL; |
260 | // InternalProblem.g:20:7: ( 'unknown' ) | 263 | // InternalProblem.g:20:7: ( 'e' ) |
261 | // InternalProblem.g:20:9: 'unknown' | 264 | // InternalProblem.g:20:9: 'e' |
262 | { | 265 | { |
263 | match("unknown"); | 266 | match('e'); |
264 | |||
265 | 267 | ||
266 | } | 268 | } |
267 | 269 | ||
@@ -278,10 +280,10 @@ public class InternalProblemLexer extends Lexer { | |||
278 | try { | 280 | try { |
279 | int _type = T__22; | 281 | int _type = T__22; |
280 | int _channel = DEFAULT_TOKEN_CHANNEL; | 282 | int _channel = DEFAULT_TOKEN_CHANNEL; |
281 | // InternalProblem.g:21:7: ( '!' ) | 283 | // InternalProblem.g:21:7: ( 'E' ) |
282 | // InternalProblem.g:21:9: '!' | 284 | // InternalProblem.g:21:9: 'E' |
283 | { | 285 | { |
284 | match('!'); | 286 | match('E'); |
285 | 287 | ||
286 | } | 288 | } |
287 | 289 | ||
@@ -298,10 +300,10 @@ public class InternalProblemLexer extends Lexer { | |||
298 | try { | 300 | try { |
299 | int _type = T__23; | 301 | int _type = T__23; |
300 | int _channel = DEFAULT_TOKEN_CHANNEL; | 302 | int _channel = DEFAULT_TOKEN_CHANNEL; |
301 | // InternalProblem.g:22:7: ( '?' ) | 303 | // InternalProblem.g:22:7: ( '-' ) |
302 | // InternalProblem.g:22:9: '?' | 304 | // InternalProblem.g:22:9: '-' |
303 | { | 305 | { |
304 | match('?'); | 306 | match('-'); |
305 | 307 | ||
306 | } | 308 | } |
307 | 309 | ||
@@ -318,11 +320,10 @@ public class InternalProblemLexer extends Lexer { | |||
318 | try { | 320 | try { |
319 | int _type = T__24; | 321 | int _type = T__24; |
320 | int _channel = DEFAULT_TOKEN_CHANNEL; | 322 | int _channel = DEFAULT_TOKEN_CHANNEL; |
321 | // InternalProblem.g:23:7: ( 'problem' ) | 323 | // InternalProblem.g:23:7: ( '+' ) |
322 | // InternalProblem.g:23:9: 'problem' | 324 | // InternalProblem.g:23:9: '+' |
323 | { | 325 | { |
324 | match("problem"); | 326 | match('+'); |
325 | |||
326 | 327 | ||
327 | } | 328 | } |
328 | 329 | ||
@@ -339,10 +340,10 @@ public class InternalProblemLexer extends Lexer { | |||
339 | try { | 340 | try { |
340 | int _type = T__25; | 341 | int _type = T__25; |
341 | int _channel = DEFAULT_TOKEN_CHANNEL; | 342 | int _channel = DEFAULT_TOKEN_CHANNEL; |
342 | // InternalProblem.g:24:7: ( 'class' ) | 343 | // InternalProblem.g:24:7: ( 'unknown' ) |
343 | // InternalProblem.g:24:9: 'class' | 344 | // InternalProblem.g:24:9: 'unknown' |
344 | { | 345 | { |
345 | match("class"); | 346 | match("unknown"); |
346 | 347 | ||
347 | 348 | ||
348 | } | 349 | } |
@@ -360,11 +361,10 @@ public class InternalProblemLexer extends Lexer { | |||
360 | try { | 361 | try { |
361 | int _type = T__26; | 362 | int _type = T__26; |
362 | int _channel = DEFAULT_TOKEN_CHANNEL; | 363 | int _channel = DEFAULT_TOKEN_CHANNEL; |
363 | // InternalProblem.g:25:7: ( 'extends' ) | 364 | // InternalProblem.g:25:7: ( '!' ) |
364 | // InternalProblem.g:25:9: 'extends' | 365 | // InternalProblem.g:25:9: '!' |
365 | { | 366 | { |
366 | match("extends"); | 367 | match('!'); |
367 | |||
368 | 368 | ||
369 | } | 369 | } |
370 | 370 | ||
@@ -381,10 +381,10 @@ public class InternalProblemLexer extends Lexer { | |||
381 | try { | 381 | try { |
382 | int _type = T__27; | 382 | int _type = T__27; |
383 | int _channel = DEFAULT_TOKEN_CHANNEL; | 383 | int _channel = DEFAULT_TOKEN_CHANNEL; |
384 | // InternalProblem.g:26:7: ( '{' ) | 384 | // InternalProblem.g:26:7: ( '?' ) |
385 | // InternalProblem.g:26:9: '{' | 385 | // InternalProblem.g:26:9: '?' |
386 | { | 386 | { |
387 | match('{'); | 387 | match('?'); |
388 | 388 | ||
389 | } | 389 | } |
390 | 390 | ||
@@ -401,10 +401,11 @@ public class InternalProblemLexer extends Lexer { | |||
401 | try { | 401 | try { |
402 | int _type = T__28; | 402 | int _type = T__28; |
403 | int _channel = DEFAULT_TOKEN_CHANNEL; | 403 | int _channel = DEFAULT_TOKEN_CHANNEL; |
404 | // InternalProblem.g:27:7: ( '}' ) | 404 | // InternalProblem.g:27:7: ( 'problem' ) |
405 | // InternalProblem.g:27:9: '}' | 405 | // InternalProblem.g:27:9: 'problem' |
406 | { | 406 | { |
407 | match('}'); | 407 | match("problem"); |
408 | |||
408 | 409 | ||
409 | } | 410 | } |
410 | 411 | ||
@@ -421,10 +422,10 @@ public class InternalProblemLexer extends Lexer { | |||
421 | try { | 422 | try { |
422 | int _type = T__29; | 423 | int _type = T__29; |
423 | int _channel = DEFAULT_TOKEN_CHANNEL; | 424 | int _channel = DEFAULT_TOKEN_CHANNEL; |
424 | // InternalProblem.g:28:7: ( 'enum' ) | 425 | // InternalProblem.g:28:7: ( 'class' ) |
425 | // InternalProblem.g:28:9: 'enum' | 426 | // InternalProblem.g:28:9: 'class' |
426 | { | 427 | { |
427 | match("enum"); | 428 | match("class"); |
428 | 429 | ||
429 | 430 | ||
430 | } | 431 | } |
@@ -442,10 +443,11 @@ public class InternalProblemLexer extends Lexer { | |||
442 | try { | 443 | try { |
443 | int _type = T__30; | 444 | int _type = T__30; |
444 | int _channel = DEFAULT_TOKEN_CHANNEL; | 445 | int _channel = DEFAULT_TOKEN_CHANNEL; |
445 | // InternalProblem.g:29:7: ( '[' ) | 446 | // InternalProblem.g:29:7: ( 'extends' ) |
446 | // InternalProblem.g:29:9: '[' | 447 | // InternalProblem.g:29:9: 'extends' |
447 | { | 448 | { |
448 | match('['); | 449 | match("extends"); |
450 | |||
449 | 451 | ||
450 | } | 452 | } |
451 | 453 | ||
@@ -462,10 +464,10 @@ public class InternalProblemLexer extends Lexer { | |||
462 | try { | 464 | try { |
463 | int _type = T__31; | 465 | int _type = T__31; |
464 | int _channel = DEFAULT_TOKEN_CHANNEL; | 466 | int _channel = DEFAULT_TOKEN_CHANNEL; |
465 | // InternalProblem.g:30:7: ( ']' ) | 467 | // InternalProblem.g:30:7: ( '{' ) |
466 | // InternalProblem.g:30:9: ']' | 468 | // InternalProblem.g:30:9: '{' |
467 | { | 469 | { |
468 | match(']'); | 470 | match('{'); |
469 | 471 | ||
470 | } | 472 | } |
471 | 473 | ||
@@ -482,11 +484,10 @@ public class InternalProblemLexer extends Lexer { | |||
482 | try { | 484 | try { |
483 | int _type = T__32; | 485 | int _type = T__32; |
484 | int _channel = DEFAULT_TOKEN_CHANNEL; | 486 | int _channel = DEFAULT_TOKEN_CHANNEL; |
485 | // InternalProblem.g:31:7: ( 'opposite' ) | 487 | // InternalProblem.g:31:7: ( '}' ) |
486 | // InternalProblem.g:31:9: 'opposite' | 488 | // InternalProblem.g:31:9: '}' |
487 | { | 489 | { |
488 | match("opposite"); | 490 | match('}'); |
489 | |||
490 | 491 | ||
491 | } | 492 | } |
492 | 493 | ||
@@ -503,10 +504,11 @@ public class InternalProblemLexer extends Lexer { | |||
503 | try { | 504 | try { |
504 | int _type = T__33; | 505 | int _type = T__33; |
505 | int _channel = DEFAULT_TOKEN_CHANNEL; | 506 | int _channel = DEFAULT_TOKEN_CHANNEL; |
506 | // InternalProblem.g:32:7: ( '(' ) | 507 | // InternalProblem.g:32:7: ( 'enum' ) |
507 | // InternalProblem.g:32:9: '(' | 508 | // InternalProblem.g:32:9: 'enum' |
508 | { | 509 | { |
509 | match('('); | 510 | match("enum"); |
511 | |||
510 | 512 | ||
511 | } | 513 | } |
512 | 514 | ||
@@ -523,10 +525,10 @@ public class InternalProblemLexer extends Lexer { | |||
523 | try { | 525 | try { |
524 | int _type = T__34; | 526 | int _type = T__34; |
525 | int _channel = DEFAULT_TOKEN_CHANNEL; | 527 | int _channel = DEFAULT_TOKEN_CHANNEL; |
526 | // InternalProblem.g:33:7: ( ')' ) | 528 | // InternalProblem.g:33:7: ( '[' ) |
527 | // InternalProblem.g:33:9: ')' | 529 | // InternalProblem.g:33:9: '[' |
528 | { | 530 | { |
529 | match(')'); | 531 | match('['); |
530 | 532 | ||
531 | } | 533 | } |
532 | 534 | ||
@@ -543,11 +545,10 @@ public class InternalProblemLexer extends Lexer { | |||
543 | try { | 545 | try { |
544 | int _type = T__35; | 546 | int _type = T__35; |
545 | int _channel = DEFAULT_TOKEN_CHANNEL; | 547 | int _channel = DEFAULT_TOKEN_CHANNEL; |
546 | // InternalProblem.g:34:7: ( ':-' ) | 548 | // InternalProblem.g:34:7: ( ']' ) |
547 | // InternalProblem.g:34:9: ':-' | 549 | // InternalProblem.g:34:9: ']' |
548 | { | 550 | { |
549 | match(":-"); | 551 | match(']'); |
550 | |||
551 | 552 | ||
552 | } | 553 | } |
553 | 554 | ||
@@ -564,10 +565,11 @@ public class InternalProblemLexer extends Lexer { | |||
564 | try { | 565 | try { |
565 | int _type = T__36; | 566 | int _type = T__36; |
566 | int _channel = DEFAULT_TOKEN_CHANNEL; | 567 | int _channel = DEFAULT_TOKEN_CHANNEL; |
567 | // InternalProblem.g:35:7: ( ':' ) | 568 | // InternalProblem.g:35:7: ( 'opposite' ) |
568 | // InternalProblem.g:35:9: ':' | 569 | // InternalProblem.g:35:9: 'opposite' |
569 | { | 570 | { |
570 | match(':'); | 571 | match("opposite"); |
572 | |||
571 | 573 | ||
572 | } | 574 | } |
573 | 575 | ||
@@ -584,11 +586,10 @@ public class InternalProblemLexer extends Lexer { | |||
584 | try { | 586 | try { |
585 | int _type = T__37; | 587 | int _type = T__37; |
586 | int _channel = DEFAULT_TOKEN_CHANNEL; | 588 | int _channel = DEFAULT_TOKEN_CHANNEL; |
587 | // InternalProblem.g:36:7: ( 'scope' ) | 589 | // InternalProblem.g:36:7: ( '(' ) |
588 | // InternalProblem.g:36:9: 'scope' | 590 | // InternalProblem.g:36:9: '(' |
589 | { | 591 | { |
590 | match("scope"); | 592 | match('('); |
591 | |||
592 | 593 | ||
593 | } | 594 | } |
594 | 595 | ||
@@ -605,11 +606,10 @@ public class InternalProblemLexer extends Lexer { | |||
605 | try { | 606 | try { |
606 | int _type = T__38; | 607 | int _type = T__38; |
607 | int _channel = DEFAULT_TOKEN_CHANNEL; | 608 | int _channel = DEFAULT_TOKEN_CHANNEL; |
608 | // InternalProblem.g:37:7: ( '..' ) | 609 | // InternalProblem.g:37:7: ( ')' ) |
609 | // InternalProblem.g:37:9: '..' | 610 | // InternalProblem.g:37:9: ')' |
610 | { | 611 | { |
611 | match(".."); | 612 | match(')'); |
612 | |||
613 | 613 | ||
614 | } | 614 | } |
615 | 615 | ||
@@ -626,10 +626,10 @@ public class InternalProblemLexer extends Lexer { | |||
626 | try { | 626 | try { |
627 | int _type = T__39; | 627 | int _type = T__39; |
628 | int _channel = DEFAULT_TOKEN_CHANNEL; | 628 | int _channel = DEFAULT_TOKEN_CHANNEL; |
629 | // InternalProblem.g:38:7: ( '::' ) | 629 | // InternalProblem.g:38:7: ( ':-' ) |
630 | // InternalProblem.g:38:9: '::' | 630 | // InternalProblem.g:38:9: ':-' |
631 | { | 631 | { |
632 | match("::"); | 632 | match(":-"); |
633 | 633 | ||
634 | 634 | ||
635 | } | 635 | } |
@@ -647,11 +647,10 @@ public class InternalProblemLexer extends Lexer { | |||
647 | try { | 647 | try { |
648 | int _type = T__40; | 648 | int _type = T__40; |
649 | int _channel = DEFAULT_TOKEN_CHANNEL; | 649 | int _channel = DEFAULT_TOKEN_CHANNEL; |
650 | // InternalProblem.g:39:7: ( 'abstract' ) | 650 | // InternalProblem.g:39:7: ( ':' ) |
651 | // InternalProblem.g:39:9: 'abstract' | 651 | // InternalProblem.g:39:9: ':' |
652 | { | 652 | { |
653 | match("abstract"); | 653 | match(':'); |
654 | |||
655 | 654 | ||
656 | } | 655 | } |
657 | 656 | ||
@@ -668,10 +667,10 @@ public class InternalProblemLexer extends Lexer { | |||
668 | try { | 667 | try { |
669 | int _type = T__41; | 668 | int _type = T__41; |
670 | int _channel = DEFAULT_TOKEN_CHANNEL; | 669 | int _channel = DEFAULT_TOKEN_CHANNEL; |
671 | // InternalProblem.g:40:7: ( 'contains' ) | 670 | // InternalProblem.g:40:7: ( 'scope' ) |
672 | // InternalProblem.g:40:9: 'contains' | 671 | // InternalProblem.g:40:9: 'scope' |
673 | { | 672 | { |
674 | match("contains"); | 673 | match("scope"); |
675 | 674 | ||
676 | 675 | ||
677 | } | 676 | } |
@@ -689,10 +688,10 @@ public class InternalProblemLexer extends Lexer { | |||
689 | try { | 688 | try { |
690 | int _type = T__42; | 689 | int _type = T__42; |
691 | int _channel = DEFAULT_TOKEN_CHANNEL; | 690 | int _channel = DEFAULT_TOKEN_CHANNEL; |
692 | // InternalProblem.g:41:7: ( 'error' ) | 691 | // InternalProblem.g:41:7: ( '..' ) |
693 | // InternalProblem.g:41:9: 'error' | 692 | // InternalProblem.g:41:9: '..' |
694 | { | 693 | { |
695 | match("error"); | 694 | match(".."); |
696 | 695 | ||
697 | 696 | ||
698 | } | 697 | } |
@@ -710,10 +709,11 @@ public class InternalProblemLexer extends Lexer { | |||
710 | try { | 709 | try { |
711 | int _type = T__43; | 710 | int _type = T__43; |
712 | int _channel = DEFAULT_TOKEN_CHANNEL; | 711 | int _channel = DEFAULT_TOKEN_CHANNEL; |
713 | // InternalProblem.g:42:7: ( '+' ) | 712 | // InternalProblem.g:42:7: ( '::' ) |
714 | // InternalProblem.g:42:9: '+' | 713 | // InternalProblem.g:42:9: '::' |
715 | { | 714 | { |
716 | match('+'); | 715 | match("::"); |
716 | |||
717 | 717 | ||
718 | } | 718 | } |
719 | 719 | ||
@@ -730,10 +730,10 @@ public class InternalProblemLexer extends Lexer { | |||
730 | try { | 730 | try { |
731 | int _type = T__44; | 731 | int _type = T__44; |
732 | int _channel = DEFAULT_TOKEN_CHANNEL; | 732 | int _channel = DEFAULT_TOKEN_CHANNEL; |
733 | // InternalProblem.g:43:7: ( '+=' ) | 733 | // InternalProblem.g:43:7: ( 'abstract' ) |
734 | // InternalProblem.g:43:9: '+=' | 734 | // InternalProblem.g:43:9: 'abstract' |
735 | { | 735 | { |
736 | match("+="); | 736 | match("abstract"); |
737 | 737 | ||
738 | 738 | ||
739 | } | 739 | } |
@@ -746,32 +746,156 @@ public class InternalProblemLexer extends Lexer { | |||
746 | } | 746 | } |
747 | // $ANTLR end "T__44" | 747 | // $ANTLR end "T__44" |
748 | 748 | ||
749 | // $ANTLR start "T__45" | ||
750 | public final void mT__45() throws RecognitionException { | ||
751 | try { | ||
752 | int _type = T__45; | ||
753 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
754 | // InternalProblem.g:44:7: ( 'contains' ) | ||
755 | // InternalProblem.g:44:9: 'contains' | ||
756 | { | ||
757 | match("contains"); | ||
758 | |||
759 | |||
760 | } | ||
761 | |||
762 | state.type = _type; | ||
763 | state.channel = _channel; | ||
764 | } | ||
765 | finally { | ||
766 | } | ||
767 | } | ||
768 | // $ANTLR end "T__45" | ||
769 | |||
770 | // $ANTLR start "T__46" | ||
771 | public final void mT__46() throws RecognitionException { | ||
772 | try { | ||
773 | int _type = T__46; | ||
774 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
775 | // InternalProblem.g:45:7: ( 'error' ) | ||
776 | // InternalProblem.g:45:9: 'error' | ||
777 | { | ||
778 | match("error"); | ||
779 | |||
780 | |||
781 | } | ||
782 | |||
783 | state.type = _type; | ||
784 | state.channel = _channel; | ||
785 | } | ||
786 | finally { | ||
787 | } | ||
788 | } | ||
789 | // $ANTLR end "T__46" | ||
790 | |||
791 | // $ANTLR start "T__47" | ||
792 | public final void mT__47() throws RecognitionException { | ||
793 | try { | ||
794 | int _type = T__47; | ||
795 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
796 | // InternalProblem.g:46:7: ( '+=' ) | ||
797 | // InternalProblem.g:46:9: '+=' | ||
798 | { | ||
799 | match("+="); | ||
800 | |||
801 | |||
802 | } | ||
803 | |||
804 | state.type = _type; | ||
805 | state.channel = _channel; | ||
806 | } | ||
807 | finally { | ||
808 | } | ||
809 | } | ||
810 | // $ANTLR end "T__47" | ||
811 | |||
812 | // $ANTLR start "RULE_ID" | ||
813 | public final void mRULE_ID() throws RecognitionException { | ||
814 | try { | ||
815 | int _type = RULE_ID; | ||
816 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
817 | // InternalProblem.g:6069:9: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* ) | ||
818 | // InternalProblem.g:6069:11: ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | ||
819 | { | ||
820 | if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) { | ||
821 | input.consume(); | ||
822 | |||
823 | } | ||
824 | else { | ||
825 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
826 | recover(mse); | ||
827 | throw mse;} | ||
828 | |||
829 | // InternalProblem.g:6069:35: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | ||
830 | loop1: | ||
831 | do { | ||
832 | int alt1=2; | ||
833 | int LA1_0 = input.LA(1); | ||
834 | |||
835 | if ( ((LA1_0>='0' && LA1_0<='9')||(LA1_0>='A' && LA1_0<='Z')||LA1_0=='_'||(LA1_0>='a' && LA1_0<='z')) ) { | ||
836 | alt1=1; | ||
837 | } | ||
838 | |||
839 | |||
840 | switch (alt1) { | ||
841 | case 1 : | ||
842 | // InternalProblem.g: | ||
843 | { | ||
844 | if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) { | ||
845 | input.consume(); | ||
846 | |||
847 | } | ||
848 | else { | ||
849 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
850 | recover(mse); | ||
851 | throw mse;} | ||
852 | |||
853 | |||
854 | } | ||
855 | break; | ||
856 | |||
857 | default : | ||
858 | break loop1; | ||
859 | } | ||
860 | } while (true); | ||
861 | |||
862 | |||
863 | } | ||
864 | |||
865 | state.type = _type; | ||
866 | state.channel = _channel; | ||
867 | } | ||
868 | finally { | ||
869 | } | ||
870 | } | ||
871 | // $ANTLR end "RULE_ID" | ||
872 | |||
749 | // $ANTLR start "RULE_STRING" | 873 | // $ANTLR start "RULE_STRING" |
750 | public final void mRULE_STRING() throws RecognitionException { | 874 | public final void mRULE_STRING() throws RecognitionException { |
751 | try { | 875 | try { |
752 | int _type = RULE_STRING; | 876 | int _type = RULE_STRING; |
753 | int _channel = DEFAULT_TOKEN_CHANNEL; | 877 | int _channel = DEFAULT_TOKEN_CHANNEL; |
754 | // InternalProblem.g:5024:13: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' ) | 878 | // InternalProblem.g:6071:13: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' ) |
755 | // InternalProblem.g:5024:15: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | 879 | // InternalProblem.g:6071:15: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' |
756 | { | 880 | { |
757 | match('\"'); | 881 | match('\"'); |
758 | // InternalProblem.g:5024:19: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* | 882 | // InternalProblem.g:6071:19: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* |
759 | loop1: | 883 | loop2: |
760 | do { | 884 | do { |
761 | int alt1=3; | 885 | int alt2=3; |
762 | int LA1_0 = input.LA(1); | 886 | int LA2_0 = input.LA(1); |
763 | 887 | ||
764 | if ( (LA1_0=='\\') ) { | 888 | if ( (LA2_0=='\\') ) { |
765 | alt1=1; | 889 | alt2=1; |
766 | } | 890 | } |
767 | else if ( ((LA1_0>='\u0000' && LA1_0<='!')||(LA1_0>='#' && LA1_0<='[')||(LA1_0>=']' && LA1_0<='\uFFFF')) ) { | 891 | else if ( ((LA2_0>='\u0000' && LA2_0<='!')||(LA2_0>='#' && LA2_0<='[')||(LA2_0>=']' && LA2_0<='\uFFFF')) ) { |
768 | alt1=2; | 892 | alt2=2; |
769 | } | 893 | } |
770 | 894 | ||
771 | 895 | ||
772 | switch (alt1) { | 896 | switch (alt2) { |
773 | case 1 : | 897 | case 1 : |
774 | // InternalProblem.g:5024:20: '\\\\' . | 898 | // InternalProblem.g:6071:20: '\\\\' . |
775 | { | 899 | { |
776 | match('\\'); | 900 | match('\\'); |
777 | matchAny(); | 901 | matchAny(); |
@@ -779,7 +903,7 @@ public class InternalProblemLexer extends Lexer { | |||
779 | } | 903 | } |
780 | break; | 904 | break; |
781 | case 2 : | 905 | case 2 : |
782 | // InternalProblem.g:5024:27: ~ ( ( '\\\\' | '\"' ) ) | 906 | // InternalProblem.g:6071:27: ~ ( ( '\\\\' | '\"' ) ) |
783 | { | 907 | { |
784 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { | 908 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { |
785 | input.consume(); | 909 | input.consume(); |
@@ -795,7 +919,7 @@ public class InternalProblemLexer extends Lexer { | |||
795 | break; | 919 | break; |
796 | 920 | ||
797 | default : | 921 | default : |
798 | break loop1; | 922 | break loop2; |
799 | } | 923 | } |
800 | } while (true); | 924 | } while (true); |
801 | 925 | ||
@@ -816,27 +940,27 @@ public class InternalProblemLexer extends Lexer { | |||
816 | try { | 940 | try { |
817 | int _type = RULE_QUOTED_ID; | 941 | int _type = RULE_QUOTED_ID; |
818 | int _channel = DEFAULT_TOKEN_CHANNEL; | 942 | int _channel = DEFAULT_TOKEN_CHANNEL; |
819 | // InternalProblem.g:5026:16: ( '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) | 943 | // InternalProblem.g:6073:16: ( '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) |
820 | // InternalProblem.g:5026:18: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' | 944 | // InternalProblem.g:6073:18: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' |
821 | { | 945 | { |
822 | match('\''); | 946 | match('\''); |
823 | // InternalProblem.g:5026:23: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* | 947 | // InternalProblem.g:6073:23: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* |
824 | loop2: | 948 | loop3: |
825 | do { | 949 | do { |
826 | int alt2=3; | 950 | int alt3=3; |
827 | int LA2_0 = input.LA(1); | 951 | int LA3_0 = input.LA(1); |
828 | 952 | ||
829 | if ( (LA2_0=='\\') ) { | 953 | if ( (LA3_0=='\\') ) { |
830 | alt2=1; | 954 | alt3=1; |
831 | } | 955 | } |
832 | else if ( ((LA2_0>='\u0000' && LA2_0<='&')||(LA2_0>='(' && LA2_0<='[')||(LA2_0>=']' && LA2_0<='\uFFFF')) ) { | 956 | else if ( ((LA3_0>='\u0000' && LA3_0<='&')||(LA3_0>='(' && LA3_0<='[')||(LA3_0>=']' && LA3_0<='\uFFFF')) ) { |
833 | alt2=2; | 957 | alt3=2; |
834 | } | 958 | } |
835 | 959 | ||
836 | 960 | ||
837 | switch (alt2) { | 961 | switch (alt3) { |
838 | case 1 : | 962 | case 1 : |
839 | // InternalProblem.g:5026:24: '\\\\' . | 963 | // InternalProblem.g:6073:24: '\\\\' . |
840 | { | 964 | { |
841 | match('\\'); | 965 | match('\\'); |
842 | matchAny(); | 966 | matchAny(); |
@@ -844,7 +968,7 @@ public class InternalProblemLexer extends Lexer { | |||
844 | } | 968 | } |
845 | break; | 969 | break; |
846 | case 2 : | 970 | case 2 : |
847 | // InternalProblem.g:5026:31: ~ ( ( '\\\\' | '\\'' ) ) | 971 | // InternalProblem.g:6073:31: ~ ( ( '\\\\' | '\\'' ) ) |
848 | { | 972 | { |
849 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { | 973 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { |
850 | input.consume(); | 974 | input.consume(); |
@@ -860,7 +984,7 @@ public class InternalProblemLexer extends Lexer { | |||
860 | break; | 984 | break; |
861 | 985 | ||
862 | default : | 986 | default : |
863 | break loop2; | 987 | break loop3; |
864 | } | 988 | } |
865 | } while (true); | 989 | } while (true); |
866 | 990 | ||
@@ -881,35 +1005,35 @@ public class InternalProblemLexer extends Lexer { | |||
881 | try { | 1005 | try { |
882 | int _type = RULE_SL_COMMENT; | 1006 | int _type = RULE_SL_COMMENT; |
883 | int _channel = DEFAULT_TOKEN_CHANNEL; | 1007 | int _channel = DEFAULT_TOKEN_CHANNEL; |
884 | // InternalProblem.g:5028:17: ( ( '%' | '//' ) (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? ) | 1008 | // InternalProblem.g:6075:17: ( ( '%' | '//' ) (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? ) |
885 | // InternalProblem.g:5028:19: ( '%' | '//' ) (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? | 1009 | // InternalProblem.g:6075:19: ( '%' | '//' ) (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? |
886 | { | 1010 | { |
887 | // InternalProblem.g:5028:19: ( '%' | '//' ) | 1011 | // InternalProblem.g:6075:19: ( '%' | '//' ) |
888 | int alt3=2; | 1012 | int alt4=2; |
889 | int LA3_0 = input.LA(1); | 1013 | int LA4_0 = input.LA(1); |
890 | 1014 | ||
891 | if ( (LA3_0=='%') ) { | 1015 | if ( (LA4_0=='%') ) { |
892 | alt3=1; | 1016 | alt4=1; |
893 | } | 1017 | } |
894 | else if ( (LA3_0=='/') ) { | 1018 | else if ( (LA4_0=='/') ) { |
895 | alt3=2; | 1019 | alt4=2; |
896 | } | 1020 | } |
897 | else { | 1021 | else { |
898 | NoViableAltException nvae = | 1022 | NoViableAltException nvae = |
899 | new NoViableAltException("", 3, 0, input); | 1023 | new NoViableAltException("", 4, 0, input); |
900 | 1024 | ||
901 | throw nvae; | 1025 | throw nvae; |
902 | } | 1026 | } |
903 | switch (alt3) { | 1027 | switch (alt4) { |
904 | case 1 : | 1028 | case 1 : |
905 | // InternalProblem.g:5028:20: '%' | 1029 | // InternalProblem.g:6075:20: '%' |
906 | { | 1030 | { |
907 | match('%'); | 1031 | match('%'); |
908 | 1032 | ||
909 | } | 1033 | } |
910 | break; | 1034 | break; |
911 | case 2 : | 1035 | case 2 : |
912 | // InternalProblem.g:5028:24: '//' | 1036 | // InternalProblem.g:6075:24: '//' |
913 | { | 1037 | { |
914 | match("//"); | 1038 | match("//"); |
915 | 1039 | ||
@@ -919,20 +1043,20 @@ public class InternalProblemLexer extends Lexer { | |||
919 | 1043 | ||
920 | } | 1044 | } |
921 | 1045 | ||
922 | // InternalProblem.g:5028:30: (~ ( ( '\\n' | '\\r' ) ) )* | 1046 | // InternalProblem.g:6075:30: (~ ( ( '\\n' | '\\r' ) ) )* |
923 | loop4: | 1047 | loop5: |
924 | do { | 1048 | do { |
925 | int alt4=2; | 1049 | int alt5=2; |
926 | int LA4_0 = input.LA(1); | 1050 | int LA5_0 = input.LA(1); |
927 | 1051 | ||
928 | if ( ((LA4_0>='\u0000' && LA4_0<='\t')||(LA4_0>='\u000B' && LA4_0<='\f')||(LA4_0>='\u000E' && LA4_0<='\uFFFF')) ) { | 1052 | if ( ((LA5_0>='\u0000' && LA5_0<='\t')||(LA5_0>='\u000B' && LA5_0<='\f')||(LA5_0>='\u000E' && LA5_0<='\uFFFF')) ) { |
929 | alt4=1; | 1053 | alt5=1; |
930 | } | 1054 | } |
931 | 1055 | ||
932 | 1056 | ||
933 | switch (alt4) { | 1057 | switch (alt5) { |
934 | case 1 : | 1058 | case 1 : |
935 | // InternalProblem.g:5028:30: ~ ( ( '\\n' | '\\r' ) ) | 1059 | // InternalProblem.g:6075:30: ~ ( ( '\\n' | '\\r' ) ) |
936 | { | 1060 | { |
937 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) { | 1061 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) { |
938 | input.consume(); | 1062 | input.consume(); |
@@ -948,31 +1072,31 @@ public class InternalProblemLexer extends Lexer { | |||
948 | break; | 1072 | break; |
949 | 1073 | ||
950 | default : | 1074 | default : |
951 | break loop4; | 1075 | break loop5; |
952 | } | 1076 | } |
953 | } while (true); | 1077 | } while (true); |
954 | 1078 | ||
955 | // InternalProblem.g:5028:46: ( ( '\\r' )? '\\n' )? | 1079 | // InternalProblem.g:6075:46: ( ( '\\r' )? '\\n' )? |
956 | int alt6=2; | 1080 | int alt7=2; |
957 | int LA6_0 = input.LA(1); | 1081 | int LA7_0 = input.LA(1); |
958 | 1082 | ||
959 | if ( (LA6_0=='\n'||LA6_0=='\r') ) { | 1083 | if ( (LA7_0=='\n'||LA7_0=='\r') ) { |
960 | alt6=1; | 1084 | alt7=1; |
961 | } | 1085 | } |
962 | switch (alt6) { | 1086 | switch (alt7) { |
963 | case 1 : | 1087 | case 1 : |
964 | // InternalProblem.g:5028:47: ( '\\r' )? '\\n' | 1088 | // InternalProblem.g:6075:47: ( '\\r' )? '\\n' |
965 | { | 1089 | { |
966 | // InternalProblem.g:5028:47: ( '\\r' )? | 1090 | // InternalProblem.g:6075:47: ( '\\r' )? |
967 | int alt5=2; | 1091 | int alt6=2; |
968 | int LA5_0 = input.LA(1); | 1092 | int LA6_0 = input.LA(1); |
969 | 1093 | ||
970 | if ( (LA5_0=='\r') ) { | 1094 | if ( (LA6_0=='\r') ) { |
971 | alt5=1; | 1095 | alt6=1; |
972 | } | 1096 | } |
973 | switch (alt5) { | 1097 | switch (alt6) { |
974 | case 1 : | 1098 | case 1 : |
975 | // InternalProblem.g:5028:47: '\\r' | 1099 | // InternalProblem.g:6075:47: '\\r' |
976 | { | 1100 | { |
977 | match('\r'); | 1101 | match('\r'); |
978 | 1102 | ||
@@ -999,108 +1123,29 @@ public class InternalProblemLexer extends Lexer { | |||
999 | } | 1123 | } |
1000 | // $ANTLR end "RULE_SL_COMMENT" | 1124 | // $ANTLR end "RULE_SL_COMMENT" |
1001 | 1125 | ||
1002 | // $ANTLR start "RULE_ID" | 1126 | // $ANTLR start "RULE_INT" |
1003 | public final void mRULE_ID() throws RecognitionException { | 1127 | public final void mRULE_INT() throws RecognitionException { |
1004 | try { | 1128 | try { |
1005 | int _type = RULE_ID; | 1129 | int _type = RULE_INT; |
1006 | int _channel = DEFAULT_TOKEN_CHANNEL; | 1130 | int _channel = DEFAULT_TOKEN_CHANNEL; |
1007 | // InternalProblem.g:5030:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* ) | 1131 | // InternalProblem.g:6077:10: ( ( '0' .. '9' )+ ) |
1008 | // InternalProblem.g:5030:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | 1132 | // InternalProblem.g:6077:12: ( '0' .. '9' )+ |
1009 | { | 1133 | { |
1010 | // InternalProblem.g:5030:11: ( '^' )? | 1134 | // InternalProblem.g:6077:12: ( '0' .. '9' )+ |
1011 | int alt7=2; | 1135 | int cnt8=0; |
1012 | int LA7_0 = input.LA(1); | ||
1013 | |||
1014 | if ( (LA7_0=='^') ) { | ||
1015 | alt7=1; | ||
1016 | } | ||
1017 | switch (alt7) { | ||
1018 | case 1 : | ||
1019 | // InternalProblem.g:5030:11: '^' | ||
1020 | { | ||
1021 | match('^'); | ||
1022 | |||
1023 | } | ||
1024 | break; | ||
1025 | |||
1026 | } | ||
1027 | |||
1028 | if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) { | ||
1029 | input.consume(); | ||
1030 | |||
1031 | } | ||
1032 | else { | ||
1033 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
1034 | recover(mse); | ||
1035 | throw mse;} | ||
1036 | |||
1037 | // InternalProblem.g:5030:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | ||
1038 | loop8: | 1136 | loop8: |
1039 | do { | 1137 | do { |
1040 | int alt8=2; | 1138 | int alt8=2; |
1041 | int LA8_0 = input.LA(1); | 1139 | int LA8_0 = input.LA(1); |
1042 | 1140 | ||
1043 | if ( ((LA8_0>='0' && LA8_0<='9')||(LA8_0>='A' && LA8_0<='Z')||LA8_0=='_'||(LA8_0>='a' && LA8_0<='z')) ) { | 1141 | if ( ((LA8_0>='0' && LA8_0<='9')) ) { |
1044 | alt8=1; | 1142 | alt8=1; |
1045 | } | 1143 | } |
1046 | 1144 | ||
1047 | 1145 | ||
1048 | switch (alt8) { | 1146 | switch (alt8) { |
1049 | case 1 : | 1147 | case 1 : |
1050 | // InternalProblem.g: | 1148 | // InternalProblem.g:6077:13: '0' .. '9' |
1051 | { | ||
1052 | if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) { | ||
1053 | input.consume(); | ||
1054 | |||
1055 | } | ||
1056 | else { | ||
1057 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
1058 | recover(mse); | ||
1059 | throw mse;} | ||
1060 | |||
1061 | |||
1062 | } | ||
1063 | break; | ||
1064 | |||
1065 | default : | ||
1066 | break loop8; | ||
1067 | } | ||
1068 | } while (true); | ||
1069 | |||
1070 | |||
1071 | } | ||
1072 | |||
1073 | state.type = _type; | ||
1074 | state.channel = _channel; | ||
1075 | } | ||
1076 | finally { | ||
1077 | } | ||
1078 | } | ||
1079 | // $ANTLR end "RULE_ID" | ||
1080 | |||
1081 | // $ANTLR start "RULE_INT" | ||
1082 | public final void mRULE_INT() throws RecognitionException { | ||
1083 | try { | ||
1084 | int _type = RULE_INT; | ||
1085 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
1086 | // InternalProblem.g:5032:10: ( ( '0' .. '9' )+ ) | ||
1087 | // InternalProblem.g:5032:12: ( '0' .. '9' )+ | ||
1088 | { | ||
1089 | // InternalProblem.g:5032:12: ( '0' .. '9' )+ | ||
1090 | int cnt9=0; | ||
1091 | loop9: | ||
1092 | do { | ||
1093 | int alt9=2; | ||
1094 | int LA9_0 = input.LA(1); | ||
1095 | |||
1096 | if ( ((LA9_0>='0' && LA9_0<='9')) ) { | ||
1097 | alt9=1; | ||
1098 | } | ||
1099 | |||
1100 | |||
1101 | switch (alt9) { | ||
1102 | case 1 : | ||
1103 | // InternalProblem.g:5032:13: '0' .. '9' | ||
1104 | { | 1149 | { |
1105 | matchRange('0','9'); | 1150 | matchRange('0','9'); |
1106 | 1151 | ||
@@ -1108,12 +1153,12 @@ public class InternalProblemLexer extends Lexer { | |||
1108 | break; | 1153 | break; |
1109 | 1154 | ||
1110 | default : | 1155 | default : |
1111 | if ( cnt9 >= 1 ) break loop9; | 1156 | if ( cnt8 >= 1 ) break loop8; |
1112 | EarlyExitException eee = | 1157 | EarlyExitException eee = |
1113 | new EarlyExitException(9, input); | 1158 | new EarlyExitException(8, input); |
1114 | throw eee; | 1159 | throw eee; |
1115 | } | 1160 | } |
1116 | cnt9++; | 1161 | cnt8++; |
1117 | } while (true); | 1162 | } while (true); |
1118 | 1163 | ||
1119 | 1164 | ||
@@ -1132,37 +1177,37 @@ public class InternalProblemLexer extends Lexer { | |||
1132 | try { | 1177 | try { |
1133 | int _type = RULE_ML_COMMENT; | 1178 | int _type = RULE_ML_COMMENT; |
1134 | int _channel = DEFAULT_TOKEN_CHANNEL; | 1179 | int _channel = DEFAULT_TOKEN_CHANNEL; |
1135 | // InternalProblem.g:5034:17: ( '/*' ( options {greedy=false; } : . )* '*/' ) | 1180 | // InternalProblem.g:6079:17: ( '/*' ( options {greedy=false; } : . )* '*/' ) |
1136 | // InternalProblem.g:5034:19: '/*' ( options {greedy=false; } : . )* '*/' | 1181 | // InternalProblem.g:6079:19: '/*' ( options {greedy=false; } : . )* '*/' |
1137 | { | 1182 | { |
1138 | match("/*"); | 1183 | match("/*"); |
1139 | 1184 | ||
1140 | // InternalProblem.g:5034:24: ( options {greedy=false; } : . )* | 1185 | // InternalProblem.g:6079:24: ( options {greedy=false; } : . )* |
1141 | loop10: | 1186 | loop9: |
1142 | do { | 1187 | do { |
1143 | int alt10=2; | 1188 | int alt9=2; |
1144 | int LA10_0 = input.LA(1); | 1189 | int LA9_0 = input.LA(1); |
1145 | 1190 | ||
1146 | if ( (LA10_0=='*') ) { | 1191 | if ( (LA9_0=='*') ) { |
1147 | int LA10_1 = input.LA(2); | 1192 | int LA9_1 = input.LA(2); |
1148 | 1193 | ||
1149 | if ( (LA10_1=='/') ) { | 1194 | if ( (LA9_1=='/') ) { |
1150 | alt10=2; | 1195 | alt9=2; |
1151 | } | 1196 | } |
1152 | else if ( ((LA10_1>='\u0000' && LA10_1<='.')||(LA10_1>='0' && LA10_1<='\uFFFF')) ) { | 1197 | else if ( ((LA9_1>='\u0000' && LA9_1<='.')||(LA9_1>='0' && LA9_1<='\uFFFF')) ) { |
1153 | alt10=1; | 1198 | alt9=1; |
1154 | } | 1199 | } |
1155 | 1200 | ||
1156 | 1201 | ||
1157 | } | 1202 | } |
1158 | else if ( ((LA10_0>='\u0000' && LA10_0<=')')||(LA10_0>='+' && LA10_0<='\uFFFF')) ) { | 1203 | else if ( ((LA9_0>='\u0000' && LA9_0<=')')||(LA9_0>='+' && LA9_0<='\uFFFF')) ) { |
1159 | alt10=1; | 1204 | alt9=1; |
1160 | } | 1205 | } |
1161 | 1206 | ||
1162 | 1207 | ||
1163 | switch (alt10) { | 1208 | switch (alt9) { |
1164 | case 1 : | 1209 | case 1 : |
1165 | // InternalProblem.g:5034:52: . | 1210 | // InternalProblem.g:6079:52: . |
1166 | { | 1211 | { |
1167 | matchAny(); | 1212 | matchAny(); |
1168 | 1213 | ||
@@ -1170,7 +1215,7 @@ public class InternalProblemLexer extends Lexer { | |||
1170 | break; | 1215 | break; |
1171 | 1216 | ||
1172 | default : | 1217 | default : |
1173 | break loop10; | 1218 | break loop9; |
1174 | } | 1219 | } |
1175 | } while (true); | 1220 | } while (true); |
1176 | 1221 | ||
@@ -1192,22 +1237,22 @@ public class InternalProblemLexer extends Lexer { | |||
1192 | try { | 1237 | try { |
1193 | int _type = RULE_WS; | 1238 | int _type = RULE_WS; |
1194 | int _channel = DEFAULT_TOKEN_CHANNEL; | 1239 | int _channel = DEFAULT_TOKEN_CHANNEL; |
1195 | // InternalProblem.g:5036:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) | 1240 | // InternalProblem.g:6081:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) |
1196 | // InternalProblem.g:5036:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ | 1241 | // InternalProblem.g:6081:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ |
1197 | { | 1242 | { |
1198 | // InternalProblem.g:5036:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ | 1243 | // InternalProblem.g:6081:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ |
1199 | int cnt11=0; | 1244 | int cnt10=0; |
1200 | loop11: | 1245 | loop10: |
1201 | do { | 1246 | do { |
1202 | int alt11=2; | 1247 | int alt10=2; |
1203 | int LA11_0 = input.LA(1); | 1248 | int LA10_0 = input.LA(1); |
1204 | 1249 | ||
1205 | if ( ((LA11_0>='\t' && LA11_0<='\n')||LA11_0=='\r'||LA11_0==' ') ) { | 1250 | if ( ((LA10_0>='\t' && LA10_0<='\n')||LA10_0=='\r'||LA10_0==' ') ) { |
1206 | alt11=1; | 1251 | alt10=1; |
1207 | } | 1252 | } |
1208 | 1253 | ||
1209 | 1254 | ||
1210 | switch (alt11) { | 1255 | switch (alt10) { |
1211 | case 1 : | 1256 | case 1 : |
1212 | // InternalProblem.g: | 1257 | // InternalProblem.g: |
1213 | { | 1258 | { |
@@ -1225,12 +1270,12 @@ public class InternalProblemLexer extends Lexer { | |||
1225 | break; | 1270 | break; |
1226 | 1271 | ||
1227 | default : | 1272 | default : |
1228 | if ( cnt11 >= 1 ) break loop11; | 1273 | if ( cnt10 >= 1 ) break loop10; |
1229 | EarlyExitException eee = | 1274 | EarlyExitException eee = |
1230 | new EarlyExitException(11, input); | 1275 | new EarlyExitException(10, input); |
1231 | throw eee; | 1276 | throw eee; |
1232 | } | 1277 | } |
1233 | cnt11++; | 1278 | cnt10++; |
1234 | } while (true); | 1279 | } while (true); |
1235 | 1280 | ||
1236 | 1281 | ||
@@ -1249,8 +1294,8 @@ public class InternalProblemLexer extends Lexer { | |||
1249 | try { | 1294 | try { |
1250 | int _type = RULE_ANY_OTHER; | 1295 | int _type = RULE_ANY_OTHER; |
1251 | int _channel = DEFAULT_TOKEN_CHANNEL; | 1296 | int _channel = DEFAULT_TOKEN_CHANNEL; |
1252 | // InternalProblem.g:5038:16: ( . ) | 1297 | // InternalProblem.g:6083:16: ( . ) |
1253 | // InternalProblem.g:5038:18: . | 1298 | // InternalProblem.g:6083:18: . |
1254 | { | 1299 | { |
1255 | matchAny(); | 1300 | matchAny(); |
1256 | 1301 | ||
@@ -1265,10 +1310,10 @@ public class InternalProblemLexer extends Lexer { | |||
1265 | // $ANTLR end "RULE_ANY_OTHER" | 1310 | // $ANTLR end "RULE_ANY_OTHER" |
1266 | 1311 | ||
1267 | public void mTokens() throws RecognitionException { | 1312 | public void mTokens() throws RecognitionException { |
1268 | // InternalProblem.g:1:8: ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | T__41 | T__42 | T__43 | T__44 | RULE_STRING | RULE_QUOTED_ID | RULE_SL_COMMENT | RULE_ID | RULE_INT | RULE_ML_COMMENT | RULE_WS | RULE_ANY_OTHER ) | 1313 | // InternalProblem.g:1:8: ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | T__41 | T__42 | T__43 | T__44 | T__45 | T__46 | T__47 | RULE_ID | RULE_STRING | RULE_QUOTED_ID | RULE_SL_COMMENT | RULE_INT | RULE_ML_COMMENT | RULE_WS | RULE_ANY_OTHER ) |
1269 | int alt12=41; | 1314 | int alt11=44; |
1270 | alt12 = dfa12.predict(input); | 1315 | alt11 = dfa11.predict(input); |
1271 | switch (alt12) { | 1316 | switch (alt11) { |
1272 | case 1 : | 1317 | case 1 : |
1273 | // InternalProblem.g:1:10: T__12 | 1318 | // InternalProblem.g:1:10: T__12 |
1274 | { | 1319 | { |
@@ -1501,56 +1546,77 @@ public class InternalProblemLexer extends Lexer { | |||
1501 | } | 1546 | } |
1502 | break; | 1547 | break; |
1503 | case 34 : | 1548 | case 34 : |
1504 | // InternalProblem.g:1:208: RULE_STRING | 1549 | // InternalProblem.g:1:208: T__45 |
1505 | { | 1550 | { |
1506 | mRULE_STRING(); | 1551 | mT__45(); |
1507 | 1552 | ||
1508 | } | 1553 | } |
1509 | break; | 1554 | break; |
1510 | case 35 : | 1555 | case 35 : |
1511 | // InternalProblem.g:1:220: RULE_QUOTED_ID | 1556 | // InternalProblem.g:1:214: T__46 |
1512 | { | 1557 | { |
1513 | mRULE_QUOTED_ID(); | 1558 | mT__46(); |
1514 | 1559 | ||
1515 | } | 1560 | } |
1516 | break; | 1561 | break; |
1517 | case 36 : | 1562 | case 36 : |
1518 | // InternalProblem.g:1:235: RULE_SL_COMMENT | 1563 | // InternalProblem.g:1:220: T__47 |
1519 | { | 1564 | { |
1520 | mRULE_SL_COMMENT(); | 1565 | mT__47(); |
1521 | 1566 | ||
1522 | } | 1567 | } |
1523 | break; | 1568 | break; |
1524 | case 37 : | 1569 | case 37 : |
1525 | // InternalProblem.g:1:251: RULE_ID | 1570 | // InternalProblem.g:1:226: RULE_ID |
1526 | { | 1571 | { |
1527 | mRULE_ID(); | 1572 | mRULE_ID(); |
1528 | 1573 | ||
1529 | } | 1574 | } |
1530 | break; | 1575 | break; |
1531 | case 38 : | 1576 | case 38 : |
1532 | // InternalProblem.g:1:259: RULE_INT | 1577 | // InternalProblem.g:1:234: RULE_STRING |
1533 | { | 1578 | { |
1534 | mRULE_INT(); | 1579 | mRULE_STRING(); |
1535 | 1580 | ||
1536 | } | 1581 | } |
1537 | break; | 1582 | break; |
1538 | case 39 : | 1583 | case 39 : |
1539 | // InternalProblem.g:1:268: RULE_ML_COMMENT | 1584 | // InternalProblem.g:1:246: RULE_QUOTED_ID |
1540 | { | 1585 | { |
1541 | mRULE_ML_COMMENT(); | 1586 | mRULE_QUOTED_ID(); |
1542 | 1587 | ||
1543 | } | 1588 | } |
1544 | break; | 1589 | break; |
1545 | case 40 : | 1590 | case 40 : |
1546 | // InternalProblem.g:1:284: RULE_WS | 1591 | // InternalProblem.g:1:261: RULE_SL_COMMENT |
1547 | { | 1592 | { |
1548 | mRULE_WS(); | 1593 | mRULE_SL_COMMENT(); |
1549 | 1594 | ||
1550 | } | 1595 | } |
1551 | break; | 1596 | break; |
1552 | case 41 : | 1597 | case 41 : |
1553 | // InternalProblem.g:1:292: RULE_ANY_OTHER | 1598 | // InternalProblem.g:1:277: RULE_INT |
1599 | { | ||
1600 | mRULE_INT(); | ||
1601 | |||
1602 | } | ||
1603 | break; | ||
1604 | case 42 : | ||
1605 | // InternalProblem.g:1:286: RULE_ML_COMMENT | ||
1606 | { | ||
1607 | mRULE_ML_COMMENT(); | ||
1608 | |||
1609 | } | ||
1610 | break; | ||
1611 | case 43 : | ||
1612 | // InternalProblem.g:1:302: RULE_WS | ||
1613 | { | ||
1614 | mRULE_WS(); | ||
1615 | |||
1616 | } | ||
1617 | break; | ||
1618 | case 44 : | ||
1619 | // InternalProblem.g:1:310: RULE_ANY_OTHER | ||
1554 | { | 1620 | { |
1555 | mRULE_ANY_OTHER(); | 1621 | mRULE_ANY_OTHER(); |
1556 | 1622 | ||
@@ -1562,78 +1628,69 @@ public class InternalProblemLexer extends Lexer { | |||
1562 | } | 1628 | } |
1563 | 1629 | ||
1564 | 1630 | ||
1565 | protected DFA12 dfa12 = new DFA12(this); | 1631 | protected DFA11 dfa11 = new DFA11(this); |
1566 | static final String DFA12_eotS = | 1632 | static final String DFA11_eotS = |
1567 | "\1\uffff\1\44\2\uffff\2\50\2\uffff\3\50\2\uffff\2\50\4\uffff\1\50\2\uffff\1\77\2\50\1\103\2\42\1\uffff\2\42\10\uffff\1\50\1\uffff\1\50\2\uffff\3\50\2\uffff\5\50\4\uffff\1\50\5\uffff\2\50\10\uffff\17\50\1\147\1\50\1\151\5\50\1\157\5\50\1\uffff\1\50\1\uffff\1\166\1\50\1\170\2\50\1\uffff\1\173\1\50\1\175\1\50\1\177\1\50\1\uffff\1\50\1\uffff\2\50\1\uffff\1\50\1\uffff\1\50\1\uffff\1\u0086\1\u0087\1\50\1\u0089\2\50\2\uffff\1\u008c\1\uffff\1\u008d\1\u008e\3\uffff"; | 1633 | "\1\uffff\1\45\2\uffff\2\51\2\uffff\2\51\1\62\1\63\1\uffff\1\66\1\51\2\uffff\1\51\4\uffff\1\51\2\uffff\1\105\2\51\1\uffff\2\43\1\uffff\1\43\7\uffff\1\51\1\uffff\1\51\2\uffff\5\51\5\uffff\1\51\2\uffff\2\51\4\uffff\1\51\5\uffff\2\51\6\uffff\17\51\1\153\1\51\1\155\2\51\1\160\10\51\1\uffff\1\51\1\uffff\1\172\1\51\1\uffff\1\174\1\51\1\176\2\51\1\u0081\1\51\1\u0083\1\51\1\uffff\1\51\1\uffff\1\51\1\uffff\2\51\1\uffff\1\51\1\uffff\1\u008a\1\u008b\1\u008c\3\51\3\uffff\1\u0090\1\u0091\1\u0092\3\uffff"; |
1568 | static final String DFA12_eofS = | 1634 | static final String DFA11_eofS = |
1569 | "\u008f\uffff"; | 1635 | "\u0093\uffff"; |
1570 | static final String DFA12_minS = | 1636 | static final String DFA11_minS = |
1571 | "\1\0\1\56\2\uffff\1\145\1\162\2\uffff\1\162\1\141\1\156\2\uffff\1\154\1\156\4\uffff\1\160\2\uffff\1\55\1\143\1\142\1\75\2\0\1\uffff\1\52\1\101\10\uffff\1\146\1\uffff\1\145\2\uffff\1\165\1\154\1\153\2\uffff\1\141\1\156\1\164\1\165\1\162\4\uffff\1\160\5\uffff\1\157\1\163\10\uffff\1\145\1\144\1\142\1\145\1\163\1\156\1\163\1\164\1\145\1\155\2\157\1\160\1\164\1\162\1\60\1\154\1\60\1\145\1\157\1\163\1\141\1\156\1\60\1\162\1\163\1\145\1\162\1\163\1\uffff\1\145\1\uffff\1\60\1\167\1\60\1\151\1\144\1\uffff\1\60\1\151\1\60\1\141\1\60\1\155\1\uffff\1\156\1\uffff\1\156\1\163\1\uffff\1\164\1\uffff\1\143\1\uffff\2\60\1\163\1\60\1\145\1\164\2\uffff\1\60\1\uffff\2\60\3\uffff"; | 1637 | "\1\0\1\56\2\uffff\1\145\1\162\2\uffff\1\162\1\141\2\60\1\uffff\1\75\1\156\2\uffff\1\154\4\uffff\1\160\2\uffff\1\55\1\143\1\142\1\uffff\2\0\1\uffff\1\52\7\uffff\1\146\1\uffff\1\145\2\uffff\1\165\1\154\1\164\1\165\1\162\5\uffff\1\153\2\uffff\1\141\1\156\4\uffff\1\160\5\uffff\1\157\1\163\6\uffff\1\145\1\144\1\142\1\145\1\163\1\145\1\155\1\157\1\156\1\163\1\164\1\157\1\160\1\164\1\162\1\60\1\154\1\60\1\145\1\156\1\60\1\162\1\157\1\163\1\141\1\163\1\145\1\162\1\163\1\uffff\1\145\1\uffff\1\60\1\144\1\uffff\1\60\1\167\1\60\2\151\1\60\1\141\1\60\1\155\1\uffff\1\163\1\uffff\1\156\1\uffff\1\156\1\164\1\uffff\1\143\1\uffff\3\60\1\163\1\145\1\164\3\uffff\3\60\3\uffff"; |
1572 | static final String DFA12_maxS = | 1638 | static final String DFA11_maxS = |
1573 | "\1\uffff\1\56\2\uffff\1\145\1\162\2\uffff\1\162\1\141\1\156\2\uffff\1\157\1\170\4\uffff\1\160\2\uffff\1\72\1\143\1\142\1\75\2\uffff\1\uffff\1\57\1\172\10\uffff\1\146\1\uffff\1\157\2\uffff\1\165\1\154\1\153\2\uffff\1\141\1\156\1\164\1\165\1\162\4\uffff\1\160\5\uffff\1\157\1\163\10\uffff\1\145\1\144\1\142\1\145\1\163\1\156\1\163\1\164\1\145\1\155\2\157\1\160\1\164\1\162\1\172\1\154\1\172\1\145\1\157\1\163\1\141\1\156\1\172\1\162\1\163\1\145\1\162\1\163\1\uffff\1\145\1\uffff\1\172\1\167\1\172\1\151\1\144\1\uffff\1\172\1\151\1\172\1\141\1\172\1\155\1\uffff\1\156\1\uffff\1\156\1\163\1\uffff\1\164\1\uffff\1\143\1\uffff\2\172\1\163\1\172\1\145\1\164\2\uffff\1\172\1\uffff\2\172\3\uffff"; | 1639 | "\1\uffff\1\56\2\uffff\1\145\1\162\2\uffff\1\162\1\141\2\172\1\uffff\1\75\1\156\2\uffff\1\157\4\uffff\1\160\2\uffff\1\72\1\143\1\142\1\uffff\2\uffff\1\uffff\1\57\7\uffff\1\146\1\uffff\1\157\2\uffff\1\165\1\154\1\164\1\165\1\162\5\uffff\1\153\2\uffff\1\141\1\156\4\uffff\1\160\5\uffff\1\157\1\163\6\uffff\1\145\1\144\1\142\1\145\1\163\1\145\1\155\1\157\1\156\1\163\1\164\1\157\1\160\1\164\1\162\1\172\1\154\1\172\1\145\1\156\1\172\1\162\1\157\1\163\1\141\1\163\1\145\1\162\1\163\1\uffff\1\145\1\uffff\1\172\1\144\1\uffff\1\172\1\167\1\172\2\151\1\172\1\141\1\172\1\155\1\uffff\1\163\1\uffff\1\156\1\uffff\1\156\1\164\1\uffff\1\143\1\uffff\3\172\1\163\1\145\1\164\3\uffff\3\172\3\uffff"; |
1574 | static final String DFA12_acceptS = | 1640 | static final String DFA11_acceptS = |
1575 | "\2\uffff\1\2\1\3\2\uffff\1\6\1\7\3\uffff\1\13\1\14\2\uffff\1\20\1\21\1\23\1\24\1\uffff\1\26\1\27\6\uffff\1\44\2\uffff\1\45\1\46\1\50\1\51\1\33\1\1\1\2\1\3\1\uffff\1\45\1\uffff\1\6\1\7\3\uffff\1\13\1\14\5\uffff\1\20\1\21\1\23\1\24\1\uffff\1\26\1\27\1\30\1\34\1\31\2\uffff\1\41\1\40\1\42\1\43\1\44\1\47\1\46\1\50\35\uffff\1\5\1\uffff\1\10\5\uffff\1\22\6\uffff\1\11\1\uffff\1\16\2\uffff\1\37\1\uffff\1\32\1\uffff\1\4\6\uffff\1\15\1\12\1\uffff\1\17\2\uffff\1\36\1\25\1\35"; | 1641 | "\2\uffff\1\2\1\3\2\uffff\1\6\1\7\4\uffff\1\14\2\uffff\1\17\1\20\1\uffff\1\24\1\25\1\27\1\30\1\uffff\1\32\1\33\3\uffff\1\45\2\uffff\1\50\1\uffff\1\51\1\53\1\54\1\37\1\1\1\2\1\3\1\uffff\1\45\1\uffff\1\6\1\7\5\uffff\1\12\1\13\1\14\1\44\1\15\1\uffff\1\17\1\20\2\uffff\1\24\1\25\1\27\1\30\1\uffff\1\32\1\33\1\34\1\40\1\35\2\uffff\1\46\1\47\1\50\1\52\1\51\1\53\35\uffff\1\5\1\uffff\1\10\2\uffff\1\26\11\uffff\1\11\1\uffff\1\43\1\uffff\1\22\2\uffff\1\36\1\uffff\1\4\6\uffff\1\21\1\23\1\16\3\uffff\1\42\1\31\1\41"; |
1576 | static final String DFA12_specialS = | 1642 | static final String DFA11_specialS = |
1577 | "\1\0\31\uffff\1\2\1\1\163\uffff}>"; | 1643 | "\1\1\34\uffff\1\2\1\0\164\uffff}>"; |
1578 | static final String[] DFA12_transitionS = { | 1644 | static final String[] DFA11_transitionS = { |
1579 | "\11\42\2\41\2\42\1\41\22\42\1\41\1\13\1\32\2\42\1\34\1\42\1\33\1\24\1\25\1\7\1\31\1\2\1\42\1\1\1\35\12\40\1\26\1\3\1\42\1\6\1\42\1\14\1\42\32\37\1\21\1\42\1\22\1\36\1\37\1\42\1\30\1\37\1\15\1\37\1\16\1\11\10\37\1\23\1\5\1\37\1\4\1\27\1\10\1\12\5\37\1\17\1\42\1\20\uff82\42", | 1645 | "\11\43\2\42\2\43\1\42\22\43\1\42\1\17\1\35\2\43\1\37\1\43\1\36\1\27\1\30\1\7\1\15\1\2\1\14\1\1\1\40\12\41\1\31\1\3\1\43\1\6\1\43\1\20\1\43\4\34\1\13\25\34\1\24\1\43\1\25\1\43\1\34\1\43\1\33\1\34\1\21\1\34\1\12\1\11\10\34\1\26\1\5\1\34\1\4\1\32\1\10\1\16\5\34\1\22\1\43\1\23\uff82\43", |
1580 | "\1\43", | 1646 | "\1\44", |
1581 | "", | 1647 | "", |
1582 | "", | 1648 | "", |
1583 | "\1\47", | 1649 | "\1\50", |
1584 | "\1\51", | 1650 | "\1\52", |
1585 | "", | 1651 | "", |
1586 | "", | 1652 | "", |
1587 | "\1\54", | ||
1588 | "\1\55", | 1653 | "\1\55", |
1589 | "\1\56", | 1654 | "\1\56", |
1655 | "\12\51\7\uffff\32\51\4\uffff\1\51\1\uffff\15\51\1\60\3\51\1\61\5\51\1\57\2\51", | ||
1656 | "\12\51\7\uffff\32\51\4\uffff\1\51\1\uffff\32\51", | ||
1590 | "", | 1657 | "", |
1658 | "\1\65", | ||
1659 | "\1\67", | ||
1591 | "", | 1660 | "", |
1592 | "\1\61\2\uffff\1\62", | ||
1593 | "\1\64\3\uffff\1\65\5\uffff\1\63", | ||
1594 | "", | 1661 | "", |
1662 | "\1\72\2\uffff\1\73", | ||
1595 | "", | 1663 | "", |
1596 | "", | 1664 | "", |
1597 | "", | 1665 | "", |
1598 | "\1\72", | ||
1599 | "", | 1666 | "", |
1600 | "", | ||
1601 | "\1\75\14\uffff\1\76", | ||
1602 | "\1\100", | 1667 | "\1\100", |
1603 | "\1\101", | ||
1604 | "\1\102", | ||
1605 | "\0\104", | ||
1606 | "\0\105", | ||
1607 | "", | ||
1608 | "\1\107\4\uffff\1\106", | ||
1609 | "\32\50\4\uffff\1\50\1\uffff\32\50", | ||
1610 | "", | 1668 | "", |
1611 | "", | 1669 | "", |
1670 | "\1\103\14\uffff\1\104", | ||
1671 | "\1\106", | ||
1672 | "\1\107", | ||
1612 | "", | 1673 | "", |
1674 | "\0\110", | ||
1675 | "\0\111", | ||
1613 | "", | 1676 | "", |
1677 | "\1\113\4\uffff\1\112", | ||
1614 | "", | 1678 | "", |
1615 | "", | 1679 | "", |
1616 | "", | 1680 | "", |
1617 | "", | 1681 | "", |
1618 | "\1\112", | ||
1619 | "", | 1682 | "", |
1620 | "\1\113\11\uffff\1\114", | ||
1621 | "", | 1683 | "", |
1622 | "", | 1684 | "", |
1623 | "\1\115", | ||
1624 | "\1\116", | 1685 | "\1\116", |
1625 | "\1\117", | 1686 | "", |
1687 | "\1\117\11\uffff\1\120", | ||
1626 | "", | 1688 | "", |
1627 | "", | 1689 | "", |
1628 | "\1\120", | ||
1629 | "\1\121", | 1690 | "\1\121", |
1630 | "\1\122", | 1691 | "\1\122", |
1631 | "\1\123", | 1692 | "\1\123", |
1632 | "\1\124", | 1693 | "\1\124", |
1633 | "", | ||
1634 | "", | ||
1635 | "", | ||
1636 | "", | ||
1637 | "\1\125", | 1694 | "\1\125", |
1638 | "", | 1695 | "", |
1639 | "", | 1696 | "", |
@@ -1641,19 +1698,28 @@ public class InternalProblemLexer extends Lexer { | |||
1641 | "", | 1698 | "", |
1642 | "", | 1699 | "", |
1643 | "\1\126", | 1700 | "\1\126", |
1701 | "", | ||
1702 | "", | ||
1644 | "\1\127", | 1703 | "\1\127", |
1704 | "\1\130", | ||
1645 | "", | 1705 | "", |
1646 | "", | 1706 | "", |
1647 | "", | 1707 | "", |
1648 | "", | 1708 | "", |
1709 | "\1\131", | ||
1710 | "", | ||
1649 | "", | 1711 | "", |
1650 | "", | 1712 | "", |
1651 | "", | 1713 | "", |
1652 | "", | 1714 | "", |
1653 | "\1\130", | ||
1654 | "\1\131", | ||
1655 | "\1\132", | 1715 | "\1\132", |
1656 | "\1\133", | 1716 | "\1\133", |
1717 | "", | ||
1718 | "", | ||
1719 | "", | ||
1720 | "", | ||
1721 | "", | ||
1722 | "", | ||
1657 | "\1\134", | 1723 | "\1\134", |
1658 | "\1\135", | 1724 | "\1\135", |
1659 | "\1\136", | 1725 | "\1\136", |
@@ -1665,195 +1731,201 @@ public class InternalProblemLexer extends Lexer { | |||
1665 | "\1\144", | 1731 | "\1\144", |
1666 | "\1\145", | 1732 | "\1\145", |
1667 | "\1\146", | 1733 | "\1\146", |
1668 | "\12\50\7\uffff\32\50\4\uffff\1\50\1\uffff\32\50", | 1734 | "\1\147", |
1669 | "\1\150", | 1735 | "\1\150", |
1670 | "\12\50\7\uffff\32\50\4\uffff\1\50\1\uffff\32\50", | 1736 | "\1\151", |
1671 | "\1\152", | 1737 | "\1\152", |
1672 | "\1\153", | 1738 | "\12\51\7\uffff\32\51\4\uffff\1\51\1\uffff\32\51", |
1673 | "\1\154", | 1739 | "\1\154", |
1674 | "\1\155", | 1740 | "\12\51\7\uffff\32\51\4\uffff\1\51\1\uffff\32\51", |
1675 | "\1\156", | 1741 | "\1\156", |
1676 | "\12\50\7\uffff\32\50\4\uffff\1\50\1\uffff\32\50", | 1742 | "\1\157", |
1677 | "\1\160", | 1743 | "\12\51\7\uffff\32\51\4\uffff\1\51\1\uffff\32\51", |
1678 | "\1\161", | 1744 | "\1\161", |
1679 | "\1\162", | 1745 | "\1\162", |
1680 | "\1\163", | 1746 | "\1\163", |
1681 | "\1\164", | 1747 | "\1\164", |
1682 | "", | ||
1683 | "\1\165", | 1748 | "\1\165", |
1684 | "", | 1749 | "\1\166", |
1685 | "\12\50\7\uffff\32\50\4\uffff\1\50\1\uffff\32\50", | ||
1686 | "\1\167", | 1750 | "\1\167", |
1687 | "\12\50\7\uffff\32\50\4\uffff\1\50\1\uffff\32\50", | 1751 | "\1\170", |
1688 | "\1\171", | ||
1689 | "\1\172", | ||
1690 | "", | 1752 | "", |
1691 | "\12\50\7\uffff\32\50\4\uffff\1\50\1\uffff\32\50", | 1753 | "\1\171", |
1692 | "\1\174", | ||
1693 | "\12\50\7\uffff\32\50\4\uffff\1\50\1\uffff\32\50", | ||
1694 | "\1\176", | ||
1695 | "\12\50\7\uffff\32\50\4\uffff\1\50\1\uffff\32\50", | ||
1696 | "\1\u0080", | ||
1697 | "", | 1754 | "", |
1698 | "\1\u0081", | 1755 | "\12\51\7\uffff\32\51\4\uffff\1\51\1\uffff\32\51", |
1756 | "\1\173", | ||
1699 | "", | 1757 | "", |
1758 | "\12\51\7\uffff\32\51\4\uffff\1\51\1\uffff\32\51", | ||
1759 | "\1\175", | ||
1760 | "\12\51\7\uffff\32\51\4\uffff\1\51\1\uffff\32\51", | ||
1761 | "\1\177", | ||
1762 | "\1\u0080", | ||
1763 | "\12\51\7\uffff\32\51\4\uffff\1\51\1\uffff\32\51", | ||
1700 | "\1\u0082", | 1764 | "\1\u0082", |
1701 | "\1\u0083", | 1765 | "\12\51\7\uffff\32\51\4\uffff\1\51\1\uffff\32\51", |
1702 | "", | ||
1703 | "\1\u0084", | 1766 | "\1\u0084", |
1704 | "", | 1767 | "", |
1705 | "\1\u0085", | 1768 | "\1\u0085", |
1706 | "", | 1769 | "", |
1707 | "\12\50\7\uffff\32\50\4\uffff\1\50\1\uffff\32\50", | 1770 | "\1\u0086", |
1708 | "\12\50\7\uffff\32\50\4\uffff\1\50\1\uffff\32\50", | 1771 | "", |
1772 | "\1\u0087", | ||
1709 | "\1\u0088", | 1773 | "\1\u0088", |
1710 | "\12\50\7\uffff\32\50\4\uffff\1\50\1\uffff\32\50", | ||
1711 | "\1\u008a", | ||
1712 | "\1\u008b", | ||
1713 | "", | 1774 | "", |
1775 | "\1\u0089", | ||
1776 | "", | ||
1777 | "\12\51\7\uffff\32\51\4\uffff\1\51\1\uffff\32\51", | ||
1778 | "\12\51\7\uffff\32\51\4\uffff\1\51\1\uffff\32\51", | ||
1779 | "\12\51\7\uffff\32\51\4\uffff\1\51\1\uffff\32\51", | ||
1780 | "\1\u008d", | ||
1781 | "\1\u008e", | ||
1782 | "\1\u008f", | ||
1714 | "", | 1783 | "", |
1715 | "\12\50\7\uffff\32\50\4\uffff\1\50\1\uffff\32\50", | ||
1716 | "", | 1784 | "", |
1717 | "\12\50\7\uffff\32\50\4\uffff\1\50\1\uffff\32\50", | 1785 | "", |
1718 | "\12\50\7\uffff\32\50\4\uffff\1\50\1\uffff\32\50", | 1786 | "\12\51\7\uffff\32\51\4\uffff\1\51\1\uffff\32\51", |
1787 | "\12\51\7\uffff\32\51\4\uffff\1\51\1\uffff\32\51", | ||
1788 | "\12\51\7\uffff\32\51\4\uffff\1\51\1\uffff\32\51", | ||
1719 | "", | 1789 | "", |
1720 | "", | 1790 | "", |
1721 | "" | 1791 | "" |
1722 | }; | 1792 | }; |
1723 | 1793 | ||
1724 | static final short[] DFA12_eot = DFA.unpackEncodedString(DFA12_eotS); | 1794 | static final short[] DFA11_eot = DFA.unpackEncodedString(DFA11_eotS); |
1725 | static final short[] DFA12_eof = DFA.unpackEncodedString(DFA12_eofS); | 1795 | static final short[] DFA11_eof = DFA.unpackEncodedString(DFA11_eofS); |
1726 | static final char[] DFA12_min = DFA.unpackEncodedStringToUnsignedChars(DFA12_minS); | 1796 | static final char[] DFA11_min = DFA.unpackEncodedStringToUnsignedChars(DFA11_minS); |
1727 | static final char[] DFA12_max = DFA.unpackEncodedStringToUnsignedChars(DFA12_maxS); | 1797 | static final char[] DFA11_max = DFA.unpackEncodedStringToUnsignedChars(DFA11_maxS); |
1728 | static final short[] DFA12_accept = DFA.unpackEncodedString(DFA12_acceptS); | 1798 | static final short[] DFA11_accept = DFA.unpackEncodedString(DFA11_acceptS); |
1729 | static final short[] DFA12_special = DFA.unpackEncodedString(DFA12_specialS); | 1799 | static final short[] DFA11_special = DFA.unpackEncodedString(DFA11_specialS); |
1730 | static final short[][] DFA12_transition; | 1800 | static final short[][] DFA11_transition; |
1731 | 1801 | ||
1732 | static { | 1802 | static { |
1733 | int numStates = DFA12_transitionS.length; | 1803 | int numStates = DFA11_transitionS.length; |
1734 | DFA12_transition = new short[numStates][]; | 1804 | DFA11_transition = new short[numStates][]; |
1735 | for (int i=0; i<numStates; i++) { | 1805 | for (int i=0; i<numStates; i++) { |
1736 | DFA12_transition[i] = DFA.unpackEncodedString(DFA12_transitionS[i]); | 1806 | DFA11_transition[i] = DFA.unpackEncodedString(DFA11_transitionS[i]); |
1737 | } | 1807 | } |
1738 | } | 1808 | } |
1739 | 1809 | ||
1740 | class DFA12 extends DFA { | 1810 | class DFA11 extends DFA { |
1741 | 1811 | ||
1742 | public DFA12(BaseRecognizer recognizer) { | 1812 | public DFA11(BaseRecognizer recognizer) { |
1743 | this.recognizer = recognizer; | 1813 | this.recognizer = recognizer; |
1744 | this.decisionNumber = 12; | 1814 | this.decisionNumber = 11; |
1745 | this.eot = DFA12_eot; | 1815 | this.eot = DFA11_eot; |
1746 | this.eof = DFA12_eof; | 1816 | this.eof = DFA11_eof; |
1747 | this.min = DFA12_min; | 1817 | this.min = DFA11_min; |
1748 | this.max = DFA12_max; | 1818 | this.max = DFA11_max; |
1749 | this.accept = DFA12_accept; | 1819 | this.accept = DFA11_accept; |
1750 | this.special = DFA12_special; | 1820 | this.special = DFA11_special; |
1751 | this.transition = DFA12_transition; | 1821 | this.transition = DFA11_transition; |
1752 | } | 1822 | } |
1753 | public String getDescription() { | 1823 | public String getDescription() { |
1754 | return "1:1: Tokens : ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | T__41 | T__42 | T__43 | T__44 | RULE_STRING | RULE_QUOTED_ID | RULE_SL_COMMENT | RULE_ID | RULE_INT | RULE_ML_COMMENT | RULE_WS | RULE_ANY_OTHER );"; | 1824 | return "1:1: Tokens : ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | T__41 | T__42 | T__43 | T__44 | T__45 | T__46 | T__47 | RULE_ID | RULE_STRING | RULE_QUOTED_ID | RULE_SL_COMMENT | RULE_INT | RULE_ML_COMMENT | RULE_WS | RULE_ANY_OTHER );"; |
1755 | } | 1825 | } |
1756 | public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { | 1826 | public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
1757 | IntStream input = _input; | 1827 | IntStream input = _input; |
1758 | int _s = s; | 1828 | int _s = s; |
1759 | switch ( s ) { | 1829 | switch ( s ) { |
1760 | case 0 : | 1830 | case 0 : |
1761 | int LA12_0 = input.LA(1); | 1831 | int LA11_30 = input.LA(1); |
1762 | 1832 | ||
1763 | s = -1; | 1833 | s = -1; |
1764 | if ( (LA12_0=='.') ) {s = 1;} | 1834 | if ( ((LA11_30>='\u0000' && LA11_30<='\uFFFF')) ) {s = 73;} |
1835 | |||
1836 | else s = 35; | ||
1765 | 1837 | ||
1766 | else if ( (LA12_0==',') ) {s = 2;} | 1838 | if ( s>=0 ) return s; |
1839 | break; | ||
1840 | case 1 : | ||
1841 | int LA11_0 = input.LA(1); | ||
1767 | 1842 | ||
1768 | else if ( (LA12_0==';') ) {s = 3;} | 1843 | s = -1; |
1844 | if ( (LA11_0=='.') ) {s = 1;} | ||
1769 | 1845 | ||
1770 | else if ( (LA12_0=='r') ) {s = 4;} | 1846 | else if ( (LA11_0==',') ) {s = 2;} |
1771 | 1847 | ||
1772 | else if ( (LA12_0=='p') ) {s = 5;} | 1848 | else if ( (LA11_0==';') ) {s = 3;} |
1773 | 1849 | ||
1774 | else if ( (LA12_0=='=') ) {s = 6;} | 1850 | else if ( (LA11_0=='r') ) {s = 4;} |
1775 | 1851 | ||
1776 | else if ( (LA12_0=='*') ) {s = 7;} | 1852 | else if ( (LA11_0=='p') ) {s = 5;} |
1777 | 1853 | ||
1778 | else if ( (LA12_0=='t') ) {s = 8;} | 1854 | else if ( (LA11_0=='=') ) {s = 6;} |
1779 | 1855 | ||
1780 | else if ( (LA12_0=='f') ) {s = 9;} | 1856 | else if ( (LA11_0=='*') ) {s = 7;} |
1781 | 1857 | ||
1782 | else if ( (LA12_0=='u') ) {s = 10;} | 1858 | else if ( (LA11_0=='t') ) {s = 8;} |
1783 | 1859 | ||
1784 | else if ( (LA12_0=='!') ) {s = 11;} | 1860 | else if ( (LA11_0=='f') ) {s = 9;} |
1785 | 1861 | ||
1786 | else if ( (LA12_0=='?') ) {s = 12;} | 1862 | else if ( (LA11_0=='e') ) {s = 10;} |
1787 | 1863 | ||
1788 | else if ( (LA12_0=='c') ) {s = 13;} | 1864 | else if ( (LA11_0=='E') ) {s = 11;} |
1789 | 1865 | ||
1790 | else if ( (LA12_0=='e') ) {s = 14;} | 1866 | else if ( (LA11_0=='-') ) {s = 12;} |
1791 | 1867 | ||
1792 | else if ( (LA12_0=='{') ) {s = 15;} | 1868 | else if ( (LA11_0=='+') ) {s = 13;} |
1793 | 1869 | ||
1794 | else if ( (LA12_0=='}') ) {s = 16;} | 1870 | else if ( (LA11_0=='u') ) {s = 14;} |
1795 | 1871 | ||
1796 | else if ( (LA12_0=='[') ) {s = 17;} | 1872 | else if ( (LA11_0=='!') ) {s = 15;} |
1797 | 1873 | ||
1798 | else if ( (LA12_0==']') ) {s = 18;} | 1874 | else if ( (LA11_0=='?') ) {s = 16;} |
1799 | 1875 | ||
1800 | else if ( (LA12_0=='o') ) {s = 19;} | 1876 | else if ( (LA11_0=='c') ) {s = 17;} |
1801 | 1877 | ||
1802 | else if ( (LA12_0=='(') ) {s = 20;} | 1878 | else if ( (LA11_0=='{') ) {s = 18;} |
1803 | 1879 | ||
1804 | else if ( (LA12_0==')') ) {s = 21;} | 1880 | else if ( (LA11_0=='}') ) {s = 19;} |
1805 | 1881 | ||
1806 | else if ( (LA12_0==':') ) {s = 22;} | 1882 | else if ( (LA11_0=='[') ) {s = 20;} |
1807 | 1883 | ||
1808 | else if ( (LA12_0=='s') ) {s = 23;} | 1884 | else if ( (LA11_0==']') ) {s = 21;} |
1809 | 1885 | ||
1810 | else if ( (LA12_0=='a') ) {s = 24;} | 1886 | else if ( (LA11_0=='o') ) {s = 22;} |
1811 | 1887 | ||
1812 | else if ( (LA12_0=='+') ) {s = 25;} | 1888 | else if ( (LA11_0=='(') ) {s = 23;} |
1813 | 1889 | ||
1814 | else if ( (LA12_0=='\"') ) {s = 26;} | 1890 | else if ( (LA11_0==')') ) {s = 24;} |
1815 | 1891 | ||
1816 | else if ( (LA12_0=='\'') ) {s = 27;} | 1892 | else if ( (LA11_0==':') ) {s = 25;} |
1817 | 1893 | ||
1818 | else if ( (LA12_0=='%') ) {s = 28;} | 1894 | else if ( (LA11_0=='s') ) {s = 26;} |
1819 | 1895 | ||
1820 | else if ( (LA12_0=='/') ) {s = 29;} | 1896 | else if ( (LA11_0=='a') ) {s = 27;} |
1821 | 1897 | ||
1822 | else if ( (LA12_0=='^') ) {s = 30;} | 1898 | else if ( ((LA11_0>='A' && LA11_0<='D')||(LA11_0>='F' && LA11_0<='Z')||LA11_0=='_'||LA11_0=='b'||LA11_0=='d'||(LA11_0>='g' && LA11_0<='n')||LA11_0=='q'||(LA11_0>='v' && LA11_0<='z')) ) {s = 28;} |
1823 | 1899 | ||
1824 | else if ( ((LA12_0>='A' && LA12_0<='Z')||LA12_0=='_'||LA12_0=='b'||LA12_0=='d'||(LA12_0>='g' && LA12_0<='n')||LA12_0=='q'||(LA12_0>='v' && LA12_0<='z')) ) {s = 31;} | 1900 | else if ( (LA11_0=='\"') ) {s = 29;} |
1825 | 1901 | ||
1826 | else if ( ((LA12_0>='0' && LA12_0<='9')) ) {s = 32;} | 1902 | else if ( (LA11_0=='\'') ) {s = 30;} |
1827 | 1903 | ||
1828 | else if ( ((LA12_0>='\t' && LA12_0<='\n')||LA12_0=='\r'||LA12_0==' ') ) {s = 33;} | 1904 | else if ( (LA11_0=='%') ) {s = 31;} |
1829 | 1905 | ||
1830 | else if ( ((LA12_0>='\u0000' && LA12_0<='\b')||(LA12_0>='\u000B' && LA12_0<='\f')||(LA12_0>='\u000E' && LA12_0<='\u001F')||(LA12_0>='#' && LA12_0<='$')||LA12_0=='&'||LA12_0=='-'||LA12_0=='<'||LA12_0=='>'||LA12_0=='@'||LA12_0=='\\'||LA12_0=='`'||LA12_0=='|'||(LA12_0>='~' && LA12_0<='\uFFFF')) ) {s = 34;} | 1906 | else if ( (LA11_0=='/') ) {s = 32;} |
1831 | 1907 | ||
1832 | if ( s>=0 ) return s; | 1908 | else if ( ((LA11_0>='0' && LA11_0<='9')) ) {s = 33;} |
1833 | break; | ||
1834 | case 1 : | ||
1835 | int LA12_27 = input.LA(1); | ||
1836 | 1909 | ||
1837 | s = -1; | 1910 | else if ( ((LA11_0>='\t' && LA11_0<='\n')||LA11_0=='\r'||LA11_0==' ') ) {s = 34;} |
1838 | if ( ((LA12_27>='\u0000' && LA12_27<='\uFFFF')) ) {s = 69;} | ||
1839 | 1911 | ||
1840 | else s = 34; | 1912 | else if ( ((LA11_0>='\u0000' && LA11_0<='\b')||(LA11_0>='\u000B' && LA11_0<='\f')||(LA11_0>='\u000E' && LA11_0<='\u001F')||(LA11_0>='#' && LA11_0<='$')||LA11_0=='&'||LA11_0=='<'||LA11_0=='>'||LA11_0=='@'||LA11_0=='\\'||LA11_0=='^'||LA11_0=='`'||LA11_0=='|'||(LA11_0>='~' && LA11_0<='\uFFFF')) ) {s = 35;} |
1841 | 1913 | ||
1842 | if ( s>=0 ) return s; | 1914 | if ( s>=0 ) return s; |
1843 | break; | 1915 | break; |
1844 | case 2 : | 1916 | case 2 : |
1845 | int LA12_26 = input.LA(1); | 1917 | int LA11_29 = input.LA(1); |
1846 | 1918 | ||
1847 | s = -1; | 1919 | s = -1; |
1848 | if ( ((LA12_26>='\u0000' && LA12_26<='\uFFFF')) ) {s = 68;} | 1920 | if ( ((LA11_29>='\u0000' && LA11_29<='\uFFFF')) ) {s = 72;} |
1849 | 1921 | ||
1850 | else s = 34; | 1922 | else s = 35; |
1851 | 1923 | ||
1852 | if ( s>=0 ) return s; | 1924 | if ( s>=0 ) return s; |
1853 | break; | 1925 | break; |
1854 | } | 1926 | } |
1855 | NoViableAltException nvae = | 1927 | NoViableAltException nvae = |
1856 | new NoViableAltException(getDescription(), 12, _s, input); | 1928 | new NoViableAltException(getDescription(), 11, _s, input); |
1857 | error(nvae); | 1929 | error(nvae); |
1858 | throw nvae; | 1930 | throw nvae; |
1859 | } | 1931 | } |