A game about forced loneliness, made by TACStudios
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

at master 1999 lines 74 kB view raw
1// $ANTLR 3.2 Sep 23, 2009 12:02:23 C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g 2009-11-11 17:56:42 2 3using Unity.VisualScripting.Antlr3.Runtime; 4 5namespace Unity.VisualScripting.Dependencies.NCalc 6{ 7 public class NCalcLexer : Lexer 8 { 9 // delegates 10 // delegators 11 12 public NCalcLexer() 13 { 14 InitializeCyclicDFAs(); 15 } 16 17 public NCalcLexer(ICharStream input) 18 : this(input, null) { } 19 20 public NCalcLexer(ICharStream input, RecognizerSharedState state) 21 : base(input, state) 22 { 23 InitializeCyclicDFAs(); 24 } 25 26 protected DFA7 dfa7; 27 protected DFA14 dfa14; 28 29 override public string GrammarFileName 30 { 31 get 32 { 33 return "C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g"; 34 } 35 } 36 37 private void InitializeCyclicDFAs() 38 { 39 dfa7 = new DFA7(this); 40 dfa14 = new DFA14(this); 41 } 42 43 // $ANTLR start "T__19" 44 public void mT__19() // throws RecognitionException [2] 45 { 46 try 47 { 48 var _type = T__19; 49 var _channel = DEFAULT_TOKEN_CHANNEL; 50 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:7:7: ( '?' ) 51 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:7:9: '?' 52 { 53 Match('?'); 54 } 55 56 state.type = _type; 57 state.channel = _channel; 58 } 59 finally { } 60 } 61 62 // $ANTLR end "T__19" 63 64 // $ANTLR start "T__20" 65 public void mT__20() // throws RecognitionException [2] 66 { 67 try 68 { 69 var _type = T__20; 70 var _channel = DEFAULT_TOKEN_CHANNEL; 71 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:8:7: ( ':' ) 72 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:8:9: ':' 73 { 74 Match(':'); 75 } 76 77 state.type = _type; 78 state.channel = _channel; 79 } 80 finally { } 81 } 82 83 // $ANTLR end "T__20" 84 85 // $ANTLR start "T__21" 86 public void mT__21() // throws RecognitionException [2] 87 { 88 try 89 { 90 var _type = T__21; 91 var _channel = DEFAULT_TOKEN_CHANNEL; 92 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:9:7: ( '||' ) 93 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:9:9: '||' 94 { 95 Match("||"); 96 } 97 98 state.type = _type; 99 state.channel = _channel; 100 } 101 finally { } 102 } 103 104 // $ANTLR end "T__21" 105 106 // $ANTLR start "T__22" 107 public void mT__22() // throws RecognitionException [2] 108 { 109 try 110 { 111 var _type = T__22; 112 var _channel = DEFAULT_TOKEN_CHANNEL; 113 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:10:7: ( 'or' ) 114 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:10:9: 'or' 115 { 116 Match("or"); 117 } 118 119 state.type = _type; 120 state.channel = _channel; 121 } 122 finally { } 123 } 124 125 // $ANTLR end "T__22" 126 127 // $ANTLR start "T__23" 128 public void mT__23() // throws RecognitionException [2] 129 { 130 try 131 { 132 var _type = T__23; 133 var _channel = DEFAULT_TOKEN_CHANNEL; 134 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:11:7: ( '&&' ) 135 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:11:9: '&&' 136 { 137 Match("&&"); 138 } 139 140 state.type = _type; 141 state.channel = _channel; 142 } 143 finally { } 144 } 145 146 // $ANTLR end "T__23" 147 148 // $ANTLR start "T__24" 149 public void mT__24() // throws RecognitionException [2] 150 { 151 try 152 { 153 var _type = T__24; 154 var _channel = DEFAULT_TOKEN_CHANNEL; 155 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:12:7: ( 'and' ) 156 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:12:9: 'and' 157 { 158 Match("and"); 159 } 160 161 state.type = _type; 162 state.channel = _channel; 163 } 164 finally { } 165 } 166 167 // $ANTLR end "T__24" 168 169 // $ANTLR start "T__25" 170 public void mT__25() // throws RecognitionException [2] 171 { 172 try 173 { 174 var _type = T__25; 175 var _channel = DEFAULT_TOKEN_CHANNEL; 176 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:13:7: ( '|' ) 177 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:13:9: '|' 178 { 179 Match('|'); 180 } 181 182 state.type = _type; 183 state.channel = _channel; 184 } 185 finally { } 186 } 187 188 // $ANTLR end "T__25" 189 190 // $ANTLR start "T__26" 191 public void mT__26() // throws RecognitionException [2] 192 { 193 try 194 { 195 var _type = T__26; 196 var _channel = DEFAULT_TOKEN_CHANNEL; 197 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:14:7: ( '^' ) 198 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:14:9: '^' 199 { 200 Match('^'); 201 } 202 203 state.type = _type; 204 state.channel = _channel; 205 } 206 finally { } 207 } 208 209 // $ANTLR end "T__26" 210 211 // $ANTLR start "T__27" 212 public void mT__27() // throws RecognitionException [2] 213 { 214 try 215 { 216 var _type = T__27; 217 var _channel = DEFAULT_TOKEN_CHANNEL; 218 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:15:7: ( '&' ) 219 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:15:9: '&' 220 { 221 Match('&'); 222 } 223 224 state.type = _type; 225 state.channel = _channel; 226 } 227 finally { } 228 } 229 230 // $ANTLR end "T__27" 231 232 // $ANTLR start "T__28" 233 public void mT__28() // throws RecognitionException [2] 234 { 235 try 236 { 237 var _type = T__28; 238 var _channel = DEFAULT_TOKEN_CHANNEL; 239 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:16:7: ( '==' ) 240 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:16:9: '==' 241 { 242 Match("=="); 243 } 244 245 state.type = _type; 246 state.channel = _channel; 247 } 248 finally { } 249 } 250 251 // $ANTLR end "T__28" 252 253 // $ANTLR start "T__29" 254 public void mT__29() // throws RecognitionException [2] 255 { 256 try 257 { 258 var _type = T__29; 259 var _channel = DEFAULT_TOKEN_CHANNEL; 260 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:17:7: ( '=' ) 261 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:17:9: '=' 262 { 263 Match('='); 264 } 265 266 state.type = _type; 267 state.channel = _channel; 268 } 269 finally { } 270 } 271 272 // $ANTLR end "T__29" 273 274 // $ANTLR start "T__30" 275 public void mT__30() // throws RecognitionException [2] 276 { 277 try 278 { 279 var _type = T__30; 280 var _channel = DEFAULT_TOKEN_CHANNEL; 281 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:18:7: ( '!=' ) 282 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:18:9: '!=' 283 { 284 Match("!="); 285 } 286 287 state.type = _type; 288 state.channel = _channel; 289 } 290 finally { } 291 } 292 293 // $ANTLR end "T__30" 294 295 // $ANTLR start "T__31" 296 public void mT__31() // throws RecognitionException [2] 297 { 298 try 299 { 300 var _type = T__31; 301 var _channel = DEFAULT_TOKEN_CHANNEL; 302 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:19:7: ( '<>' ) 303 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:19:9: '<>' 304 { 305 Match("<>"); 306 } 307 308 state.type = _type; 309 state.channel = _channel; 310 } 311 finally { } 312 } 313 314 // $ANTLR end "T__31" 315 316 // $ANTLR start "T__32" 317 public void mT__32() // throws RecognitionException [2] 318 { 319 try 320 { 321 var _type = T__32; 322 var _channel = DEFAULT_TOKEN_CHANNEL; 323 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:20:7: ( '<' ) 324 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:20:9: '<' 325 { 326 Match('<'); 327 } 328 329 state.type = _type; 330 state.channel = _channel; 331 } 332 finally { } 333 } 334 335 // $ANTLR end "T__32" 336 337 // $ANTLR start "T__33" 338 public void mT__33() // throws RecognitionException [2] 339 { 340 try 341 { 342 var _type = T__33; 343 var _channel = DEFAULT_TOKEN_CHANNEL; 344 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:21:7: ( '<=' ) 345 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:21:9: '<=' 346 { 347 Match("<="); 348 } 349 350 state.type = _type; 351 state.channel = _channel; 352 } 353 finally { } 354 } 355 356 // $ANTLR end "T__33" 357 358 // $ANTLR start "T__34" 359 public void mT__34() // throws RecognitionException [2] 360 { 361 try 362 { 363 var _type = T__34; 364 var _channel = DEFAULT_TOKEN_CHANNEL; 365 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:22:7: ( '>' ) 366 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:22:9: '>' 367 { 368 Match('>'); 369 } 370 371 state.type = _type; 372 state.channel = _channel; 373 } 374 finally { } 375 } 376 377 // $ANTLR end "T__34" 378 379 // $ANTLR start "T__35" 380 public void mT__35() // throws RecognitionException [2] 381 { 382 try 383 { 384 var _type = T__35; 385 var _channel = DEFAULT_TOKEN_CHANNEL; 386 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:23:7: ( '>=' ) 387 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:23:9: '>=' 388 { 389 Match(">="); 390 } 391 392 state.type = _type; 393 state.channel = _channel; 394 } 395 finally { } 396 } 397 398 // $ANTLR end "T__35" 399 400 // $ANTLR start "T__36" 401 public void mT__36() // throws RecognitionException [2] 402 { 403 try 404 { 405 var _type = T__36; 406 var _channel = DEFAULT_TOKEN_CHANNEL; 407 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:24:7: ( '<<' ) 408 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:24:9: '<<' 409 { 410 Match("<<"); 411 } 412 413 state.type = _type; 414 state.channel = _channel; 415 } 416 finally { } 417 } 418 419 // $ANTLR end "T__36" 420 421 // $ANTLR start "T__37" 422 public void mT__37() // throws RecognitionException [2] 423 { 424 try 425 { 426 var _type = T__37; 427 var _channel = DEFAULT_TOKEN_CHANNEL; 428 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:25:7: ( '>>' ) 429 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:25:9: '>>' 430 { 431 Match(">>"); 432 } 433 434 state.type = _type; 435 state.channel = _channel; 436 } 437 finally { } 438 } 439 440 // $ANTLR end "T__37" 441 442 // $ANTLR start "T__38" 443 public void mT__38() // throws RecognitionException [2] 444 { 445 try 446 { 447 var _type = T__38; 448 var _channel = DEFAULT_TOKEN_CHANNEL; 449 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:26:7: ( '+' ) 450 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:26:9: '+' 451 { 452 Match('+'); 453 } 454 455 state.type = _type; 456 state.channel = _channel; 457 } 458 finally { } 459 } 460 461 // $ANTLR end "T__38" 462 463 // $ANTLR start "T__39" 464 public void mT__39() // throws RecognitionException [2] 465 { 466 try 467 { 468 var _type = T__39; 469 var _channel = DEFAULT_TOKEN_CHANNEL; 470 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:27:7: ( '-' ) 471 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:27:9: '-' 472 { 473 Match('-'); 474 } 475 476 state.type = _type; 477 state.channel = _channel; 478 } 479 finally { } 480 } 481 482 // $ANTLR end "T__39" 483 484 // $ANTLR start "T__40" 485 public void mT__40() // throws RecognitionException [2] 486 { 487 try 488 { 489 var _type = T__40; 490 var _channel = DEFAULT_TOKEN_CHANNEL; 491 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:28:7: ( '*' ) 492 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:28:9: '*' 493 { 494 Match('*'); 495 } 496 497 state.type = _type; 498 state.channel = _channel; 499 } 500 finally { } 501 } 502 503 // $ANTLR end "T__40" 504 505 // $ANTLR start "T__41" 506 public void mT__41() // throws RecognitionException [2] 507 { 508 try 509 { 510 var _type = T__41; 511 var _channel = DEFAULT_TOKEN_CHANNEL; 512 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:29:7: ( '/' ) 513 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:29:9: '/' 514 { 515 Match('/'); 516 } 517 518 state.type = _type; 519 state.channel = _channel; 520 } 521 finally { } 522 } 523 524 // $ANTLR end "T__41" 525 526 // $ANTLR start "T__42" 527 public void mT__42() // throws RecognitionException [2] 528 { 529 try 530 { 531 var _type = T__42; 532 var _channel = DEFAULT_TOKEN_CHANNEL; 533 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:30:7: ( '%' ) 534 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:30:9: '%' 535 { 536 Match('%'); 537 } 538 539 state.type = _type; 540 state.channel = _channel; 541 } 542 finally { } 543 } 544 545 // $ANTLR end "T__42" 546 547 // $ANTLR start "T__43" 548 public void mT__43() // throws RecognitionException [2] 549 { 550 try 551 { 552 var _type = T__43; 553 var _channel = DEFAULT_TOKEN_CHANNEL; 554 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:31:7: ( '!' ) 555 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:31:9: '!' 556 { 557 Match('!'); 558 } 559 560 state.type = _type; 561 state.channel = _channel; 562 } 563 finally { } 564 } 565 566 // $ANTLR end "T__43" 567 568 // $ANTLR start "T__44" 569 public void mT__44() // throws RecognitionException [2] 570 { 571 try 572 { 573 var _type = T__44; 574 var _channel = DEFAULT_TOKEN_CHANNEL; 575 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:32:7: ( 'not' ) 576 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:32:9: 'not' 577 { 578 Match("not"); 579 } 580 581 state.type = _type; 582 state.channel = _channel; 583 } 584 finally { } 585 } 586 587 // $ANTLR end "T__44" 588 589 // $ANTLR start "T__45" 590 public void mT__45() // throws RecognitionException [2] 591 { 592 try 593 { 594 var _type = T__45; 595 var _channel = DEFAULT_TOKEN_CHANNEL; 596 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:33:7: ( '~' ) 597 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:33:9: '~' 598 { 599 Match('~'); 600 } 601 602 state.type = _type; 603 state.channel = _channel; 604 } 605 finally { } 606 } 607 608 // $ANTLR end "T__45" 609 610 // $ANTLR start "T__46" 611 public void mT__46() // throws RecognitionException [2] 612 { 613 try 614 { 615 var _type = T__46; 616 var _channel = DEFAULT_TOKEN_CHANNEL; 617 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:34:7: ( '(' ) 618 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:34:9: '(' 619 { 620 Match('('); 621 } 622 623 state.type = _type; 624 state.channel = _channel; 625 } 626 finally { } 627 } 628 629 // $ANTLR end "T__46" 630 631 // $ANTLR start "T__47" 632 public void mT__47() // throws RecognitionException [2] 633 { 634 try 635 { 636 var _type = T__47; 637 var _channel = DEFAULT_TOKEN_CHANNEL; 638 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:35:7: ( ')' ) 639 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:35:9: ')' 640 { 641 Match(')'); 642 } 643 644 state.type = _type; 645 state.channel = _channel; 646 } 647 finally { } 648 } 649 650 // $ANTLR end "T__47" 651 652 // $ANTLR start "T__48" 653 public void mT__48() // throws RecognitionException [2] 654 { 655 try 656 { 657 var _type = T__48; 658 var _channel = DEFAULT_TOKEN_CHANNEL; 659 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:36:7: ( ',' ) 660 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:36:9: ',' 661 { 662 Match(','); 663 } 664 665 state.type = _type; 666 state.channel = _channel; 667 } 668 finally { } 669 } 670 671 // $ANTLR end "T__48" 672 673 // $ANTLR start "TRUE" 674 public void mTRUE() // throws RecognitionException [2] 675 { 676 try 677 { 678 var _type = TRUE; 679 var _channel = DEFAULT_TOKEN_CHANNEL; 680 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:237:2: ( 'true' ) 681 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:237:4: 'true' 682 { 683 Match("true"); 684 } 685 686 state.type = _type; 687 state.channel = _channel; 688 } 689 finally { } 690 } 691 692 // $ANTLR end "TRUE" 693 694 // $ANTLR start "FALSE" 695 public void mFALSE() // throws RecognitionException [2] 696 { 697 try 698 { 699 var _type = FALSE; 700 var _channel = DEFAULT_TOKEN_CHANNEL; 701 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:241:2: ( 'false' ) 702 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:241:4: 'false' 703 { 704 Match("false"); 705 } 706 707 state.type = _type; 708 state.channel = _channel; 709 } 710 finally { } 711 } 712 713 // $ANTLR end "FALSE" 714 715 // $ANTLR start "ID" 716 public void mID() // throws RecognitionException [2] 717 { 718 try 719 { 720 var _type = ID; 721 var _channel = DEFAULT_TOKEN_CHANNEL; 722 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:245:2: ( LETTER ( LETTER | DIGIT )* ) 723 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:245:5: LETTER ( LETTER | DIGIT )* 724 { 725 mLETTER(); 726 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:245:12: ( LETTER | DIGIT )* 727 do 728 { 729 var alt1 = 2; 730 var LA1_0 = input.LA(1); 731 732 if (LA1_0 >= '0' && LA1_0 <= '9' || LA1_0 >= 'A' && LA1_0 <= 'Z' || LA1_0 == '_' || LA1_0 >= 'a' && LA1_0 <= 'z') 733 { 734 alt1 = 1; 735 } 736 737 switch (alt1) 738 { 739 case 1: 740 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g: 741 { 742 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') 743 { 744 input.Consume(); 745 } 746 else 747 { 748 var mse = new MismatchedSetException(null, input); 749 Recover(mse); 750 throw mse; 751 } 752 } 753 break; 754 755 default: 756 goto loop1; 757 } 758 } 759 while (true); 760 761 loop1: 762 ; // Stops C# compiler whining that label 'loop1' has no statements 763 } 764 765 state.type = _type; 766 state.channel = _channel; 767 } 768 finally { } 769 } 770 771 // $ANTLR end "ID" 772 773 // $ANTLR start "INTEGER" 774 public void mINTEGER() // throws RecognitionException [2] 775 { 776 try 777 { 778 var _type = INTEGER; 779 var _channel = DEFAULT_TOKEN_CHANNEL; 780 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:249:2: ( ( DIGIT )+ ) 781 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:249:4: ( DIGIT )+ 782 { 783 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:249:4: ( DIGIT )+ 784 var cnt2 = 0; 785 do 786 { 787 var alt2 = 2; 788 var LA2_0 = input.LA(1); 789 790 if (LA2_0 >= '0' && LA2_0 <= '9') 791 { 792 alt2 = 1; 793 } 794 795 switch (alt2) 796 { 797 case 1: 798 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:249:4: DIGIT 799 { 800 mDIGIT(); 801 } 802 break; 803 804 default: 805 if (cnt2 >= 1) 806 { 807 goto loop2; 808 } 809 var eee2 = 810 new EarlyExitException(2, input); 811 throw eee2; 812 } 813 cnt2++; 814 } 815 while (true); 816 817 loop2: 818 ; // Stops C# compiler whining that label 'loop2' has no statements 819 } 820 821 state.type = _type; 822 state.channel = _channel; 823 } 824 finally { } 825 } 826 827 // $ANTLR end "INTEGER" 828 829 // $ANTLR start "FLOAT" 830 public void mFLOAT() // throws RecognitionException [2] 831 { 832 try 833 { 834 var _type = FLOAT; 835 var _channel = DEFAULT_TOKEN_CHANNEL; 836 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:253:2: ( ( DIGIT )* '.' ( DIGIT )+ ( E )? | ( DIGIT )+ E ) 837 var alt7 = 2; 838 alt7 = dfa7.Predict(input); 839 switch (alt7) 840 { 841 case 1: 842 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:253:4: ( DIGIT )* '.' ( DIGIT )+ ( E )? 843 { 844 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:253:4: ( DIGIT )* 845 do 846 { 847 var alt3 = 2; 848 var LA3_0 = input.LA(1); 849 850 if (LA3_0 >= '0' && LA3_0 <= '9') 851 { 852 alt3 = 1; 853 } 854 855 switch (alt3) 856 { 857 case 1: 858 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:253:4: DIGIT 859 { 860 mDIGIT(); 861 } 862 break; 863 864 default: 865 goto loop3; 866 } 867 } 868 while (true); 869 870 loop3: 871 ; // Stops C# compiler whining that label 'loop3' has no statements 872 873 Match('.'); 874 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:253:15: ( DIGIT )+ 875 var cnt4 = 0; 876 do 877 { 878 var alt4 = 2; 879 var LA4_0 = input.LA(1); 880 881 if (LA4_0 >= '0' && LA4_0 <= '9') 882 { 883 alt4 = 1; 884 } 885 886 switch (alt4) 887 { 888 case 1: 889 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:253:15: DIGIT 890 { 891 mDIGIT(); 892 } 893 break; 894 895 default: 896 if (cnt4 >= 1) 897 { 898 goto loop4; 899 } 900 var eee4 = 901 new EarlyExitException(4, input); 902 throw eee4; 903 } 904 cnt4++; 905 } 906 while (true); 907 908 loop4: 909 ; // Stops C# compiler whining that label 'loop4' has no statements 910 911 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:253:22: ( E )? 912 var alt5 = 2; 913 var LA5_0 = input.LA(1); 914 915 if (LA5_0 == 'E' || LA5_0 == 'e') 916 { 917 alt5 = 1; 918 } 919 switch (alt5) 920 { 921 case 1: 922 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:253:22: E 923 { 924 mE(); 925 } 926 break; 927 } 928 } 929 break; 930 case 2: 931 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:254:4: ( DIGIT )+ E 932 { 933 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:254:4: ( DIGIT )+ 934 var cnt6 = 0; 935 do 936 { 937 var alt6 = 2; 938 var LA6_0 = input.LA(1); 939 940 if (LA6_0 >= '0' && LA6_0 <= '9') 941 { 942 alt6 = 1; 943 } 944 945 switch (alt6) 946 { 947 case 1: 948 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:254:4: DIGIT 949 { 950 mDIGIT(); 951 } 952 break; 953 954 default: 955 if (cnt6 >= 1) 956 { 957 goto loop6; 958 } 959 var eee6 = 960 new EarlyExitException(6, input); 961 throw eee6; 962 } 963 cnt6++; 964 } 965 while (true); 966 967 loop6: 968 ; // Stops C# compiler whining that label 'loop6' has no statements 969 970 mE(); 971 } 972 break; 973 } 974 state.type = _type; 975 state.channel = _channel; 976 } 977 finally { } 978 } 979 980 // $ANTLR end "FLOAT" 981 982 // $ANTLR start "STRING" 983 public void mSTRING() // throws RecognitionException [2] 984 { 985 try 986 { 987 var _type = STRING; 988 var _channel = DEFAULT_TOKEN_CHANNEL; 989 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:258:6: ( '\\'' ( EscapeSequence | ( options {greedy=false; } : ~ ( '\\u0000' .. '\\u001f' | '\\\\' | '\\'' ) ) )* '\\'' ) 990 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:258:10: '\\'' ( EscapeSequence | ( options {greedy=false; } : ~ ( '\\u0000' .. '\\u001f' | '\\\\' | '\\'' ) ) )* '\\'' 991 { 992 Match('\''); 993 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:258:15: ( EscapeSequence | ( options {greedy=false; } : ~ ( '\\u0000' .. '\\u001f' | '\\\\' | '\\'' ) ) )* 994 do 995 { 996 var alt8 = 3; 997 var LA8_0 = input.LA(1); 998 999 if (LA8_0 == '\\') 1000 { 1001 alt8 = 1; 1002 } 1003 else if (LA8_0 >= ' ' && LA8_0 <= '&' || LA8_0 >= '(' && LA8_0 <= '[' || LA8_0 >= ']' && LA8_0 <= '\uFFFF') 1004 { 1005 alt8 = 2; 1006 } 1007 1008 switch (alt8) 1009 { 1010 case 1: 1011 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:258:17: EscapeSequence 1012 { 1013 mEscapeSequence(); 1014 } 1015 break; 1016 case 2: 1017 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:258:34: ( options {greedy=false; } : ~ ( '\\u0000' .. '\\u001f' | '\\\\' | '\\'' ) ) 1018 { 1019 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:258:34: ( options {greedy=false; } : ~ ( '\\u0000' .. '\\u001f' | '\\\\' | '\\'' ) ) 1020 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:258:61: ~ ( '\\u0000' .. '\\u001f' | '\\\\' | '\\'' ) 1021 { 1022 if (input.LA(1) >= ' ' && input.LA(1) <= '&' || input.LA(1) >= '(' && input.LA(1) <= '[' || input.LA(1) >= ']' && input.LA(1) <= '\uFFFF') 1023 { 1024 input.Consume(); 1025 } 1026 else 1027 { 1028 var mse = new MismatchedSetException(null, input); 1029 Recover(mse); 1030 throw mse; 1031 } 1032 } 1033 } 1034 break; 1035 1036 default: 1037 goto loop8; 1038 } 1039 } 1040 while (true); 1041 1042 loop8: 1043 ; // Stops C# compiler whining that label 'loop8' has no statements 1044 1045 Match('\''); 1046 } 1047 1048 state.type = _type; 1049 state.channel = _channel; 1050 } 1051 finally { } 1052 } 1053 1054 // $ANTLR end "STRING" 1055 1056 // $ANTLR start "DATETIME" 1057 public void mDATETIME() // throws RecognitionException [2] 1058 { 1059 try 1060 { 1061 var _type = DATETIME; 1062 var _channel = DEFAULT_TOKEN_CHANNEL; 1063 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:262:3: ( '#' ( options {greedy=false; } : (~ ( '#' ) )* ) '#' ) 1064 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:262:5: '#' ( options {greedy=false; } : (~ ( '#' ) )* ) '#' 1065 { 1066 Match('#'); 1067 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:262:9: ( options {greedy=false; } : (~ ( '#' ) )* ) 1068 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:262:36: (~ ( '#' ) )* 1069 { 1070 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:262:36: (~ ( '#' ) )* 1071 do 1072 { 1073 var alt9 = 2; 1074 var LA9_0 = input.LA(1); 1075 1076 if (LA9_0 >= '\u0000' && LA9_0 <= '\"' || LA9_0 >= '$' && LA9_0 <= '\uFFFF') 1077 { 1078 alt9 = 1; 1079 } 1080 1081 switch (alt9) 1082 { 1083 case 1: 1084 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:262:36: ~ ( '#' ) 1085 { 1086 if (input.LA(1) >= '\u0000' && input.LA(1) <= '\"' || input.LA(1) >= '$' && input.LA(1) <= '\uFFFF') 1087 { 1088 input.Consume(); 1089 } 1090 else 1091 { 1092 var mse = new MismatchedSetException(null, input); 1093 Recover(mse); 1094 throw mse; 1095 } 1096 } 1097 break; 1098 1099 default: 1100 goto loop9; 1101 } 1102 } 1103 while (true); 1104 1105 loop9: 1106 ; // Stops C# compiler whining that label 'loop9' has no statements 1107 } 1108 1109 Match('#'); 1110 } 1111 1112 state.type = _type; 1113 state.channel = _channel; 1114 } 1115 finally { } 1116 } 1117 1118 // $ANTLR end "DATETIME" 1119 1120 // $ANTLR start "NAME" 1121 public void mNAME() // throws RecognitionException [2] 1122 { 1123 try 1124 { 1125 var _type = NAME; 1126 var _channel = DEFAULT_TOKEN_CHANNEL; 1127 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:265:6: ( '[' ( options {greedy=false; } : (~ ( ']' ) )* ) ']' ) 1128 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:265:8: '[' ( options {greedy=false; } : (~ ( ']' ) )* ) ']' 1129 { 1130 Match('['); 1131 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:265:12: ( options {greedy=false; } : (~ ( ']' ) )* ) 1132 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:265:39: (~ ( ']' ) )* 1133 { 1134 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:265:39: (~ ( ']' ) )* 1135 do 1136 { 1137 var alt10 = 2; 1138 var LA10_0 = input.LA(1); 1139 1140 if (LA10_0 >= '\u0000' && LA10_0 <= '\\' || LA10_0 >= '^' && LA10_0 <= '\uFFFF') 1141 { 1142 alt10 = 1; 1143 } 1144 1145 switch (alt10) 1146 { 1147 case 1: 1148 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:265:39: ~ ( ']' ) 1149 { 1150 if (input.LA(1) >= '\u0000' && input.LA(1) <= '\\' || input.LA(1) >= '^' && input.LA(1) <= '\uFFFF') 1151 { 1152 input.Consume(); 1153 } 1154 else 1155 { 1156 var mse = new MismatchedSetException(null, input); 1157 Recover(mse); 1158 throw mse; 1159 } 1160 } 1161 break; 1162 1163 default: 1164 goto loop10; 1165 } 1166 } 1167 while (true); 1168 1169 loop10: 1170 ; // Stops C# compiler whining that label 'loop10' has no statements 1171 } 1172 1173 Match(']'); 1174 } 1175 1176 state.type = _type; 1177 state.channel = _channel; 1178 } 1179 finally { } 1180 } 1181 1182 // $ANTLR end "NAME" 1183 1184 // $ANTLR start "E" 1185 public void mE() // throws RecognitionException [2] 1186 { 1187 try 1188 { 1189 var _type = E; 1190 var _channel = DEFAULT_TOKEN_CHANNEL; 1191 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:268:3: ( ( 'E' | 'e' ) ( '+' | '-' )? ( DIGIT )+ ) 1192 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:268:5: ( 'E' | 'e' ) ( '+' | '-' )? ( DIGIT )+ 1193 { 1194 if (input.LA(1) == 'E' || input.LA(1) == 'e') 1195 { 1196 input.Consume(); 1197 } 1198 else 1199 { 1200 var mse = new MismatchedSetException(null, input); 1201 Recover(mse); 1202 throw mse; 1203 } 1204 1205 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:268:15: ( '+' | '-' )? 1206 var alt11 = 2; 1207 var LA11_0 = input.LA(1); 1208 1209 if (LA11_0 == '+' || LA11_0 == '-') 1210 { 1211 alt11 = 1; 1212 } 1213 switch (alt11) 1214 { 1215 case 1: 1216 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g: 1217 { 1218 if (input.LA(1) == '+' || input.LA(1) == '-') 1219 { 1220 input.Consume(); 1221 } 1222 else 1223 { 1224 var mse = new MismatchedSetException(null, input); 1225 Recover(mse); 1226 throw mse; 1227 } 1228 } 1229 break; 1230 } 1231 1232 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:268:26: ( DIGIT )+ 1233 var cnt12 = 0; 1234 do 1235 { 1236 var alt12 = 2; 1237 var LA12_0 = input.LA(1); 1238 1239 if (LA12_0 >= '0' && LA12_0 <= '9') 1240 { 1241 alt12 = 1; 1242 } 1243 1244 switch (alt12) 1245 { 1246 case 1: 1247 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:268:26: DIGIT 1248 { 1249 mDIGIT(); 1250 } 1251 break; 1252 1253 default: 1254 if (cnt12 >= 1) 1255 { 1256 goto loop12; 1257 } 1258 var eee12 = 1259 new EarlyExitException(12, input); 1260 throw eee12; 1261 } 1262 cnt12++; 1263 } 1264 while (true); 1265 1266 loop12: 1267 ; // Stops C# compiler whining that label 'loop12' has no statements 1268 } 1269 1270 state.type = _type; 1271 state.channel = _channel; 1272 } 1273 finally { } 1274 } 1275 1276 // $ANTLR end "E" 1277 1278 // $ANTLR start "LETTER" 1279 public void mLETTER() // throws RecognitionException [2] 1280 { 1281 try 1282 { 1283 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:272:2: ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) 1284 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g: 1285 { 1286 if (input.LA(1) >= 'A' && input.LA(1) <= 'Z' || input.LA(1) == '_' || input.LA(1) >= 'a' && input.LA(1) <= 'z') 1287 { 1288 input.Consume(); 1289 } 1290 else 1291 { 1292 var mse = new MismatchedSetException(null, input); 1293 Recover(mse); 1294 throw mse; 1295 } 1296 } 1297 } 1298 finally { } 1299 } 1300 1301 // $ANTLR end "LETTER" 1302 1303 // $ANTLR start "DIGIT" 1304 public void mDIGIT() // throws RecognitionException [2] 1305 { 1306 try 1307 { 1308 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:278:2: ( '0' .. '9' ) 1309 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:278:4: '0' .. '9' 1310 { 1311 MatchRange('0', '9'); 1312 } 1313 } 1314 finally { } 1315 } 1316 1317 // $ANTLR end "DIGIT" 1318 1319 // $ANTLR start "EscapeSequence" 1320 public void mEscapeSequence() // throws RecognitionException [2] 1321 { 1322 try 1323 { 1324 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:282:2: ( '\\\\' ( 'n' | 'r' | 't' | '\\'' | '\\\\' | UnicodeEscape ) ) 1325 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:282:4: '\\\\' ( 'n' | 'r' | 't' | '\\'' | '\\\\' | UnicodeEscape ) 1326 { 1327 Match('\\'); 1328 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:283:4: ( 'n' | 'r' | 't' | '\\'' | '\\\\' | UnicodeEscape ) 1329 var alt13 = 6; 1330 switch (input.LA(1)) 1331 { 1332 case 'n': 1333 { 1334 alt13 = 1; 1335 } 1336 break; 1337 case 'r': 1338 { 1339 alt13 = 2; 1340 } 1341 break; 1342 case 't': 1343 { 1344 alt13 = 3; 1345 } 1346 break; 1347 case '\'': 1348 { 1349 alt13 = 4; 1350 } 1351 break; 1352 case '\\': 1353 { 1354 alt13 = 5; 1355 } 1356 break; 1357 case 'u': 1358 { 1359 alt13 = 6; 1360 } 1361 break; 1362 default: 1363 var nvae_d13s0 = 1364 new NoViableAltException("", 13, 0, input); 1365 1366 throw nvae_d13s0; 1367 } 1368 1369 switch (alt13) 1370 { 1371 case 1: 1372 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:284:5: 'n' 1373 { 1374 Match('n'); 1375 } 1376 break; 1377 case 2: 1378 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:285:4: 'r' 1379 { 1380 Match('r'); 1381 } 1382 break; 1383 case 3: 1384 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:286:4: 't' 1385 { 1386 Match('t'); 1387 } 1388 break; 1389 case 4: 1390 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:287:4: '\\'' 1391 { 1392 Match('\''); 1393 } 1394 break; 1395 case 5: 1396 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:288:4: '\\\\' 1397 { 1398 Match('\\'); 1399 } 1400 break; 1401 case 6: 1402 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:289:4: UnicodeEscape 1403 { 1404 mUnicodeEscape(); 1405 } 1406 break; 1407 } 1408 } 1409 } 1410 finally { } 1411 } 1412 1413 // $ANTLR end "EscapeSequence" 1414 1415 // $ANTLR start "HexDigit" 1416 public void mHexDigit() // throws RecognitionException [2] 1417 { 1418 try 1419 { 1420 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:294:2: ( ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ) 1421 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:294:5: ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) 1422 { 1423 if (input.LA(1) >= '0' && input.LA(1) <= '9' || input.LA(1) >= 'A' && input.LA(1) <= 'F' || input.LA(1) >= 'a' && input.LA(1) <= 'f') 1424 { 1425 input.Consume(); 1426 } 1427 else 1428 { 1429 var mse = new MismatchedSetException(null, input); 1430 Recover(mse); 1431 throw mse; 1432 } 1433 } 1434 } 1435 finally { } 1436 } 1437 1438 // $ANTLR end "HexDigit" 1439 1440 // $ANTLR start "UnicodeEscape" 1441 public void mUnicodeEscape() // throws RecognitionException [2] 1442 { 1443 try 1444 { 1445 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:298:6: ( 'u' HexDigit HexDigit HexDigit HexDigit ) 1446 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:298:12: 'u' HexDigit HexDigit HexDigit HexDigit 1447 { 1448 Match('u'); 1449 mHexDigit(); 1450 mHexDigit(); 1451 mHexDigit(); 1452 mHexDigit(); 1453 } 1454 } 1455 finally { } 1456 } 1457 1458 // $ANTLR end "UnicodeEscape" 1459 1460 // $ANTLR start "WS" 1461 public void mWS() // throws RecognitionException [2] 1462 { 1463 try 1464 { 1465 var _type = WS; 1466 var _channel = DEFAULT_TOKEN_CHANNEL; 1467 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:302:4: ( ( ' ' | '\\r' | '\\t' | '\\u000C' | '\\n' ) ) 1468 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:302:7: ( ' ' | '\\r' | '\\t' | '\\u000C' | '\\n' ) 1469 { 1470 if (input.LA(1) >= '\t' && input.LA(1) <= '\n' || input.LA(1) >= '\f' && input.LA(1) <= '\r' || input.LA(1) == ' ') 1471 { 1472 input.Consume(); 1473 } 1474 else 1475 { 1476 var mse = new MismatchedSetException(null, input); 1477 Recover(mse); 1478 throw mse; 1479 } 1480 1481 _channel = HIDDEN; 1482 } 1483 1484 state.type = _type; 1485 state.channel = _channel; 1486 } 1487 finally { } 1488 } 1489 1490 // $ANTLR end "WS" 1491 1492 override public void mTokens() // throws RecognitionException 1493 { 1494 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:8: ( 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 | T__48 | TRUE | FALSE | ID | INTEGER | FLOAT | STRING | DATETIME | NAME | E | WS ) 1495 var alt14 = 40; 1496 alt14 = dfa14.Predict(input); 1497 switch (alt14) 1498 { 1499 case 1: 1500 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:10: T__19 1501 { 1502 mT__19(); 1503 } 1504 break; 1505 case 2: 1506 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:16: T__20 1507 { 1508 mT__20(); 1509 } 1510 break; 1511 case 3: 1512 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:22: T__21 1513 { 1514 mT__21(); 1515 } 1516 break; 1517 case 4: 1518 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:28: T__22 1519 { 1520 mT__22(); 1521 } 1522 break; 1523 case 5: 1524 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:34: T__23 1525 { 1526 mT__23(); 1527 } 1528 break; 1529 case 6: 1530 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:40: T__24 1531 { 1532 mT__24(); 1533 } 1534 break; 1535 case 7: 1536 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:46: T__25 1537 { 1538 mT__25(); 1539 } 1540 break; 1541 case 8: 1542 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:52: T__26 1543 { 1544 mT__26(); 1545 } 1546 break; 1547 case 9: 1548 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:58: T__27 1549 { 1550 mT__27(); 1551 } 1552 break; 1553 case 10: 1554 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:64: T__28 1555 { 1556 mT__28(); 1557 } 1558 break; 1559 case 11: 1560 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:70: T__29 1561 { 1562 mT__29(); 1563 } 1564 break; 1565 case 12: 1566 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:76: T__30 1567 { 1568 mT__30(); 1569 } 1570 break; 1571 case 13: 1572 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:82: T__31 1573 { 1574 mT__31(); 1575 } 1576 break; 1577 case 14: 1578 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:88: T__32 1579 { 1580 mT__32(); 1581 } 1582 break; 1583 case 15: 1584 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:94: T__33 1585 { 1586 mT__33(); 1587 } 1588 break; 1589 case 16: 1590 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:100: T__34 1591 { 1592 mT__34(); 1593 } 1594 break; 1595 case 17: 1596 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:106: T__35 1597 { 1598 mT__35(); 1599 } 1600 break; 1601 case 18: 1602 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:112: T__36 1603 { 1604 mT__36(); 1605 } 1606 break; 1607 case 19: 1608 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:118: T__37 1609 { 1610 mT__37(); 1611 } 1612 break; 1613 case 20: 1614 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:124: T__38 1615 { 1616 mT__38(); 1617 } 1618 break; 1619 case 21: 1620 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:130: T__39 1621 { 1622 mT__39(); 1623 } 1624 break; 1625 case 22: 1626 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:136: T__40 1627 { 1628 mT__40(); 1629 } 1630 break; 1631 case 23: 1632 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:142: T__41 1633 { 1634 mT__41(); 1635 } 1636 break; 1637 case 24: 1638 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:148: T__42 1639 { 1640 mT__42(); 1641 } 1642 break; 1643 case 25: 1644 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:154: T__43 1645 { 1646 mT__43(); 1647 } 1648 break; 1649 case 26: 1650 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:160: T__44 1651 { 1652 mT__44(); 1653 } 1654 break; 1655 case 27: 1656 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:166: T__45 1657 { 1658 mT__45(); 1659 } 1660 break; 1661 case 28: 1662 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:172: T__46 1663 { 1664 mT__46(); 1665 } 1666 break; 1667 case 29: 1668 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:178: T__47 1669 { 1670 mT__47(); 1671 } 1672 break; 1673 case 30: 1674 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:184: T__48 1675 { 1676 mT__48(); 1677 } 1678 break; 1679 case 31: 1680 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:190: TRUE 1681 { 1682 mTRUE(); 1683 } 1684 break; 1685 case 32: 1686 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:195: FALSE 1687 { 1688 mFALSE(); 1689 } 1690 break; 1691 case 33: 1692 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:201: ID 1693 { 1694 mID(); 1695 } 1696 break; 1697 case 34: 1698 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:204: INTEGER 1699 { 1700 mINTEGER(); 1701 } 1702 break; 1703 case 35: 1704 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:212: FLOAT 1705 { 1706 mFLOAT(); 1707 } 1708 break; 1709 case 36: 1710 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:218: STRING 1711 { 1712 mSTRING(); 1713 } 1714 break; 1715 case 37: 1716 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:225: DATETIME 1717 { 1718 mDATETIME(); 1719 } 1720 break; 1721 case 38: 1722 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:234: NAME 1723 { 1724 mNAME(); 1725 } 1726 break; 1727 case 39: 1728 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:239: E 1729 { 1730 mE(); 1731 } 1732 break; 1733 case 40: 1734 // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:241: WS 1735 { 1736 mWS(); 1737 } 1738 break; 1739 } 1740 } 1741 1742 public const int T__29 = 29; 1743 public const int T__28 = 28; 1744 public const int T__27 = 27; 1745 public const int T__26 = 26; 1746 public const int T__25 = 25; 1747 public const int T__24 = 24; 1748 public const int LETTER = 12; 1749 public const int T__23 = 23; 1750 public const int T__22 = 22; 1751 public const int T__21 = 21; 1752 public const int T__20 = 20; 1753 public const int FLOAT = 5; 1754 public const int ID = 10; 1755 public const int EOF = -1; 1756 public const int HexDigit = 17; 1757 public const int T__19 = 19; 1758 public const int NAME = 11; 1759 public const int DIGIT = 13; 1760 public const int T__42 = 42; 1761 public const int INTEGER = 4; 1762 public const int E = 14; 1763 public const int T__43 = 43; 1764 public const int T__40 = 40; 1765 public const int T__41 = 41; 1766 public const int T__46 = 46; 1767 public const int T__47 = 47; 1768 public const int T__44 = 44; 1769 public const int T__45 = 45; 1770 public const int T__48 = 48; 1771 public const int DATETIME = 7; 1772 public const int TRUE = 8; 1773 public const int T__30 = 30; 1774 public const int T__31 = 31; 1775 public const int T__32 = 32; 1776 public const int WS = 18; 1777 public const int T__33 = 33; 1778 public const int T__34 = 34; 1779 public const int T__35 = 35; 1780 public const int T__36 = 36; 1781 public const int T__37 = 37; 1782 public const int T__38 = 38; 1783 public const int T__39 = 39; 1784 public const int UnicodeEscape = 16; 1785 public const int FALSE = 9; 1786 public const int EscapeSequence = 15; 1787 public const int STRING = 6; 1788 1789 private const string DFA7_eotS = 1790 "\x04\uffff"; 1791 1792 private const string DFA7_eofS = 1793 "\x04\uffff"; 1794 1795 private const string DFA7_minS = 1796 "\x02\x2e\x02\uffff"; 1797 1798 private const string DFA7_maxS = 1799 "\x01\x39\x01\x65\x02\uffff"; 1800 1801 private const string DFA7_acceptS = 1802 "\x02\uffff\x01\x01\x01\x02"; 1803 1804 private const string DFA7_specialS = 1805 "\x04\uffff}>"; 1806 1807 private const string DFA14_eotS = 1808 "\x03\uffff\x01\x21\x01\x1e\x01\x24\x01\x1e\x01\uffff\x01\x27\x01" + 1809 "\x29\x01\x2d\x01\x30\x05\uffff\x01\x1e\x04\uffff\x03\x1e\x01\x36" + 1810 "\x08\uffff\x01\x37\x02\uffff\x01\x1e\x0b\uffff\x03\x1e\x01\uffff" + 1811 "\x01\x1e\x02\uffff\x01\x3c\x01\x3d\x02\x1e\x02\uffff\x01\x40\x01" + 1812 "\x1e\x01\uffff\x01\x42\x01\uffff"; 1813 1814 private const string DFA14_eofS = 1815 "\x43\uffff"; 1816 1817 private const string DFA14_minS = 1818 "\x01\x09\x02\uffff\x01\x7c\x01\x72\x01\x26\x01\x6e\x01\uffff\x02" + 1819 "\x3d\x01\x3c\x01\x3d\x05\uffff\x01\x6f\x04\uffff\x01\x72\x01\x61" + 1820 "\x01\x2b\x01\x2e\x08\uffff\x01\x30\x02\uffff\x01\x64\x0b\uffff\x01" + 1821 "\x74\x01\x75\x01\x6c\x01\uffff\x01\x30\x02\uffff\x02\x30\x01\x65" + 1822 "\x01\x73\x02\uffff\x01\x30\x01\x65\x01\uffff\x01\x30\x01\uffff"; 1823 1824 private const string DFA14_maxS = 1825 "\x01\x7e\x02\uffff\x01\x7c\x01\x72\x01\x26\x01\x6e\x01\uffff\x02" + 1826 "\x3d\x02\x3e\x05\uffff\x01\x6f\x04\uffff\x01\x72\x01\x61\x01\x39" + 1827 "\x01\x65\x08\uffff\x01\x7a\x02\uffff\x01\x64\x0b\uffff\x01\x74\x01" + 1828 "\x75\x01\x6c\x01\uffff\x01\x39\x02\uffff\x02\x7a\x01\x65\x01\x73" + 1829 "\x02\uffff\x01\x7a\x01\x65\x01\uffff\x01\x7a\x01\uffff"; 1830 1831 private const string DFA14_acceptS = 1832 "\x01\uffff\x01\x01\x01\x02\x04\uffff\x01\x08\x04\uffff\x01\x14" + 1833 "\x01\x15\x01\x16\x01\x17\x01\x18\x01\uffff\x01\x1b\x01\x1c\x01\x1d" + 1834 "\x01\x1e\x04\uffff\x01\x23\x01\x24\x01\x25\x01\x26\x01\x21\x01\x28" + 1835 "\x01\x03\x01\x07\x01\uffff\x01\x05\x01\x09\x01\uffff\x01\x0a\x01" + 1836 "\x0b\x01\x0c\x01\x19\x01\x0d\x01\x0f\x01\x12\x01\x0e\x01\x11\x01" + 1837 "\x13\x01\x10\x03\uffff\x01\x27\x01\uffff\x01\x22\x01\x04\x04\uffff" + 1838 "\x01\x06\x01\x1a\x02\uffff\x01\x1f\x01\uffff\x01\x20"; 1839 1840 private const string DFA14_specialS = 1841 "\x43\uffff}>"; 1842 1843 private static readonly string[] DFA7_transitionS = 1844 { 1845 "\x01\x02\x01\uffff\x0a\x01", 1846 "\x01\x02\x01\uffff\x0a\x01\x0b\uffff\x01\x03\x1f\uffff\x01" + 1847 "\x03", 1848 "", 1849 "" 1850 }; 1851 1852 private static readonly short[] DFA7_eot = DFA.UnpackEncodedString(DFA7_eotS); 1853 private static readonly short[] DFA7_eof = DFA.UnpackEncodedString(DFA7_eofS); 1854 private static readonly char[] DFA7_min = DFA.UnpackEncodedStringToUnsignedChars(DFA7_minS); 1855 private static readonly char[] DFA7_max = DFA.UnpackEncodedStringToUnsignedChars(DFA7_maxS); 1856 private static readonly short[] DFA7_accept = DFA.UnpackEncodedString(DFA7_acceptS); 1857 private static readonly short[] DFA7_special = DFA.UnpackEncodedString(DFA7_specialS); 1858 private static readonly short[][] DFA7_transition = DFA.UnpackEncodedStringArray(DFA7_transitionS); 1859 1860 private static readonly string[] DFA14_transitionS = 1861 { 1862 "\x02\x1f\x01\uffff\x02\x1f\x12\uffff\x01\x1f\x01\x09\x01\uffff" + 1863 "\x01\x1c\x01\uffff\x01\x10\x01\x05\x01\x1b\x01\x13\x01\x14\x01" + 1864 "\x0e\x01\x0c\x01\x15\x01\x0d\x01\x1a\x01\x0f\x0a\x19\x01\x02" + 1865 "\x01\uffff\x01\x0a\x01\x08\x01\x0b\x01\x01\x01\uffff\x04\x1e" + 1866 "\x01\x18\x15\x1e\x01\x1d\x02\uffff\x01\x07\x01\x1e\x01\uffff" + 1867 "\x01\x06\x03\x1e\x01\x18\x01\x17\x07\x1e\x01\x11\x01\x04\x04" + 1868 "\x1e\x01\x16\x06\x1e\x01\uffff\x01\x03\x01\uffff\x01\x12", 1869 "", 1870 "", 1871 "\x01\x20", 1872 "\x01\x22", 1873 "\x01\x23", 1874 "\x01\x25", 1875 "", 1876 "\x01\x26", 1877 "\x01\x28", 1878 "\x01\x2c\x01\x2b\x01\x2a", 1879 "\x01\x2e\x01\x2f", 1880 "", 1881 "", 1882 "", 1883 "", 1884 "", 1885 "\x01\x31", 1886 "", 1887 "", 1888 "", 1889 "", 1890 "\x01\x32", 1891 "\x01\x33", 1892 "\x01\x34\x01\uffff\x01\x34\x02\uffff\x0a\x35", 1893 "\x01\x1a\x01\uffff\x0a\x19\x0b\uffff\x01\x1a\x1f\uffff\x01" + 1894 "\x1a", 1895 "", 1896 "", 1897 "", 1898 "", 1899 "", 1900 "", 1901 "", 1902 "", 1903 "\x0a\x1e\x07\uffff\x1a\x1e\x04\uffff\x01\x1e\x01\uffff\x1a" + 1904 "\x1e", 1905 "", 1906 "", 1907 "\x01\x38", 1908 "", 1909 "", 1910 "", 1911 "", 1912 "", 1913 "", 1914 "", 1915 "", 1916 "", 1917 "", 1918 "", 1919 "\x01\x39", 1920 "\x01\x3a", 1921 "\x01\x3b", 1922 "", 1923 "\x0a\x35", 1924 "", 1925 "", 1926 "\x0a\x1e\x07\uffff\x1a\x1e\x04\uffff\x01\x1e\x01\uffff\x1a" + 1927 "\x1e", 1928 "\x0a\x1e\x07\uffff\x1a\x1e\x04\uffff\x01\x1e\x01\uffff\x1a" + 1929 "\x1e", 1930 "\x01\x3e", 1931 "\x01\x3f", 1932 "", 1933 "", 1934 "\x0a\x1e\x07\uffff\x1a\x1e\x04\uffff\x01\x1e\x01\uffff\x1a" + 1935 "\x1e", 1936 "\x01\x41", 1937 "", 1938 "\x0a\x1e\x07\uffff\x1a\x1e\x04\uffff\x01\x1e\x01\uffff\x1a" + 1939 "\x1e", 1940 "" 1941 }; 1942 1943 private static readonly short[] DFA14_eot = DFA.UnpackEncodedString(DFA14_eotS); 1944 private static readonly short[] DFA14_eof = DFA.UnpackEncodedString(DFA14_eofS); 1945 private static readonly char[] DFA14_min = DFA.UnpackEncodedStringToUnsignedChars(DFA14_minS); 1946 private static readonly char[] DFA14_max = DFA.UnpackEncodedStringToUnsignedChars(DFA14_maxS); 1947 private static readonly short[] DFA14_accept = DFA.UnpackEncodedString(DFA14_acceptS); 1948 private static readonly short[] DFA14_special = DFA.UnpackEncodedString(DFA14_specialS); 1949 private static readonly short[][] DFA14_transition = DFA.UnpackEncodedStringArray(DFA14_transitionS); 1950 1951 protected class DFA7 : DFA 1952 { 1953 public DFA7(BaseRecognizer recognizer) 1954 { 1955 this.recognizer = recognizer; 1956 decisionNumber = 7; 1957 eot = DFA7_eot; 1958 eof = DFA7_eof; 1959 min = DFA7_min; 1960 max = DFA7_max; 1961 accept = DFA7_accept; 1962 special = DFA7_special; 1963 transition = DFA7_transition; 1964 } 1965 1966 override public string Description 1967 { 1968 get 1969 { 1970 return "252:1: FLOAT : ( ( DIGIT )* '.' ( DIGIT )+ ( E )? | ( DIGIT )+ E );"; 1971 } 1972 } 1973 } 1974 1975 protected class DFA14 : DFA 1976 { 1977 public DFA14(BaseRecognizer recognizer) 1978 { 1979 this.recognizer = recognizer; 1980 decisionNumber = 14; 1981 eot = DFA14_eot; 1982 eof = DFA14_eof; 1983 min = DFA14_min; 1984 max = DFA14_max; 1985 accept = DFA14_accept; 1986 special = DFA14_special; 1987 transition = DFA14_transition; 1988 } 1989 1990 override public string Description 1991 { 1992 get 1993 { 1994 return "1:1: Tokens : ( 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 | T__48 | TRUE | FALSE | ID | INTEGER | FLOAT | STRING | DATETIME | NAME | E | WS );"; 1995 } 1996 } 1997 } 1998 } 1999}