Revision created by MOE tool push_codebase.
[gae.git] / java / src / main / com / google / appengine / api / search / query / QueryLexer.java
blobd1ec24688fdf0da68a83ccbc6bbce6f0b782889c
3 package com.google.appengine.api.search.query;
5 import org.antlr.runtime.*;
7 public class QueryLexer extends Lexer {
8 public static final int FUNCTION=8;
9 public static final int FIX=30;
10 public static final int ESC=36;
11 public static final int OCTAL_ESC=35;
12 public static final int FUZZY=9;
13 public static final int NOT=28;
14 public static final int AND=26;
15 public static final int ESCAPED_CHAR=44;
16 public static final int EOF=-1;
17 public static final int LPAREN=24;
18 public static final int HAS=23;
19 public static final int QUOTE=33;
20 public static final int RPAREN=25;
21 public static final int START_CHAR=39;
22 public static final int EXCLAMATION=46;
23 public static final int COMMA=29;
24 public static final int ARGS=4;
25 public static final int DIGIT=43;
26 public static final int EQ=22;
27 public static final int NE=21;
28 public static final int LESSTHAN=18;
29 public static final int GE=19;
30 public static final int TEXT_ESC=41;
31 public static final int CONJUNCTION=5;
32 public static final int UNICODE_ESC=34;
33 public static final int HEX_DIGIT=45;
34 public static final int LITERAL=11;
35 public static final int VALUE=15;
36 public static final int TEXT=32;
37 public static final int MINUS=38;
38 public static final int NUMBER_PREFIX=40;
39 public static final int REWRITE=31;
40 public static final int EMPTY=7;
41 public static final int SEQUENCE=14;
42 public static final int DISJUNCTION=6;
43 public static final int WS=16;
44 public static final int NEGATION=12;
45 public static final int OR=27;
46 public static final int GT=20;
47 public static final int GLOBAL=10;
48 public static final int LE=17;
49 public static final int MID_CHAR=42;
50 public static final int STRING=13;
51 public static final int BACKSLASH=37;
53 private boolean exclamationNotFollowedByEquals() {
54 if (input.LA(1) != '!') {
55 throw new IllegalStateException();
57 return input.LA(2) != '=';
60 public QueryLexer() {;}
61 public QueryLexer(CharStream input) {
62 this(input, new RecognizerSharedState());
64 public QueryLexer(CharStream input, RecognizerSharedState state) {
65 super(input,state);
68 public String getGrammarFileName() { return ""; }
70 public final void mHAS() throws RecognitionException {
71 try {
72 int _type = HAS;
73 int _channel = DEFAULT_TOKEN_CHANNEL;
75 match(':');
79 state.type = _type;
80 state.channel = _channel;
82 finally {
86 public final void mOR() throws RecognitionException {
87 try {
88 int _type = OR;
89 int _channel = DEFAULT_TOKEN_CHANNEL;
91 match("OR");
95 state.type = _type;
96 state.channel = _channel;
98 finally {
102 public final void mAND() throws RecognitionException {
103 try {
104 int _type = AND;
105 int _channel = DEFAULT_TOKEN_CHANNEL;
107 match("AND");
111 state.type = _type;
112 state.channel = _channel;
114 finally {
118 public final void mNOT() throws RecognitionException {
119 try {
120 int _type = NOT;
121 int _channel = DEFAULT_TOKEN_CHANNEL;
123 match("NOT");
127 state.type = _type;
128 state.channel = _channel;
130 finally {
134 public final void mREWRITE() throws RecognitionException {
135 try {
136 int _type = REWRITE;
137 int _channel = DEFAULT_TOKEN_CHANNEL;
139 match('~');
143 state.type = _type;
144 state.channel = _channel;
146 finally {
150 public final void mFIX() throws RecognitionException {
151 try {
152 int _type = FIX;
153 int _channel = DEFAULT_TOKEN_CHANNEL;
155 match('+');
159 state.type = _type;
160 state.channel = _channel;
162 finally {
166 public final void mESC() throws RecognitionException {
167 try {
168 int _type = ESC;
169 int _channel = DEFAULT_TOKEN_CHANNEL;
170 int alt1=3;
171 int LA1_0 = input.LA(1);
173 if ( (LA1_0=='\\') ) {
174 switch ( input.LA(2) ) {
175 case '\"':
176 case '\\':
178 alt1=1;
180 break;
181 case 'u':
183 alt1=2;
185 break;
186 case '0':
187 case '1':
188 case '2':
189 case '3':
190 case '4':
191 case '5':
192 case '6':
193 case '7':
195 alt1=3;
197 break;
198 default:
199 NoViableAltException nvae =
200 new NoViableAltException("", 1, 1, input);
202 throw nvae;
206 else {
207 NoViableAltException nvae =
208 new NoViableAltException("", 1, 0, input);
210 throw nvae;
212 switch (alt1) {
213 case 1 :
215 match('\\');
216 if ( input.LA(1)=='\"'||input.LA(1)=='\\' ) {
217 input.consume();
220 else {
221 MismatchedSetException mse = new MismatchedSetException(null,input);
222 recover(mse);
223 throw mse;}
226 break;
227 case 2 :
229 mUNICODE_ESC();
232 break;
233 case 3 :
235 mOCTAL_ESC();
238 break;
241 state.type = _type;
242 state.channel = _channel;
244 finally {
248 public final void mWS() throws RecognitionException {
249 try {
250 int _type = WS;
251 int _channel = DEFAULT_TOKEN_CHANNEL;
253 if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||(input.LA(1)>='\f' && input.LA(1)<='\r')||input.LA(1)==' ' ) {
254 input.consume();
257 else {
258 MismatchedSetException mse = new MismatchedSetException(null,input);
259 recover(mse);
260 throw mse;}
264 state.type = _type;
265 state.channel = _channel;
267 finally {
271 public final void mLPAREN() throws RecognitionException {
272 try {
273 int _type = LPAREN;
274 int _channel = DEFAULT_TOKEN_CHANNEL;
276 match('(');
280 state.type = _type;
281 state.channel = _channel;
283 finally {
287 public final void mRPAREN() throws RecognitionException {
288 try {
289 int _type = RPAREN;
290 int _channel = DEFAULT_TOKEN_CHANNEL;
292 match(')');
296 state.type = _type;
297 state.channel = _channel;
299 finally {
303 public final void mCOMMA() throws RecognitionException {
304 try {
305 int _type = COMMA;
306 int _channel = DEFAULT_TOKEN_CHANNEL;
308 match(',');
312 state.type = _type;
313 state.channel = _channel;
315 finally {
319 public final void mBACKSLASH() throws RecognitionException {
320 try {
321 int _type = BACKSLASH;
322 int _channel = DEFAULT_TOKEN_CHANNEL;
324 match('\\');
328 state.type = _type;
329 state.channel = _channel;
331 finally {
335 public final void mLESSTHAN() throws RecognitionException {
336 try {
337 int _type = LESSTHAN;
338 int _channel = DEFAULT_TOKEN_CHANNEL;
340 match('<');
344 state.type = _type;
345 state.channel = _channel;
347 finally {
351 public final void mGT() throws RecognitionException {
352 try {
353 int _type = GT;
354 int _channel = DEFAULT_TOKEN_CHANNEL;
356 match('>');
360 state.type = _type;
361 state.channel = _channel;
363 finally {
367 public final void mGE() throws RecognitionException {
368 try {
369 int _type = GE;
370 int _channel = DEFAULT_TOKEN_CHANNEL;
372 match(">=");
376 state.type = _type;
377 state.channel = _channel;
379 finally {
383 public final void mLE() throws RecognitionException {
384 try {
385 int _type = LE;
386 int _channel = DEFAULT_TOKEN_CHANNEL;
388 match("<=");
392 state.type = _type;
393 state.channel = _channel;
395 finally {
399 public final void mNE() throws RecognitionException {
400 try {
401 int _type = NE;
402 int _channel = DEFAULT_TOKEN_CHANNEL;
404 match("!=");
408 state.type = _type;
409 state.channel = _channel;
411 finally {
415 public final void mEQ() throws RecognitionException {
416 try {
417 int _type = EQ;
418 int _channel = DEFAULT_TOKEN_CHANNEL;
420 match('=');
424 state.type = _type;
425 state.channel = _channel;
427 finally {
431 public final void mMINUS() throws RecognitionException {
432 try {
433 int _type = MINUS;
434 int _channel = DEFAULT_TOKEN_CHANNEL;
436 match('-');
440 state.type = _type;
441 state.channel = _channel;
443 finally {
447 public final void mQUOTE() throws RecognitionException {
448 try {
449 int _type = QUOTE;
450 int _channel = DEFAULT_TOKEN_CHANNEL;
452 match('\"');
456 state.type = _type;
457 state.channel = _channel;
459 finally {
463 public final void mTEXT() throws RecognitionException {
464 try {
465 int _type = TEXT;
466 int _channel = DEFAULT_TOKEN_CHANNEL;
468 int alt2=3;
469 int LA2_0 = input.LA(1);
471 if ( (LA2_0=='!') && (( exclamationNotFollowedByEquals() ))) {
472 alt2=1;
474 else if ( ((LA2_0>='#' && LA2_0<='\'')||LA2_0=='*'||(LA2_0>='.' && LA2_0<='/')||LA2_0==';'||(LA2_0>='?' && LA2_0<='[')||(LA2_0>=']' && LA2_0<='}')||(LA2_0>='\u00A1' && LA2_0<='\uFFEE')) ) {
475 alt2=1;
477 else if ( (LA2_0=='-'||(LA2_0>='0' && LA2_0<='9')) ) {
478 alt2=2;
480 else if ( (LA2_0=='\\') ) {
481 alt2=3;
483 else {
484 NoViableAltException nvae =
485 new NoViableAltException("", 2, 0, input);
487 throw nvae;
489 switch (alt2) {
490 case 1 :
492 mSTART_CHAR();
495 break;
496 case 2 :
498 mNUMBER_PREFIX();
501 break;
502 case 3 :
504 mTEXT_ESC();
507 break;
511 loop3:
512 do {
513 int alt3=3;
514 int LA3_0 = input.LA(1);
516 if ( (LA3_0=='!') && (( exclamationNotFollowedByEquals() ))) {
517 alt3=1;
519 else if ( ((LA3_0>='#' && LA3_0<='\'')||(LA3_0>='*' && LA3_0<='+')||(LA3_0>='-' && LA3_0<='9')||LA3_0==';'||(LA3_0>='?' && LA3_0<='[')||(LA3_0>=']' && LA3_0<='}')||(LA3_0>='\u00A1' && LA3_0<='\uFFEE')) ) {
520 alt3=1;
522 else if ( (LA3_0=='\\') ) {
523 alt3=2;
526 switch (alt3) {
527 case 1 :
529 mMID_CHAR();
532 break;
533 case 2 :
535 mTEXT_ESC();
538 break;
540 default :
541 break loop3;
543 } while (true);
547 state.type = _type;
548 state.channel = _channel;
550 finally {
554 public final void mNUMBER_PREFIX() throws RecognitionException {
555 try {
557 int alt4=2;
558 int LA4_0 = input.LA(1);
560 if ( (LA4_0=='-') ) {
561 alt4=1;
563 switch (alt4) {
564 case 1 :
566 mMINUS();
569 break;
573 mDIGIT();
578 finally {
582 public final void mTEXT_ESC() throws RecognitionException {
583 try {
584 int alt5=3;
585 int LA5_0 = input.LA(1);
587 if ( (LA5_0=='\\') ) {
588 switch ( input.LA(2) ) {
589 case '\"':
590 case '+':
591 case ',':
592 case ':':
593 case '<':
594 case '=':
595 case '>':
596 case '\\':
597 case '~':
599 alt5=1;
601 break;
602 case 'u':
604 alt5=2;
606 break;
607 case '0':
608 case '1':
609 case '2':
610 case '3':
611 case '4':
612 case '5':
613 case '6':
614 case '7':
616 alt5=3;
618 break;
619 default:
620 NoViableAltException nvae =
621 new NoViableAltException("", 5, 1, input);
623 throw nvae;
627 else {
628 NoViableAltException nvae =
629 new NoViableAltException("", 5, 0, input);
631 throw nvae;
633 switch (alt5) {
634 case 1 :
636 mESCAPED_CHAR();
639 break;
640 case 2 :
642 mUNICODE_ESC();
645 break;
646 case 3 :
648 mOCTAL_ESC();
651 break;
655 finally {
659 public final void mUNICODE_ESC() throws RecognitionException {
660 try {
662 match('\\');
663 match('u');
664 mHEX_DIGIT();
665 mHEX_DIGIT();
666 mHEX_DIGIT();
667 mHEX_DIGIT();
672 finally {
676 public final void mOCTAL_ESC() throws RecognitionException {
677 try {
678 int alt6=3;
679 int LA6_0 = input.LA(1);
681 if ( (LA6_0=='\\') ) {
682 int LA6_1 = input.LA(2);
684 if ( ((LA6_1>='0' && LA6_1<='3')) ) {
685 int LA6_2 = input.LA(3);
687 if ( ((LA6_2>='0' && LA6_2<='7')) ) {
688 int LA6_4 = input.LA(4);
690 if ( ((LA6_4>='0' && LA6_4<='7')) ) {
691 alt6=1;
693 else {
694 alt6=2;}
696 else {
697 alt6=3;}
699 else if ( ((LA6_1>='4' && LA6_1<='7')) ) {
700 int LA6_3 = input.LA(3);
702 if ( ((LA6_3>='0' && LA6_3<='7')) ) {
703 alt6=2;
705 else {
706 alt6=3;}
708 else {
709 NoViableAltException nvae =
710 new NoViableAltException("", 6, 1, input);
712 throw nvae;
715 else {
716 NoViableAltException nvae =
717 new NoViableAltException("", 6, 0, input);
719 throw nvae;
721 switch (alt6) {
722 case 1 :
724 match('\\');
726 matchRange('0','3');
731 matchRange('0','7');
736 matchRange('0','7');
741 break;
742 case 2 :
744 match('\\');
746 matchRange('0','7');
751 matchRange('0','7');
756 break;
757 case 3 :
759 match('\\');
761 matchRange('0','7');
766 break;
770 finally {
774 public final void mDIGIT() throws RecognitionException {
775 try {
777 matchRange('0','9');
782 finally {
786 public final void mHEX_DIGIT() throws RecognitionException {
787 try {
789 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') ) {
790 input.consume();
793 else {
794 MismatchedSetException mse = new MismatchedSetException(null,input);
795 recover(mse);
796 throw mse;}
801 finally {
805 public final void mSTART_CHAR() throws RecognitionException {
806 try {
807 int alt7=12;
808 alt7 = dfa7.predict(input);
809 switch (alt7) {
810 case 1 :
812 mEXCLAMATION();
815 break;
816 case 2 :
818 matchRange('#','\'');
821 break;
822 case 3 :
824 match('*');
827 break;
828 case 4 :
830 match('.');
833 break;
834 case 5 :
836 match('/');
839 break;
840 case 6 :
842 match(';');
845 break;
846 case 7 :
848 match('?');
851 break;
852 case 8 :
854 match('@');
857 break;
858 case 9 :
860 matchRange('A','Z');
863 break;
864 case 10 :
866 match('[');
869 break;
870 case 11 :
872 matchRange(']','}');
875 break;
876 case 12 :
878 matchRange('\u00A1','\uFFEE');
881 break;
885 finally {
889 public final void mMID_CHAR() throws RecognitionException {
890 try {
891 int alt8=4;
892 int LA8_0 = input.LA(1);
894 if ( (LA8_0=='!') && (( exclamationNotFollowedByEquals() ))) {
895 alt8=1;
897 else if ( ((LA8_0>='#' && LA8_0<='\'')||LA8_0=='*'||(LA8_0>='.' && LA8_0<='/')||LA8_0==';'||(LA8_0>='?' && LA8_0<='[')||(LA8_0>=']' && LA8_0<='}')||(LA8_0>='\u00A1' && LA8_0<='\uFFEE')) ) {
898 alt8=1;
900 else if ( ((LA8_0>='0' && LA8_0<='9')) ) {
901 alt8=2;
903 else if ( (LA8_0=='+') ) {
904 alt8=3;
906 else if ( (LA8_0=='-') ) {
907 alt8=4;
909 else {
910 NoViableAltException nvae =
911 new NoViableAltException("", 8, 0, input);
913 throw nvae;
915 switch (alt8) {
916 case 1 :
918 mSTART_CHAR();
921 break;
922 case 2 :
924 mDIGIT();
927 break;
928 case 3 :
930 match('+');
933 break;
934 case 4 :
936 match('-');
939 break;
943 finally {
947 public final void mESCAPED_CHAR() throws RecognitionException {
948 try {
949 int alt9=9;
950 alt9 = dfa9.predict(input);
951 switch (alt9) {
952 case 1 :
954 match("\\,");
957 break;
958 case 2 :
960 match("\\:");
963 break;
964 case 3 :
966 match("\\=");
969 break;
970 case 4 :
972 match("\\<");
975 break;
976 case 5 :
978 match("\\>");
981 break;
982 case 6 :
984 match("\\+");
987 break;
988 case 7 :
990 match("\\~");
993 break;
994 case 8 :
996 match("\\\"");
999 break;
1000 case 9 :
1002 match("\\\\");
1005 break;
1009 finally {
1013 public final void mEXCLAMATION() throws RecognitionException {
1014 try {
1016 if ( !(( exclamationNotFollowedByEquals() )) ) {
1017 throw new FailedPredicateException(input, "EXCLAMATION", " exclamationNotFollowedByEquals() ");
1019 match('!');
1024 finally {
1028 public void mTokens() throws RecognitionException {
1029 int alt10=21;
1030 alt10 = dfa10.predict(input);
1031 switch (alt10) {
1032 case 1 :
1034 mHAS();
1037 break;
1038 case 2 :
1040 mOR();
1043 break;
1044 case 3 :
1046 mAND();
1049 break;
1050 case 4 :
1052 mNOT();
1055 break;
1056 case 5 :
1058 mREWRITE();
1061 break;
1062 case 6 :
1064 mFIX();
1067 break;
1068 case 7 :
1070 mESC();
1073 break;
1074 case 8 :
1076 mWS();
1079 break;
1080 case 9 :
1082 mLPAREN();
1085 break;
1086 case 10 :
1088 mRPAREN();
1091 break;
1092 case 11 :
1094 mCOMMA();
1097 break;
1098 case 12 :
1100 mBACKSLASH();
1103 break;
1104 case 13 :
1106 mLESSTHAN();
1109 break;
1110 case 14 :
1112 mGT();
1115 break;
1116 case 15 :
1118 mGE();
1121 break;
1122 case 16 :
1124 mLE();
1127 break;
1128 case 17 :
1130 mNE();
1133 break;
1134 case 18 :
1136 mEQ();
1139 break;
1140 case 19 :
1142 mMINUS();
1145 break;
1146 case 20 :
1148 mQUOTE();
1151 break;
1152 case 21 :
1154 mTEXT();
1157 break;
1163 protected DFA7 dfa7 = new DFA7(this);
1164 protected DFA9 dfa9 = new DFA9(this);
1165 protected DFA10 dfa10 = new DFA10(this);
1166 static final String DFA7_eotS =
1167 "\15\uffff";
1168 static final String DFA7_eofS =
1169 "\15\uffff";
1170 static final String DFA7_minS =
1171 "\1\41\14\uffff";
1172 static final String DFA7_maxS =
1173 "\1\uffee\14\uffff";
1174 static final String DFA7_acceptS =
1175 "\1\uffff\1\1\1\2\1\3\1\4\1\5\1\6\1\7\1\10\1\11\1\12\1\13\1\14";
1176 static final String DFA7_specialS =
1177 "\1\0\14\uffff}>";
1178 static final String[] DFA7_transitionS = {
1179 "\1\1\1\uffff\5\2\2\uffff\1\3\3\uffff\1\4\1\5\13\uffff\1\6\3"+
1180 "\uffff\1\7\1\10\32\11\1\12\1\uffff\41\13\43\uffff\uff4e\14",
1195 static final short[] DFA7_eot = DFA.unpackEncodedString(DFA7_eotS);
1196 static final short[] DFA7_eof = DFA.unpackEncodedString(DFA7_eofS);
1197 static final char[] DFA7_min = DFA.unpackEncodedStringToUnsignedChars(DFA7_minS);
1198 static final char[] DFA7_max = DFA.unpackEncodedStringToUnsignedChars(DFA7_maxS);
1199 static final short[] DFA7_accept = DFA.unpackEncodedString(DFA7_acceptS);
1200 static final short[] DFA7_special = DFA.unpackEncodedString(DFA7_specialS);
1201 static final short[][] DFA7_transition;
1203 static {
1204 int numStates = DFA7_transitionS.length;
1205 DFA7_transition = new short[numStates][];
1206 for (int i=0; i<numStates; i++) {
1207 DFA7_transition[i] = DFA.unpackEncodedString(DFA7_transitionS[i]);
1211 class DFA7 extends DFA {
1213 public DFA7(BaseRecognizer recognizer) {
1214 this.recognizer = recognizer;
1215 this.decisionNumber = 7;
1216 this.eot = DFA7_eot;
1217 this.eof = DFA7_eof;
1218 this.min = DFA7_min;
1219 this.max = DFA7_max;
1220 this.accept = DFA7_accept;
1221 this.special = DFA7_special;
1222 this.transition = DFA7_transition;
1224 public String getDescription() {
1225 return "335:10: fragment START_CHAR : ( EXCLAMATION | '#' .. '\\'' | '*' | '.' | '/' | ';' | '?' | '@' | 'A' .. 'Z' | '[' | ']' .. '}' | '\\u00a1' .. '\\uffee' );";
1227 public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
1228 IntStream input = _input;
1229 int _s = s;
1230 switch ( s ) {
1231 case 0 :
1232 int LA7_0 = input.LA(1);
1234 int index7_0 = input.index();
1235 input.rewind();
1236 s = -1;
1237 if ( (LA7_0=='!') && (( exclamationNotFollowedByEquals() ))) {s = 1;}
1239 else if ( ((LA7_0>='#' && LA7_0<='\'')) ) {s = 2;}
1241 else if ( (LA7_0=='*') ) {s = 3;}
1243 else if ( (LA7_0=='.') ) {s = 4;}
1245 else if ( (LA7_0=='/') ) {s = 5;}
1247 else if ( (LA7_0==';') ) {s = 6;}
1249 else if ( (LA7_0=='?') ) {s = 7;}
1251 else if ( (LA7_0=='@') ) {s = 8;}
1253 else if ( ((LA7_0>='A' && LA7_0<='Z')) ) {s = 9;}
1255 else if ( (LA7_0=='[') ) {s = 10;}
1257 else if ( ((LA7_0>=']' && LA7_0<='}')) ) {s = 11;}
1259 else if ( ((LA7_0>='\u00A1' && LA7_0<='\uFFEE')) ) {s = 12;}
1261 input.seek(index7_0);
1262 if ( s>=0 ) return s;
1263 break;
1265 NoViableAltException nvae =
1266 new NoViableAltException(getDescription(), 7, _s, input);
1267 error(nvae);
1268 throw nvae;
1271 static final String DFA9_eotS =
1272 "\13\uffff";
1273 static final String DFA9_eofS =
1274 "\13\uffff";
1275 static final String DFA9_minS =
1276 "\1\134\1\42\11\uffff";
1277 static final String DFA9_maxS =
1278 "\1\134\1\176\11\uffff";
1279 static final String DFA9_acceptS =
1280 "\2\uffff\1\1\1\2\1\3\1\4\1\5\1\6\1\7\1\10\1\11";
1281 static final String DFA9_specialS =
1282 "\13\uffff}>";
1283 static final String[] DFA9_transitionS = {
1284 "\1\1",
1285 "\1\11\10\uffff\1\7\1\2\15\uffff\1\3\1\uffff\1\5\1\4\1\6\35"+
1286 "\uffff\1\12\41\uffff\1\10",
1298 static final short[] DFA9_eot = DFA.unpackEncodedString(DFA9_eotS);
1299 static final short[] DFA9_eof = DFA.unpackEncodedString(DFA9_eofS);
1300 static final char[] DFA9_min = DFA.unpackEncodedStringToUnsignedChars(DFA9_minS);
1301 static final char[] DFA9_max = DFA.unpackEncodedStringToUnsignedChars(DFA9_maxS);
1302 static final short[] DFA9_accept = DFA.unpackEncodedString(DFA9_acceptS);
1303 static final short[] DFA9_special = DFA.unpackEncodedString(DFA9_specialS);
1304 static final short[][] DFA9_transition;
1306 static {
1307 int numStates = DFA9_transitionS.length;
1308 DFA9_transition = new short[numStates][];
1309 for (int i=0; i<numStates; i++) {
1310 DFA9_transition[i] = DFA.unpackEncodedString(DFA9_transitionS[i]);
1314 class DFA9 extends DFA {
1316 public DFA9(BaseRecognizer recognizer) {
1317 this.recognizer = recognizer;
1318 this.decisionNumber = 9;
1319 this.eot = DFA9_eot;
1320 this.eof = DFA9_eof;
1321 this.min = DFA9_min;
1322 this.max = DFA9_max;
1323 this.accept = DFA9_accept;
1324 this.special = DFA9_special;
1325 this.transition = DFA9_transition;
1327 public String getDescription() {
1328 return "357:10: fragment ESCAPED_CHAR : ( '\\\\,' | '\\\\:' | '\\\\=' | '\\\\<' | '\\\\>' | '\\\\+' | '\\\\~' | '\\\\\\\"' | '\\\\\\\\' );";
1331 static final String DFA10_eotS =
1332 "\2\uffff\3\22\2\uffff\1\33\4\uffff\1\35\1\37\1\41\1\uffff\1\42\2"+
1333 "\uffff\1\44\2\43\1\47\1\uffff\3\47\12\uffff\1\53\1\54\2\uffff\2"+
1334 "\47\3\uffff\1\47\1\uffff\1\47";
1335 static final String DFA10_eofS =
1336 "\61\uffff";
1337 static final String DFA10_minS =
1338 "\1\11\1\uffff\1\122\1\116\1\117\2\uffff\1\42\4\uffff\3\75\1\uffff"+
1339 "\1\60\2\uffff\1\41\1\104\1\124\1\41\1\60\3\41\12\uffff\2\41\1\uffff"+
1340 "\1\60\2\41\2\uffff\1\60\1\41\1\60\1\41";
1341 static final String DFA10_maxS =
1342 "\1\uffee\1\uffff\1\122\1\116\1\117\2\uffff\1\176\4\uffff\3\75\1"+
1343 "\uffff\1\71\2\uffff\1\uffee\1\104\1\124\1\uffee\1\146\3\uffee\12"+
1344 "\uffff\2\uffee\1\uffff\1\146\2\uffee\2\uffff\1\146\1\uffee\1\146"+
1345 "\1\uffee";
1346 static final String DFA10_acceptS =
1347 "\1\uffff\1\1\3\uffff\1\5\1\6\1\uffff\1\10\1\11\1\12\1\13\3\uffff"+
1348 "\1\22\1\uffff\1\24\1\25\10\uffff\1\14\1\20\1\15\1\17\1\16\1\21\1"+
1349 "\25\1\23\1\25\1\2\2\uffff\1\7\3\uffff\1\3\1\4\4\uffff";
1350 static final String DFA10_specialS =
1351 "\16\uffff\1\0\42\uffff}>";
1352 static final String[] DFA10_transitionS = {
1353 "\2\10\1\uffff\2\10\22\uffff\1\10\1\16\1\21\5\22\1\11\1\12\1"+
1354 "\22\1\6\1\13\1\20\14\22\1\1\1\22\1\14\1\17\1\15\2\22\1\3\14"+
1355 "\22\1\4\1\2\14\22\1\7\41\22\1\5\42\uffff\uff4e\22",
1357 "\1\23",
1358 "\1\24",
1359 "\1\25",
1362 "\1\26\10\uffff\2\22\3\uffff\4\31\4\32\2\uffff\1\22\1\uffff"+
1363 "\3\22\35\uffff\1\30\30\uffff\1\27\10\uffff\1\22",
1368 "\1\34",
1369 "\1\36",
1370 "\1\40",
1372 "\12\43",
1375 "\1\43\1\uffff\5\43\2\uffff\2\43\1\uffff\15\43\1\uffff\1\43"+
1376 "\3\uffff\77\43\43\uffff\uff4e\43",
1377 "\1\45",
1378 "\1\46",
1379 "\1\43\1\uffff\5\43\2\uffff\2\43\1\uffff\15\43\1\uffff\1\43"+
1380 "\3\uffff\77\43\43\uffff\uff4e\43",
1381 "\12\50\7\uffff\6\50\32\uffff\6\50",
1382 "\1\43\1\uffff\5\43\2\uffff\2\43\1\uffff\15\43\1\uffff\1\43"+
1383 "\3\uffff\77\43\43\uffff\uff4e\43",
1384 "\1\43\1\uffff\5\43\2\uffff\2\43\1\uffff\3\43\10\51\2\43\1\uffff"+
1385 "\1\43\3\uffff\77\43\43\uffff\uff4e\43",
1386 "\1\43\1\uffff\5\43\2\uffff\2\43\1\uffff\3\43\10\52\2\43\1\uffff"+
1387 "\1\43\3\uffff\77\43\43\uffff\uff4e\43",
1398 "\1\43\1\uffff\5\43\2\uffff\2\43\1\uffff\15\43\1\uffff\1\43"+
1399 "\3\uffff\77\43\43\uffff\uff4e\43",
1400 "\1\43\1\uffff\5\43\2\uffff\2\43\1\uffff\15\43\1\uffff\1\43"+
1401 "\3\uffff\77\43\43\uffff\uff4e\43",
1403 "\12\55\7\uffff\6\55\32\uffff\6\55",
1404 "\1\43\1\uffff\5\43\2\uffff\2\43\1\uffff\3\43\10\56\2\43\1\uffff"+
1405 "\1\43\3\uffff\77\43\43\uffff\uff4e\43",
1406 "\1\43\1\uffff\5\43\2\uffff\2\43\1\uffff\15\43\1\uffff\1\43"+
1407 "\3\uffff\77\43\43\uffff\uff4e\43",
1410 "\12\57\7\uffff\6\57\32\uffff\6\57",
1411 "\1\43\1\uffff\5\43\2\uffff\2\43\1\uffff\15\43\1\uffff\1\43"+
1412 "\3\uffff\77\43\43\uffff\uff4e\43",
1413 "\12\60\7\uffff\6\60\32\uffff\6\60",
1414 "\1\43\1\uffff\5\43\2\uffff\2\43\1\uffff\15\43\1\uffff\1\43"+
1415 "\3\uffff\77\43\43\uffff\uff4e\43"
1418 static final short[] DFA10_eot = DFA.unpackEncodedString(DFA10_eotS);
1419 static final short[] DFA10_eof = DFA.unpackEncodedString(DFA10_eofS);
1420 static final char[] DFA10_min = DFA.unpackEncodedStringToUnsignedChars(DFA10_minS);
1421 static final char[] DFA10_max = DFA.unpackEncodedStringToUnsignedChars(DFA10_maxS);
1422 static final short[] DFA10_accept = DFA.unpackEncodedString(DFA10_acceptS);
1423 static final short[] DFA10_special = DFA.unpackEncodedString(DFA10_specialS);
1424 static final short[][] DFA10_transition;
1426 static {
1427 int numStates = DFA10_transitionS.length;
1428 DFA10_transition = new short[numStates][];
1429 for (int i=0; i<numStates; i++) {
1430 DFA10_transition[i] = DFA.unpackEncodedString(DFA10_transitionS[i]);
1434 class DFA10 extends DFA {
1436 public DFA10(BaseRecognizer recognizer) {
1437 this.recognizer = recognizer;
1438 this.decisionNumber = 10;
1439 this.eot = DFA10_eot;
1440 this.eof = DFA10_eof;
1441 this.min = DFA10_min;
1442 this.max = DFA10_max;
1443 this.accept = DFA10_accept;
1444 this.special = DFA10_special;
1445 this.transition = DFA10_transition;
1447 public String getDescription() {
1448 return "1:1: Tokens : ( HAS | OR | AND | NOT | REWRITE | FIX | ESC | WS | LPAREN | RPAREN | COMMA | BACKSLASH | LESSTHAN | GT | GE | LE | NE | EQ | MINUS | QUOTE | TEXT );";
1450 public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
1451 IntStream input = _input;
1452 int _s = s;
1453 switch ( s ) {
1454 case 0 :
1455 int LA10_14 = input.LA(1);
1457 int index10_14 = input.index();
1458 input.rewind();
1459 s = -1;
1460 if ( (LA10_14=='=') ) {s = 32;}
1462 else s = 33;
1464 input.seek(index10_14);
1465 if ( s>=0 ) return s;
1466 break;
1468 NoViableAltException nvae =
1469 new NoViableAltException(getDescription(), 10, _s, input);
1470 error(nvae);
1471 throw nvae;