Revision created by MOE tool push_codebase.
[gae.git] / java / src / main / com / google / appengine / api / search / ExpressionLexer.java
blobb7a901bce21189cc53930854545fef35d4fa81a0
3 package com.google.appengine.api.search;
5 import org.antlr.runtime.*;
7 public class ExpressionLexer extends Lexer {
8 public static final int DOLLAR=33;
9 public static final int LT=7;
10 public static final int EXPONENT=28;
11 public static final int LSQUARE=19;
12 public static final int ASCII_LETTER=31;
13 public static final int OCTAL_ESC=36;
14 public static final int FLOAT=23;
15 public static final int NAME_START=29;
16 public static final int EOF=-1;
17 public static final int LPAREN=17;
18 public static final int INDEX=5;
19 public static final int QUOTE=26;
20 public static final int RPAREN=18;
21 public static final int NAME=22;
22 public static final int ESC_SEQ=27;
23 public static final int PLUS=13;
24 public static final int DIGIT=25;
25 public static final int EQ=11;
26 public static final int NE=12;
27 public static final int T__42=42;
28 public static final int T__43=43;
29 public static final int T__40=40;
30 public static final int GE=10;
31 public static final int T__41=41;
32 public static final int T__46=46;
33 public static final int T__47=47;
34 public static final int T__44=44;
35 public static final int T__45=45;
36 public static final int T__48=48;
37 public static final int T__49=49;
38 public static final int UNICODE_ESC=35;
39 public static final int HEX_DIGIT=34;
40 public static final int UNDERSCORE=32;
41 public static final int INT=20;
42 public static final int FN=6;
43 public static final int MINUS=14;
44 public static final int RSQUARE=21;
45 public static final int PHRASE=24;
46 public static final int WS=30;
47 public static final int T__37=37;
48 public static final int T__38=38;
49 public static final int T__39=39;
50 public static final int NEG=4;
51 public static final int GT=9;
52 public static final int DIV=16;
53 public static final int TIMES=15;
54 public static final int LE=8;
56 public ExpressionLexer() {;}
57 public ExpressionLexer(CharStream input) {
58 this(input, new RecognizerSharedState());
60 public ExpressionLexer(CharStream input, RecognizerSharedState state) {
61 super(input,state);
64 public String getGrammarFileName() { return "java/com/google/appengine/api/search/Expression.g"; }
66 public final void mT__37() throws RecognitionException {
67 try {
68 int _type = T__37;
69 int _channel = DEFAULT_TOKEN_CHANNEL;
71 match('.');
75 state.type = _type;
76 state.channel = _channel;
78 finally {
82 public final void mT__38() throws RecognitionException {
83 try {
84 int _type = T__38;
85 int _channel = DEFAULT_TOKEN_CHANNEL;
87 match(',');
91 state.type = _type;
92 state.channel = _channel;
94 finally {
98 public final void mT__39() throws RecognitionException {
99 try {
100 int _type = T__39;
101 int _channel = DEFAULT_TOKEN_CHANNEL;
103 match("abs");
107 state.type = _type;
108 state.channel = _channel;
110 finally {
114 public final void mT__40() throws RecognitionException {
115 try {
116 int _type = T__40;
117 int _channel = DEFAULT_TOKEN_CHANNEL;
119 match("count");
123 state.type = _type;
124 state.channel = _channel;
126 finally {
130 public final void mT__41() throws RecognitionException {
131 try {
132 int _type = T__41;
133 int _channel = DEFAULT_TOKEN_CHANNEL;
135 match("distance");
139 state.type = _type;
140 state.channel = _channel;
142 finally {
146 public final void mT__42() throws RecognitionException {
147 try {
148 int _type = T__42;
149 int _channel = DEFAULT_TOKEN_CHANNEL;
151 match("geopoint");
155 state.type = _type;
156 state.channel = _channel;
158 finally {
162 public final void mT__43() throws RecognitionException {
163 try {
164 int _type = T__43;
165 int _channel = DEFAULT_TOKEN_CHANNEL;
167 match("if");
171 state.type = _type;
172 state.channel = _channel;
174 finally {
178 public final void mT__44() throws RecognitionException {
179 try {
180 int _type = T__44;
181 int _channel = DEFAULT_TOKEN_CHANNEL;
183 match("len");
187 state.type = _type;
188 state.channel = _channel;
190 finally {
194 public final void mT__45() throws RecognitionException {
195 try {
196 int _type = T__45;
197 int _channel = DEFAULT_TOKEN_CHANNEL;
199 match("log");
203 state.type = _type;
204 state.channel = _channel;
206 finally {
210 public final void mT__46() throws RecognitionException {
211 try {
212 int _type = T__46;
213 int _channel = DEFAULT_TOKEN_CHANNEL;
215 match("max");
219 state.type = _type;
220 state.channel = _channel;
222 finally {
226 public final void mT__47() throws RecognitionException {
227 try {
228 int _type = T__47;
229 int _channel = DEFAULT_TOKEN_CHANNEL;
231 match("min");
235 state.type = _type;
236 state.channel = _channel;
238 finally {
242 public final void mT__48() throws RecognitionException {
243 try {
244 int _type = T__48;
245 int _channel = DEFAULT_TOKEN_CHANNEL;
247 match("pow");
251 state.type = _type;
252 state.channel = _channel;
254 finally {
258 public final void mT__49() throws RecognitionException {
259 try {
260 int _type = T__49;
261 int _channel = DEFAULT_TOKEN_CHANNEL;
263 match("snippet");
267 state.type = _type;
268 state.channel = _channel;
270 finally {
274 public final void mINT() throws RecognitionException {
275 try {
276 int _type = INT;
277 int _channel = DEFAULT_TOKEN_CHANNEL;
279 int alt1=2;
280 int LA1_0 = input.LA(1);
282 if ( (LA1_0=='-') ) {
283 alt1=1;
285 switch (alt1) {
286 case 1 :
288 match('-');
291 break;
295 int cnt2=0;
296 loop2:
297 do {
298 int alt2=2;
299 int LA2_0 = input.LA(1);
301 if ( ((LA2_0>='0' && LA2_0<='9')) ) {
302 alt2=1;
305 switch (alt2) {
306 case 1 :
308 mDIGIT();
311 break;
313 default :
314 if ( cnt2 >= 1 ) break loop2;
315 EarlyExitException eee =
316 new EarlyExitException(2, input);
317 throw eee;
319 cnt2++;
320 } while (true);
324 state.type = _type;
325 state.channel = _channel;
327 finally {
331 public final void mPHRASE() throws RecognitionException {
332 try {
333 int _type = PHRASE;
334 int _channel = DEFAULT_TOKEN_CHANNEL;
336 mQUOTE();
337 loop3:
338 do {
339 int alt3=3;
340 int LA3_0 = input.LA(1);
342 if ( (LA3_0=='\\') ) {
343 alt3=1;
345 else if ( ((LA3_0>='\u0000' && LA3_0<='!')||(LA3_0>='#' && LA3_0<='[')||(LA3_0>=']' && LA3_0<='\uFFFF')) ) {
346 alt3=2;
349 switch (alt3) {
350 case 1 :
352 mESC_SEQ();
355 break;
356 case 2 :
358 if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
359 input.consume();
362 else {
363 MismatchedSetException mse = new MismatchedSetException(null,input);
364 recover(mse);
365 throw mse;}
368 break;
370 default :
371 break loop3;
373 } while (true);
375 mQUOTE();
379 state.type = _type;
380 state.channel = _channel;
382 finally {
386 public final void mFLOAT() throws RecognitionException {
387 try {
388 int _type = FLOAT;
389 int _channel = DEFAULT_TOKEN_CHANNEL;
390 int alt13=3;
391 alt13 = dfa13.predict(input);
392 switch (alt13) {
393 case 1 :
395 int alt4=2;
396 int LA4_0 = input.LA(1);
398 if ( (LA4_0=='-') ) {
399 alt4=1;
401 switch (alt4) {
402 case 1 :
404 match('-');
407 break;
411 int cnt5=0;
412 loop5:
413 do {
414 int alt5=2;
415 int LA5_0 = input.LA(1);
417 if ( ((LA5_0>='0' && LA5_0<='9')) ) {
418 alt5=1;
421 switch (alt5) {
422 case 1 :
424 mDIGIT();
427 break;
429 default :
430 if ( cnt5 >= 1 ) break loop5;
431 EarlyExitException eee =
432 new EarlyExitException(5, input);
433 throw eee;
435 cnt5++;
436 } while (true);
438 match('.');
439 loop6:
440 do {
441 int alt6=2;
442 int LA6_0 = input.LA(1);
444 if ( ((LA6_0>='0' && LA6_0<='9')) ) {
445 alt6=1;
448 switch (alt6) {
449 case 1 :
451 mDIGIT();
454 break;
456 default :
457 break loop6;
459 } while (true);
461 int alt7=2;
462 int LA7_0 = input.LA(1);
464 if ( (LA7_0=='E'||LA7_0=='e') ) {
465 alt7=1;
467 switch (alt7) {
468 case 1 :
470 mEXPONENT();
473 break;
478 break;
479 case 2 :
481 int alt8=2;
482 int LA8_0 = input.LA(1);
484 if ( (LA8_0=='-') ) {
485 alt8=1;
487 switch (alt8) {
488 case 1 :
490 match('-');
493 break;
497 match('.');
498 int cnt9=0;
499 loop9:
500 do {
501 int alt9=2;
502 int LA9_0 = input.LA(1);
504 if ( ((LA9_0>='0' && LA9_0<='9')) ) {
505 alt9=1;
508 switch (alt9) {
509 case 1 :
511 mDIGIT();
514 break;
516 default :
517 if ( cnt9 >= 1 ) break loop9;
518 EarlyExitException eee =
519 new EarlyExitException(9, input);
520 throw eee;
522 cnt9++;
523 } while (true);
525 int alt10=2;
526 int LA10_0 = input.LA(1);
528 if ( (LA10_0=='E'||LA10_0=='e') ) {
529 alt10=1;
531 switch (alt10) {
532 case 1 :
534 mEXPONENT();
537 break;
542 break;
543 case 3 :
545 int alt11=2;
546 int LA11_0 = input.LA(1);
548 if ( (LA11_0=='-') ) {
549 alt11=1;
551 switch (alt11) {
552 case 1 :
554 match('-');
557 break;
561 int cnt12=0;
562 loop12:
563 do {
564 int alt12=2;
565 int LA12_0 = input.LA(1);
567 if ( ((LA12_0>='0' && LA12_0<='9')) ) {
568 alt12=1;
571 switch (alt12) {
572 case 1 :
574 mDIGIT();
577 break;
579 default :
580 if ( cnt12 >= 1 ) break loop12;
581 EarlyExitException eee =
582 new EarlyExitException(12, input);
583 throw eee;
585 cnt12++;
586 } while (true);
588 mEXPONENT();
591 break;
594 state.type = _type;
595 state.channel = _channel;
597 finally {
601 public final void mNAME() throws RecognitionException {
602 try {
603 int _type = NAME;
604 int _channel = DEFAULT_TOKEN_CHANNEL;
606 mNAME_START();
607 loop14:
608 do {
609 int alt14=2;
610 int LA14_0 = input.LA(1);
612 if ( (LA14_0=='$'||(LA14_0>='0' && LA14_0<='9')||(LA14_0>='A' && LA14_0<='Z')||LA14_0=='_'||(LA14_0>='a' && LA14_0<='z')) ) {
613 alt14=1;
616 switch (alt14) {
617 case 1 :
619 if ( input.LA(1)=='$'||(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') ) {
620 input.consume();
623 else {
624 MismatchedSetException mse = new MismatchedSetException(null,input);
625 recover(mse);
626 throw mse;}
629 break;
631 default :
632 break loop14;
634 } while (true);
638 state.type = _type;
639 state.channel = _channel;
641 finally {
645 public final void mLPAREN() throws RecognitionException {
646 try {
647 int _type = LPAREN;
648 int _channel = DEFAULT_TOKEN_CHANNEL;
650 match('(');
654 state.type = _type;
655 state.channel = _channel;
657 finally {
661 public final void mRPAREN() throws RecognitionException {
662 try {
663 int _type = RPAREN;
664 int _channel = DEFAULT_TOKEN_CHANNEL;
666 match(')');
670 state.type = _type;
671 state.channel = _channel;
673 finally {
677 public final void mLSQUARE() throws RecognitionException {
678 try {
679 int _type = LSQUARE;
680 int _channel = DEFAULT_TOKEN_CHANNEL;
682 match('[');
686 state.type = _type;
687 state.channel = _channel;
689 finally {
693 public final void mRSQUARE() throws RecognitionException {
694 try {
695 int _type = RSQUARE;
696 int _channel = DEFAULT_TOKEN_CHANNEL;
698 match(']');
702 state.type = _type;
703 state.channel = _channel;
705 finally {
709 public final void mPLUS() throws RecognitionException {
710 try {
711 int _type = PLUS;
712 int _channel = DEFAULT_TOKEN_CHANNEL;
714 match('+');
718 state.type = _type;
719 state.channel = _channel;
721 finally {
725 public final void mMINUS() throws RecognitionException {
726 try {
727 int _type = MINUS;
728 int _channel = DEFAULT_TOKEN_CHANNEL;
730 match('-');
734 state.type = _type;
735 state.channel = _channel;
737 finally {
741 public final void mTIMES() throws RecognitionException {
742 try {
743 int _type = TIMES;
744 int _channel = DEFAULT_TOKEN_CHANNEL;
746 match('*');
750 state.type = _type;
751 state.channel = _channel;
753 finally {
757 public final void mDIV() throws RecognitionException {
758 try {
759 int _type = DIV;
760 int _channel = DEFAULT_TOKEN_CHANNEL;
762 match('/');
766 state.type = _type;
767 state.channel = _channel;
769 finally {
773 public final void mLT() throws RecognitionException {
774 try {
775 int _type = LT;
776 int _channel = DEFAULT_TOKEN_CHANNEL;
778 match('<');
782 state.type = _type;
783 state.channel = _channel;
785 finally {
789 public final void mLE() throws RecognitionException {
790 try {
791 int _type = LE;
792 int _channel = DEFAULT_TOKEN_CHANNEL;
794 match("<=");
798 state.type = _type;
799 state.channel = _channel;
801 finally {
805 public final void mGT() throws RecognitionException {
806 try {
807 int _type = GT;
808 int _channel = DEFAULT_TOKEN_CHANNEL;
810 match('>');
814 state.type = _type;
815 state.channel = _channel;
817 finally {
821 public final void mGE() throws RecognitionException {
822 try {
823 int _type = GE;
824 int _channel = DEFAULT_TOKEN_CHANNEL;
826 match(">=");
830 state.type = _type;
831 state.channel = _channel;
833 finally {
837 public final void mEQ() throws RecognitionException {
838 try {
839 int _type = EQ;
840 int _channel = DEFAULT_TOKEN_CHANNEL;
842 match("==");
846 state.type = _type;
847 state.channel = _channel;
849 finally {
853 public final void mNE() throws RecognitionException {
854 try {
855 int _type = NE;
856 int _channel = DEFAULT_TOKEN_CHANNEL;
858 match("!=");
862 state.type = _type;
863 state.channel = _channel;
865 finally {
869 public final void mQUOTE() throws RecognitionException {
870 try {
871 int _type = QUOTE;
872 int _channel = DEFAULT_TOKEN_CHANNEL;
874 match('\"');
878 state.type = _type;
879 state.channel = _channel;
881 finally {
885 public final void mWS() throws RecognitionException {
886 try {
887 int _type = WS;
888 int _channel = DEFAULT_TOKEN_CHANNEL;
890 int cnt15=0;
891 loop15:
892 do {
893 int alt15=2;
894 int LA15_0 = input.LA(1);
896 if ( ((LA15_0>='\t' && LA15_0<='\n')||LA15_0=='\r'||LA15_0==' ') ) {
897 alt15=1;
900 switch (alt15) {
901 case 1 :
903 if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) {
904 input.consume();
907 else {
908 MismatchedSetException mse = new MismatchedSetException(null,input);
909 recover(mse);
910 throw mse;}
913 break;
915 default :
916 if ( cnt15 >= 1 ) break loop15;
917 EarlyExitException eee =
918 new EarlyExitException(15, input);
919 throw eee;
921 cnt15++;
922 } while (true);
924 _channel = HIDDEN;
928 state.type = _type;
929 state.channel = _channel;
931 finally {
935 public final void mEXPONENT() throws RecognitionException {
936 try {
938 if ( input.LA(1)=='E'||input.LA(1)=='e' ) {
939 input.consume();
942 else {
943 MismatchedSetException mse = new MismatchedSetException(null,input);
944 recover(mse);
945 throw mse;}
947 int alt16=2;
948 int LA16_0 = input.LA(1);
950 if ( (LA16_0=='+'||LA16_0=='-') ) {
951 alt16=1;
953 switch (alt16) {
954 case 1 :
956 if ( input.LA(1)=='+'||input.LA(1)=='-' ) {
957 input.consume();
960 else {
961 MismatchedSetException mse = new MismatchedSetException(null,input);
962 recover(mse);
963 throw mse;}
966 break;
970 int cnt17=0;
971 loop17:
972 do {
973 int alt17=2;
974 int LA17_0 = input.LA(1);
976 if ( ((LA17_0>='0' && LA17_0<='9')) ) {
977 alt17=1;
980 switch (alt17) {
981 case 1 :
983 mDIGIT();
986 break;
988 default :
989 if ( cnt17 >= 1 ) break loop17;
990 EarlyExitException eee =
991 new EarlyExitException(17, input);
992 throw eee;
994 cnt17++;
995 } while (true);
1000 finally {
1004 public final void mNAME_START() throws RecognitionException {
1005 try {
1007 if ( input.LA(1)=='$'||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
1008 input.consume();
1011 else {
1012 MismatchedSetException mse = new MismatchedSetException(null,input);
1013 recover(mse);
1014 throw mse;}
1019 finally {
1023 public final void mASCII_LETTER() throws RecognitionException {
1024 try {
1026 if ( (input.LA(1)>='A' && input.LA(1)<='Z')||(input.LA(1)>='a' && input.LA(1)<='z') ) {
1027 input.consume();
1030 else {
1031 MismatchedSetException mse = new MismatchedSetException(null,input);
1032 recover(mse);
1033 throw mse;}
1038 finally {
1042 public final void mDIGIT() throws RecognitionException {
1043 try {
1045 matchRange('0','9');
1050 finally {
1054 public final void mDOLLAR() throws RecognitionException {
1055 try {
1057 match('$');
1062 finally {
1066 public final void mUNDERSCORE() throws RecognitionException {
1067 try {
1069 match('_');
1074 finally {
1078 public final void mHEX_DIGIT() throws RecognitionException {
1079 try {
1081 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') ) {
1082 input.consume();
1085 else {
1086 MismatchedSetException mse = new MismatchedSetException(null,input);
1087 recover(mse);
1088 throw mse;}
1093 finally {
1097 public final void mESC_SEQ() throws RecognitionException {
1098 try {
1099 int alt18=3;
1100 int LA18_0 = input.LA(1);
1102 if ( (LA18_0=='\\') ) {
1103 switch ( input.LA(2) ) {
1104 case '\"':
1105 case '\'':
1106 case '\\':
1107 case 'b':
1108 case 'f':
1109 case 'n':
1110 case 'r':
1111 case 't':
1113 alt18=1;
1115 break;
1116 case 'u':
1118 alt18=2;
1120 break;
1121 case '0':
1122 case '1':
1123 case '2':
1124 case '3':
1125 case '4':
1126 case '5':
1127 case '6':
1128 case '7':
1130 alt18=3;
1132 break;
1133 default:
1134 NoViableAltException nvae =
1135 new NoViableAltException("", 18, 1, input);
1137 throw nvae;
1141 else {
1142 NoViableAltException nvae =
1143 new NoViableAltException("", 18, 0, input);
1145 throw nvae;
1147 switch (alt18) {
1148 case 1 :
1150 match('\\');
1151 if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||input.LA(1)=='t' ) {
1152 input.consume();
1155 else {
1156 MismatchedSetException mse = new MismatchedSetException(null,input);
1157 recover(mse);
1158 throw mse;}
1161 break;
1162 case 2 :
1164 mUNICODE_ESC();
1167 break;
1168 case 3 :
1170 mOCTAL_ESC();
1173 break;
1177 finally {
1181 public final void mOCTAL_ESC() throws RecognitionException {
1182 try {
1183 int alt19=3;
1184 int LA19_0 = input.LA(1);
1186 if ( (LA19_0=='\\') ) {
1187 int LA19_1 = input.LA(2);
1189 if ( ((LA19_1>='0' && LA19_1<='3')) ) {
1190 int LA19_2 = input.LA(3);
1192 if ( ((LA19_2>='0' && LA19_2<='7')) ) {
1193 int LA19_4 = input.LA(4);
1195 if ( ((LA19_4>='0' && LA19_4<='7')) ) {
1196 alt19=1;
1198 else {
1199 alt19=2;}
1201 else {
1202 alt19=3;}
1204 else if ( ((LA19_1>='4' && LA19_1<='7')) ) {
1205 int LA19_3 = input.LA(3);
1207 if ( ((LA19_3>='0' && LA19_3<='7')) ) {
1208 alt19=2;
1210 else {
1211 alt19=3;}
1213 else {
1214 NoViableAltException nvae =
1215 new NoViableAltException("", 19, 1, input);
1217 throw nvae;
1220 else {
1221 NoViableAltException nvae =
1222 new NoViableAltException("", 19, 0, input);
1224 throw nvae;
1226 switch (alt19) {
1227 case 1 :
1229 match('\\');
1231 matchRange('0','3');
1236 matchRange('0','7');
1241 matchRange('0','7');
1246 break;
1247 case 2 :
1249 match('\\');
1251 matchRange('0','7');
1256 matchRange('0','7');
1261 break;
1262 case 3 :
1264 match('\\');
1266 matchRange('0','7');
1271 break;
1275 finally {
1279 public final void mUNICODE_ESC() throws RecognitionException {
1280 try {
1282 match('\\');
1283 match('u');
1284 mHEX_DIGIT();
1285 mHEX_DIGIT();
1286 mHEX_DIGIT();
1287 mHEX_DIGIT();
1292 finally {
1296 public void mTokens() throws RecognitionException {
1297 int alt20=33;
1298 alt20 = dfa20.predict(input);
1299 switch (alt20) {
1300 case 1 :
1302 mT__37();
1305 break;
1306 case 2 :
1308 mT__38();
1311 break;
1312 case 3 :
1314 mT__39();
1317 break;
1318 case 4 :
1320 mT__40();
1323 break;
1324 case 5 :
1326 mT__41();
1329 break;
1330 case 6 :
1332 mT__42();
1335 break;
1336 case 7 :
1338 mT__43();
1341 break;
1342 case 8 :
1344 mT__44();
1347 break;
1348 case 9 :
1350 mT__45();
1353 break;
1354 case 10 :
1356 mT__46();
1359 break;
1360 case 11 :
1362 mT__47();
1365 break;
1366 case 12 :
1368 mT__48();
1371 break;
1372 case 13 :
1374 mT__49();
1377 break;
1378 case 14 :
1380 mINT();
1383 break;
1384 case 15 :
1386 mPHRASE();
1389 break;
1390 case 16 :
1392 mFLOAT();
1395 break;
1396 case 17 :
1398 mNAME();
1401 break;
1402 case 18 :
1404 mLPAREN();
1407 break;
1408 case 19 :
1410 mRPAREN();
1413 break;
1414 case 20 :
1416 mLSQUARE();
1419 break;
1420 case 21 :
1422 mRSQUARE();
1425 break;
1426 case 22 :
1428 mPLUS();
1431 break;
1432 case 23 :
1434 mMINUS();
1437 break;
1438 case 24 :
1440 mTIMES();
1443 break;
1444 case 25 :
1446 mDIV();
1449 break;
1450 case 26 :
1452 mLT();
1455 break;
1456 case 27 :
1458 mLE();
1461 break;
1462 case 28 :
1464 mGT();
1467 break;
1468 case 29 :
1470 mGE();
1473 break;
1474 case 30 :
1476 mEQ();
1479 break;
1480 case 31 :
1482 mNE();
1485 break;
1486 case 32 :
1488 mQUOTE();
1491 break;
1492 case 33 :
1494 mWS();
1497 break;
1503 protected DFA13 dfa13 = new DFA13(this);
1504 protected DFA20 dfa20 = new DFA20(this);
1505 static final String DFA13_eotS =
1506 "\6\uffff";
1507 static final String DFA13_eofS =
1508 "\6\uffff";
1509 static final String DFA13_minS =
1510 "\1\55\2\56\3\uffff";
1511 static final String DFA13_maxS =
1512 "\2\71\1\145\3\uffff";
1513 static final String DFA13_acceptS =
1514 "\3\uffff\1\2\1\1\1\3";
1515 static final String DFA13_specialS =
1516 "\6\uffff}>";
1517 static final String[] DFA13_transitionS = {
1518 "\1\1\1\3\1\uffff\12\2",
1519 "\1\3\1\uffff\12\2",
1520 "\1\4\1\uffff\12\2\13\uffff\1\5\37\uffff\1\5",
1526 static final short[] DFA13_eot = DFA.unpackEncodedString(DFA13_eotS);
1527 static final short[] DFA13_eof = DFA.unpackEncodedString(DFA13_eofS);
1528 static final char[] DFA13_min = DFA.unpackEncodedStringToUnsignedChars(DFA13_minS);
1529 static final char[] DFA13_max = DFA.unpackEncodedStringToUnsignedChars(DFA13_maxS);
1530 static final short[] DFA13_accept = DFA.unpackEncodedString(DFA13_acceptS);
1531 static final short[] DFA13_special = DFA.unpackEncodedString(DFA13_specialS);
1532 static final short[][] DFA13_transition;
1534 static {
1535 int numStates = DFA13_transitionS.length;
1536 DFA13_transition = new short[numStates][];
1537 for (int i=0; i<numStates; i++) {
1538 DFA13_transition[i] = DFA.unpackEncodedString(DFA13_transitionS[i]);
1542 class DFA13 extends DFA {
1544 public DFA13(BaseRecognizer recognizer) {
1545 this.recognizer = recognizer;
1546 this.decisionNumber = 13;
1547 this.eot = DFA13_eot;
1548 this.eof = DFA13_eof;
1549 this.min = DFA13_min;
1550 this.max = DFA13_max;
1551 this.accept = DFA13_accept;
1552 this.special = DFA13_special;
1553 this.transition = DFA13_transition;
1555 public String getDescription() {
1556 return "142:1: FLOAT : ( ( '-' )? ( DIGIT )+ '.' ( DIGIT )* ( EXPONENT )? | ( '-' )? '.' ( DIGIT )+ ( EXPONENT )? | ( '-' )? ( DIGIT )+ EXPONENT );";
1559 static final String DFA20_eotS =
1560 "\1\uffff\1\34\1\uffff\11\17\1\51\1\52\1\53\10\uffff\1\56\1\60\5"+
1561 "\uffff\4\17\1\65\6\17\10\uffff\1\74\3\17\1\uffff\1\100\1\101\1\102"+
1562 "\1\103\1\104\1\17\1\uffff\3\17\5\uffff\1\17\1\112\3\17\1\uffff\5"+
1563 "\17\1\123\1\124\1\125\3\uffff";
1564 static final String DFA20_eofS =
1565 "\126\uffff";
1566 static final String DFA20_minS =
1567 "\1\11\1\60\1\uffff\1\142\1\157\1\151\1\145\1\146\1\145\1\141\1\157"+
1568 "\1\156\2\56\1\0\10\uffff\2\75\5\uffff\1\163\1\165\1\163\1\157\1"+
1569 "\44\1\156\1\147\1\170\1\156\1\167\1\151\10\uffff\1\44\1\156\1\164"+
1570 "\1\160\1\uffff\5\44\1\160\1\uffff\1\164\1\141\1\157\5\uffff\1\160"+
1571 "\1\44\1\156\1\151\1\145\1\uffff\1\143\1\156\1\164\1\145\1\164\3"+
1572 "\44\3\uffff";
1573 static final String DFA20_maxS =
1574 "\1\172\1\71\1\uffff\1\142\1\157\1\151\1\145\1\146\1\157\1\151\1"+
1575 "\157\1\156\1\71\1\145\1\uffff\10\uffff\2\75\5\uffff\1\163\1\165"+
1576 "\1\163\1\157\1\172\1\156\1\147\1\170\1\156\1\167\1\151\10\uffff"+
1577 "\1\172\1\156\1\164\1\160\1\uffff\5\172\1\160\1\uffff\1\164\1\141"+
1578 "\1\157\5\uffff\1\160\1\172\1\156\1\151\1\145\1\uffff\1\143\1\156"+
1579 "\1\164\1\145\1\164\3\172\3\uffff";
1580 static final String DFA20_acceptS =
1581 "\2\uffff\1\2\14\uffff\1\21\1\22\1\23\1\24\1\25\1\26\1\30\1\31\2"+
1582 "\uffff\1\36\1\37\1\41\1\1\1\20\13\uffff\1\27\1\16\1\40\1\17\1\33"+
1583 "\1\32\1\35\1\34\4\uffff\1\7\6\uffff\1\3\3\uffff\1\10\1\11\1\12\1"+
1584 "\13\1\14\5\uffff\1\4\10\uffff\1\15\1\5\1\6";
1585 static final String DFA20_specialS =
1586 "\16\uffff\1\0\107\uffff}>";
1587 static final String[] DFA20_transitionS = {
1588 "\2\33\2\uffff\1\33\22\uffff\1\33\1\32\1\16\1\uffff\1\17\3\uffff"+
1589 "\1\20\1\21\1\25\1\24\1\2\1\14\1\1\1\26\12\15\2\uffff\1\27\1"+
1590 "\31\1\30\2\uffff\32\17\1\22\1\uffff\1\23\1\uffff\1\17\1\uffff"+
1591 "\1\3\1\17\1\4\1\5\2\17\1\6\1\17\1\7\2\17\1\10\1\11\2\17\1\12"+
1592 "\2\17\1\13\7\17",
1593 "\12\35",
1595 "\1\36",
1596 "\1\37",
1597 "\1\40",
1598 "\1\41",
1599 "\1\42",
1600 "\1\43\11\uffff\1\44",
1601 "\1\45\7\uffff\1\46",
1602 "\1\47",
1603 "\1\50",
1604 "\1\35\1\uffff\12\15",
1605 "\1\35\1\uffff\12\15\13\uffff\1\35\37\uffff\1\35",
1606 "\0\54",
1615 "\1\55",
1616 "\1\57",
1622 "\1\61",
1623 "\1\62",
1624 "\1\63",
1625 "\1\64",
1626 "\1\17\13\uffff\12\17\7\uffff\32\17\4\uffff\1\17\1\uffff\32"+
1627 "\17",
1628 "\1\66",
1629 "\1\67",
1630 "\1\70",
1631 "\1\71",
1632 "\1\72",
1633 "\1\73",
1642 "\1\17\13\uffff\12\17\7\uffff\32\17\4\uffff\1\17\1\uffff\32"+
1643 "\17",
1644 "\1\75",
1645 "\1\76",
1646 "\1\77",
1648 "\1\17\13\uffff\12\17\7\uffff\32\17\4\uffff\1\17\1\uffff\32"+
1649 "\17",
1650 "\1\17\13\uffff\12\17\7\uffff\32\17\4\uffff\1\17\1\uffff\32"+
1651 "\17",
1652 "\1\17\13\uffff\12\17\7\uffff\32\17\4\uffff\1\17\1\uffff\32"+
1653 "\17",
1654 "\1\17\13\uffff\12\17\7\uffff\32\17\4\uffff\1\17\1\uffff\32"+
1655 "\17",
1656 "\1\17\13\uffff\12\17\7\uffff\32\17\4\uffff\1\17\1\uffff\32"+
1657 "\17",
1658 "\1\105",
1660 "\1\106",
1661 "\1\107",
1662 "\1\110",
1668 "\1\111",
1669 "\1\17\13\uffff\12\17\7\uffff\32\17\4\uffff\1\17\1\uffff\32"+
1670 "\17",
1671 "\1\113",
1672 "\1\114",
1673 "\1\115",
1675 "\1\116",
1676 "\1\117",
1677 "\1\120",
1678 "\1\121",
1679 "\1\122",
1680 "\1\17\13\uffff\12\17\7\uffff\32\17\4\uffff\1\17\1\uffff\32"+
1681 "\17",
1682 "\1\17\13\uffff\12\17\7\uffff\32\17\4\uffff\1\17\1\uffff\32"+
1683 "\17",
1684 "\1\17\13\uffff\12\17\7\uffff\32\17\4\uffff\1\17\1\uffff\32"+
1685 "\17",
1691 static final short[] DFA20_eot = DFA.unpackEncodedString(DFA20_eotS);
1692 static final short[] DFA20_eof = DFA.unpackEncodedString(DFA20_eofS);
1693 static final char[] DFA20_min = DFA.unpackEncodedStringToUnsignedChars(DFA20_minS);
1694 static final char[] DFA20_max = DFA.unpackEncodedStringToUnsignedChars(DFA20_maxS);
1695 static final short[] DFA20_accept = DFA.unpackEncodedString(DFA20_acceptS);
1696 static final short[] DFA20_special = DFA.unpackEncodedString(DFA20_specialS);
1697 static final short[][] DFA20_transition;
1699 static {
1700 int numStates = DFA20_transitionS.length;
1701 DFA20_transition = new short[numStates][];
1702 for (int i=0; i<numStates; i++) {
1703 DFA20_transition[i] = DFA.unpackEncodedString(DFA20_transitionS[i]);
1707 class DFA20 extends DFA {
1709 public DFA20(BaseRecognizer recognizer) {
1710 this.recognizer = recognizer;
1711 this.decisionNumber = 20;
1712 this.eot = DFA20_eot;
1713 this.eof = DFA20_eof;
1714 this.min = DFA20_min;
1715 this.max = DFA20_max;
1716 this.accept = DFA20_accept;
1717 this.special = DFA20_special;
1718 this.transition = DFA20_transition;
1720 public String getDescription() {
1721 return "1:1: Tokens : ( T__37 | T__38 | T__39 | T__40 | T__41 | T__42 | T__43 | T__44 | T__45 | T__46 | T__47 | T__48 | T__49 | INT | PHRASE | FLOAT | NAME | LPAREN | RPAREN | LSQUARE | RSQUARE | PLUS | MINUS | TIMES | DIV | LT | LE | GT | GE | EQ | NE | QUOTE | WS );";
1723 public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
1724 IntStream input = _input;
1725 int _s = s;
1726 switch ( s ) {
1727 case 0 :
1728 int LA20_14 = input.LA(1);
1730 s = -1;
1731 if ( ((LA20_14>='\u0000' && LA20_14<='\uFFFF')) ) {s = 44;}
1733 else s = 43;
1735 if ( s>=0 ) return s;
1736 break;
1738 NoViableAltException nvae =
1739 new NoViableAltException(getDescription(), 20, _s, input);
1740 error(nvae);
1741 throw nvae;