3 package com
.google
.appengine
.api
.search
.query
;
5 import org
.antlr
.runtime
.*;
7 import org
.antlr
.runtime
.tree
.*;
9 public class QueryParser
extends Parser
{
10 public static final String
[] tokenNames
= new String
[] {
11 "<invalid>", "<EOR>", "<DOWN>", "<UP>", "ARGS", "CONJUNCTION", "DISJUNCTION", "EMPTY", "FUNCTION", "FUZZY", "GLOBAL", "LITERAL", "NEGATION", "STRING", "SEQUENCE", "VALUE", "WS", "LE", "LESSTHAN", "GE", "GT", "NE", "EQ", "HAS", "LPAREN", "RPAREN", "AND", "OR", "NOT", "COMMA", "FIX", "REWRITE", "TEXT", "QUOTE", "UNICODE_ESC", "OCTAL_ESC", "ESC", "BACKSLASH", "MINUS", "START_CHAR", "NUMBER_PREFIX", "TEXT_ESC", "MID_CHAR", "DIGIT", "ESCAPED_CHAR", "HEX_DIGIT"
13 public static final int FUNCTION
=8;
14 public static final int FIX
=30;
15 public static final int ESC
=36;
16 public static final int FUZZY
=9;
17 public static final int OCTAL_ESC
=35;
18 public static final int NOT
=28;
19 public static final int AND
=26;
20 public static final int ESCAPED_CHAR
=44;
21 public static final int EOF
=-1;
22 public static final int LPAREN
=24;
23 public static final int HAS
=23;
24 public static final int RPAREN
=25;
25 public static final int QUOTE
=33;
26 public static final int START_CHAR
=39;
27 public static final int COMMA
=29;
28 public static final int ARGS
=4;
29 public static final int DIGIT
=43;
30 public static final int EQ
=22;
31 public static final int NE
=21;
32 public static final int LESSTHAN
=18;
33 public static final int GE
=19;
34 public static final int TEXT_ESC
=41;
35 public static final int CONJUNCTION
=5;
36 public static final int UNICODE_ESC
=34;
37 public static final int HEX_DIGIT
=45;
38 public static final int LITERAL
=11;
39 public static final int VALUE
=15;
40 public static final int TEXT
=32;
41 public static final int MINUS
=38;
42 public static final int NUMBER_PREFIX
=40;
43 public static final int REWRITE
=31;
44 public static final int EMPTY
=7;
45 public static final int SEQUENCE
=14;
46 public static final int DISJUNCTION
=6;
47 public static final int WS
=16;
48 public static final int NEGATION
=12;
49 public static final int OR
=27;
50 public static final int GT
=20;
51 public static final int GLOBAL
=10;
52 public static final int LE
=17;
53 public static final int MID_CHAR
=42;
54 public static final int STRING
=13;
55 public static final int BACKSLASH
=37;
57 public QueryParser(TokenStream input
) {
58 this(input
, new RecognizerSharedState());
60 public QueryParser(TokenStream input
, RecognizerSharedState state
) {
65 protected TreeAdaptor adaptor
= new CommonTreeAdaptor();
67 public void setTreeAdaptor(TreeAdaptor adaptor
) {
68 this.adaptor
= adaptor
;
70 public TreeAdaptor
getTreeAdaptor() {
74 public String
[] getTokenNames() { return QueryParser
.tokenNames
; }
75 public String
getGrammarFileName() { return ""; }
78 public Object
recoverFromMismatchedSet(IntStream input
,
79 RecognitionException e
, BitSet follow
) throws RecognitionException
{
84 protected Object
recoverFromMismatchedToken(
85 IntStream input
, int ttype
, BitSet follow
) throws RecognitionException
{
86 throw new MismatchedTokenException(ttype
, input
);
89 public static class query_return
extends ParserRuleReturnScope
{
91 public Object
getTree() { return tree
; }
94 public final QueryParser
.query_return
query() throws RecognitionException
{
95 QueryParser
.query_return retval
= new QueryParser
.query_return();
96 retval
.start
= input
.LT(1);
98 CommonTree root_0
= null;
105 QueryParser
.expression_return expression4
= null;
107 CommonTree WS1_tree
=null;
108 CommonTree EOF2_tree
=null;
109 CommonTree WS3_tree
=null;
110 CommonTree WS5_tree
=null;
111 CommonTree EOF6_tree
=null;
112 RewriteRuleTokenStream stream_WS
=new RewriteRuleTokenStream(adaptor
,"token WS");
113 RewriteRuleTokenStream stream_EOF
=new RewriteRuleTokenStream(adaptor
,"token EOF");
114 RewriteRuleSubtreeStream stream_expression
=new RewriteRuleSubtreeStream(adaptor
,"rule expression");
117 alt4
= dfa4
.predict(input
);
124 int LA1_0
= input
.LA(1);
133 WS1
=(Token
)match(input
,WS
,FOLLOW_WS_in_query137
);
144 EOF2
=(Token
)match(input
,EOF
,FOLLOW_EOF_in_query140
);
145 stream_EOF
.add(EOF2
);
147 retval
.tree
= root_0
;
148 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
150 root_0
= (CommonTree
)adaptor
.nil();
153 CommonTree root_1
= (CommonTree
)adaptor
.nil();
154 root_1
= (CommonTree
)adaptor
.becomeRoot((CommonTree
)adaptor
.create(EMPTY
, "EMPTY"), root_1
);
156 adaptor
.addChild(root_0
, root_1
);
161 retval
.tree
= root_0
;
169 int LA2_0
= input
.LA(1);
178 WS3
=(Token
)match(input
,WS
,FOLLOW_WS_in_query169
);
189 pushFollow(FOLLOW_expression_in_query172
);
190 expression4
=expression();
194 stream_expression
.add(expression4
.getTree());
198 int LA3_0
= input
.LA(1);
207 WS5
=(Token
)match(input
,WS
,FOLLOW_WS_in_query174
);
218 EOF6
=(Token
)match(input
,EOF
,FOLLOW_EOF_in_query177
);
219 stream_EOF
.add(EOF6
);
221 retval
.tree
= root_0
;
222 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
224 root_0
= (CommonTree
)adaptor
.nil();
226 adaptor
.addChild(root_0
, stream_expression
.nextTree());
230 retval
.tree
= root_0
;
235 retval
.stop
= input
.LT(-1);
237 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
238 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
242 catch (RecognitionException e
) {
251 public static class expression_return
extends ParserRuleReturnScope
{
253 public Object
getTree() { return tree
; }
256 public final QueryParser
.expression_return
expression() throws RecognitionException
{
257 QueryParser
.expression_return retval
= new QueryParser
.expression_return();
258 retval
.start
= input
.LT(1);
260 CommonTree root_0
= null;
262 QueryParser
.sequence_return sequence7
= null;
264 QueryParser
.andOp_return andOp8
= null;
266 QueryParser
.sequence_return sequence9
= null;
268 RewriteRuleSubtreeStream stream_sequence
=new RewriteRuleSubtreeStream(adaptor
,"rule sequence");
269 RewriteRuleSubtreeStream stream_andOp
=new RewriteRuleSubtreeStream(adaptor
,"rule andOp");
272 pushFollow(FOLLOW_sequence_in_expression200
);
273 sequence7
=sequence();
277 stream_sequence
.add(sequence7
.getTree());
279 alt6
= dfa6
.predict(input
);
284 retval
.tree
= root_0
;
285 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
287 root_0
= (CommonTree
)adaptor
.nil();
289 adaptor
.addChild(root_0
, stream_sequence
.nextTree());
293 retval
.tree
= root_0
;
302 alt5
= dfa5
.predict(input
);
306 pushFollow(FOLLOW_andOp_in_expression237
);
311 stream_andOp
.add(andOp8
.getTree());
312 pushFollow(FOLLOW_sequence_in_expression239
);
313 sequence9
=sequence();
317 stream_sequence
.add(sequence9
.getTree());
323 if ( cnt5
>= 1 ) break loop5
;
324 EarlyExitException eee
=
325 new EarlyExitException(5, input
);
331 retval
.tree
= root_0
;
332 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
334 root_0
= (CommonTree
)adaptor
.nil();
337 CommonTree root_1
= (CommonTree
)adaptor
.nil();
338 root_1
= (CommonTree
)adaptor
.becomeRoot((CommonTree
)adaptor
.create(CONJUNCTION
, "CONJUNCTION"), root_1
);
340 if ( !(stream_sequence
.hasNext()) ) {
341 throw new RewriteEarlyExitException();
343 while ( stream_sequence
.hasNext() ) {
344 adaptor
.addChild(root_1
, stream_sequence
.nextTree());
347 stream_sequence
.reset();
349 adaptor
.addChild(root_0
, root_1
);
354 retval
.tree
= root_0
;
362 retval
.stop
= input
.LT(-1);
364 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
365 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
369 catch (RecognitionException e
) {
378 public static class sequence_return
extends ParserRuleReturnScope
{
380 public Object
getTree() { return tree
; }
383 public final QueryParser
.sequence_return
sequence() throws RecognitionException
{
384 QueryParser
.sequence_return retval
= new QueryParser
.sequence_return();
385 retval
.start
= input
.LT(1);
387 CommonTree root_0
= null;
390 QueryParser
.factor_return factor10
= null;
392 QueryParser
.factor_return factor12
= null;
394 CommonTree WS11_tree
=null;
395 RewriteRuleTokenStream stream_WS
=new RewriteRuleTokenStream(adaptor
,"token WS");
396 RewriteRuleSubtreeStream stream_factor
=new RewriteRuleSubtreeStream(adaptor
,"rule factor");
399 pushFollow(FOLLOW_factor_in_sequence277
);
404 stream_factor
.add(factor10
.getTree());
406 alt9
= dfa9
.predict(input
);
411 retval
.tree
= root_0
;
412 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
414 root_0
= (CommonTree
)adaptor
.nil();
416 adaptor
.addChild(root_0
, stream_factor
.nextTree());
420 retval
.tree
= root_0
;
429 alt8
= dfa8
.predict(input
);
437 int LA7_0
= input
.LA(1);
446 WS11
=(Token
)match(input
,WS
,FOLLOW_WS_in_sequence313
);
453 if ( cnt7
>= 1 ) break loop7
;
454 EarlyExitException eee
=
455 new EarlyExitException(7, input
);
461 pushFollow(FOLLOW_factor_in_sequence316
);
466 stream_factor
.add(factor12
.getTree());
472 if ( cnt8
>= 1 ) break loop8
;
473 EarlyExitException eee
=
474 new EarlyExitException(8, input
);
480 retval
.tree
= root_0
;
481 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
483 root_0
= (CommonTree
)adaptor
.nil();
486 CommonTree root_1
= (CommonTree
)adaptor
.nil();
487 root_1
= (CommonTree
)adaptor
.becomeRoot((CommonTree
)adaptor
.create(SEQUENCE
, "SEQUENCE"), root_1
);
489 if ( !(stream_factor
.hasNext()) ) {
490 throw new RewriteEarlyExitException();
492 while ( stream_factor
.hasNext() ) {
493 adaptor
.addChild(root_1
, stream_factor
.nextTree());
496 stream_factor
.reset();
498 adaptor
.addChild(root_0
, root_1
);
503 retval
.tree
= root_0
;
511 retval
.stop
= input
.LT(-1);
513 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
514 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
518 catch (RecognitionException e
) {
527 public static class factor_return
extends ParserRuleReturnScope
{
529 public Object
getTree() { return tree
; }
532 public final QueryParser
.factor_return
factor() throws RecognitionException
{
533 QueryParser
.factor_return retval
= new QueryParser
.factor_return();
534 retval
.start
= input
.LT(1);
536 CommonTree root_0
= null;
538 QueryParser
.term_return term13
= null;
540 QueryParser
.orOp_return orOp14
= null;
542 QueryParser
.term_return term15
= null;
544 RewriteRuleSubtreeStream stream_orOp
=new RewriteRuleSubtreeStream(adaptor
,"rule orOp");
545 RewriteRuleSubtreeStream stream_term
=new RewriteRuleSubtreeStream(adaptor
,"rule term");
548 pushFollow(FOLLOW_term_in_factor357
);
553 stream_term
.add(term13
.getTree());
555 alt11
= dfa11
.predict(input
);
560 retval
.tree
= root_0
;
561 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
563 root_0
= (CommonTree
)adaptor
.nil();
565 adaptor
.addChild(root_0
, stream_term
.nextTree());
569 retval
.tree
= root_0
;
578 alt10
= dfa10
.predict(input
);
582 pushFollow(FOLLOW_orOp_in_factor389
);
587 stream_orOp
.add(orOp14
.getTree());
588 pushFollow(FOLLOW_term_in_factor391
);
593 stream_term
.add(term15
.getTree());
599 if ( cnt10
>= 1 ) break loop10
;
600 EarlyExitException eee
=
601 new EarlyExitException(10, input
);
607 retval
.tree
= root_0
;
608 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
610 root_0
= (CommonTree
)adaptor
.nil();
613 CommonTree root_1
= (CommonTree
)adaptor
.nil();
614 root_1
= (CommonTree
)adaptor
.becomeRoot((CommonTree
)adaptor
.create(DISJUNCTION
, "DISJUNCTION"), root_1
);
616 if ( !(stream_term
.hasNext()) ) {
617 throw new RewriteEarlyExitException();
619 while ( stream_term
.hasNext() ) {
620 adaptor
.addChild(root_1
, stream_term
.nextTree());
625 adaptor
.addChild(root_0
, root_1
);
630 retval
.tree
= root_0
;
638 retval
.stop
= input
.LT(-1);
640 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
641 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
645 catch (RecognitionException e
) {
654 public static class term_return
extends ParserRuleReturnScope
{
656 public Object
getTree() { return tree
; }
659 public final QueryParser
.term_return
term() throws RecognitionException
{
660 QueryParser
.term_return retval
= new QueryParser
.term_return();
661 retval
.start
= input
.LT(1);
663 CommonTree root_0
= null;
665 QueryParser
.primitive_return primitive16
= null;
667 QueryParser
.notOp_return notOp17
= null;
669 QueryParser
.primitive_return primitive18
= null;
671 RewriteRuleSubtreeStream stream_notOp
=new RewriteRuleSubtreeStream(adaptor
,"rule notOp");
672 RewriteRuleSubtreeStream stream_primitive
=new RewriteRuleSubtreeStream(adaptor
,"rule primitive");
675 int LA12_0
= input
.LA(1);
677 if ( (LA12_0
==LPAREN
||(LA12_0
>=FIX
&& LA12_0
<=QUOTE
)) ) {
680 else if ( (LA12_0
==NOT
||LA12_0
==MINUS
) ) {
684 NoViableAltException nvae
=
685 new NoViableAltException("", 12, 0, input
);
692 root_0
= (CommonTree
)adaptor
.nil();
694 pushFollow(FOLLOW_primitive_in_term425
);
695 primitive16
=primitive();
699 adaptor
.addChild(root_0
, primitive16
.getTree());
705 pushFollow(FOLLOW_notOp_in_term431
);
710 stream_notOp
.add(notOp17
.getTree());
711 pushFollow(FOLLOW_primitive_in_term433
);
712 primitive18
=primitive();
716 stream_primitive
.add(primitive18
.getTree());
718 retval
.tree
= root_0
;
719 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
721 root_0
= (CommonTree
)adaptor
.nil();
724 CommonTree root_1
= (CommonTree
)adaptor
.nil();
725 root_1
= (CommonTree
)adaptor
.becomeRoot((CommonTree
)adaptor
.create(NEGATION
, "NEGATION"), root_1
);
727 adaptor
.addChild(root_1
, stream_primitive
.nextTree());
729 adaptor
.addChild(root_0
, root_1
);
734 retval
.tree
= root_0
;
739 retval
.stop
= input
.LT(-1);
741 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
742 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
746 catch (RecognitionException e
) {
755 public static class primitive_return
extends ParserRuleReturnScope
{
757 public Object
getTree() { return tree
; }
760 public final QueryParser
.primitive_return
primitive() throws RecognitionException
{
761 QueryParser
.primitive_return retval
= new QueryParser
.primitive_return();
762 retval
.start
= input
.LT(1);
764 CommonTree root_0
= null;
766 QueryParser
.restriction_return restriction19
= null;
768 QueryParser
.composite_return composite20
= null;
772 int LA13_0
= input
.LA(1);
774 if ( ((LA13_0
>=FIX
&& LA13_0
<=QUOTE
)) ) {
777 else if ( (LA13_0
==LPAREN
) ) {
781 NoViableAltException nvae
=
782 new NoViableAltException("", 13, 0, input
);
789 root_0
= (CommonTree
)adaptor
.nil();
791 pushFollow(FOLLOW_restriction_in_primitive459
);
792 restriction19
=restriction();
796 adaptor
.addChild(root_0
, restriction19
.getTree());
802 root_0
= (CommonTree
)adaptor
.nil();
804 pushFollow(FOLLOW_composite_in_primitive465
);
805 composite20
=composite();
809 adaptor
.addChild(root_0
, composite20
.getTree());
815 retval
.stop
= input
.LT(-1);
817 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
818 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
822 catch (RecognitionException e
) {
831 public static class restriction_return
extends ParserRuleReturnScope
{
833 public Object
getTree() { return tree
; }
836 public final QueryParser
.restriction_return
restriction() throws RecognitionException
{
837 QueryParser
.restriction_return retval
= new QueryParser
.restriction_return();
838 retval
.start
= input
.LT(1);
840 CommonTree root_0
= null;
842 QueryParser
.comparable_return comparable21
= null;
844 QueryParser
.comparator_return comparator22
= null;
846 QueryParser
.arg_return arg23
= null;
848 RewriteRuleSubtreeStream stream_arg
=new RewriteRuleSubtreeStream(adaptor
,"rule arg");
849 RewriteRuleSubtreeStream stream_comparable
=new RewriteRuleSubtreeStream(adaptor
,"rule comparable");
850 RewriteRuleSubtreeStream stream_comparator
=new RewriteRuleSubtreeStream(adaptor
,"rule comparator");
853 pushFollow(FOLLOW_comparable_in_restriction482
);
854 comparable21
=comparable();
858 stream_comparable
.add(comparable21
.getTree());
860 alt14
= dfa14
.predict(input
);
865 retval
.tree
= root_0
;
866 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
868 root_0
= (CommonTree
)adaptor
.nil();
871 CommonTree root_1
= (CommonTree
)adaptor
.nil();
872 root_1
= (CommonTree
)adaptor
.becomeRoot((CommonTree
)adaptor
.create(HAS
, "HAS"), root_1
);
874 adaptor
.addChild(root_1
, (CommonTree
)adaptor
.create(GLOBAL
, "GLOBAL"));
875 adaptor
.addChild(root_1
, stream_comparable
.nextTree());
877 adaptor
.addChild(root_0
, root_1
);
882 retval
.tree
= root_0
;
887 pushFollow(FOLLOW_comparator_in_restriction517
);
888 comparator22
=comparator();
892 stream_comparator
.add(comparator22
.getTree());
893 pushFollow(FOLLOW_arg_in_restriction519
);
898 stream_arg
.add(arg23
.getTree());
900 retval
.tree
= root_0
;
901 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
903 root_0
= (CommonTree
)adaptor
.nil();
906 CommonTree root_1
= (CommonTree
)adaptor
.nil();
907 root_1
= (CommonTree
)adaptor
.becomeRoot(stream_comparator
.nextNode(), root_1
);
909 adaptor
.addChild(root_1
, stream_comparable
.nextTree());
910 adaptor
.addChild(root_1
, stream_arg
.nextTree());
912 adaptor
.addChild(root_0
, root_1
);
917 retval
.tree
= root_0
;
925 retval
.stop
= input
.LT(-1);
927 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
928 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
932 catch (RecognitionException e
) {
941 public static class comparator_return
extends ParserRuleReturnScope
{
943 public Object
getTree() { return tree
; }
946 public final QueryParser
.comparator_return
comparator() throws RecognitionException
{
947 QueryParser
.comparator_return retval
= new QueryParser
.comparator_return();
948 retval
.start
= input
.LT(1);
950 CommonTree root_0
= null;
956 CommonTree x_tree
=null;
957 CommonTree WS24_tree
=null;
958 CommonTree WS25_tree
=null;
959 RewriteRuleTokenStream stream_HAS
=new RewriteRuleTokenStream(adaptor
,"token HAS");
960 RewriteRuleTokenStream stream_LESSTHAN
=new RewriteRuleTokenStream(adaptor
,"token LESSTHAN");
961 RewriteRuleTokenStream stream_GE
=new RewriteRuleTokenStream(adaptor
,"token GE");
962 RewriteRuleTokenStream stream_GT
=new RewriteRuleTokenStream(adaptor
,"token GT");
963 RewriteRuleTokenStream stream_WS
=new RewriteRuleTokenStream(adaptor
,"token WS");
964 RewriteRuleTokenStream stream_EQ
=new RewriteRuleTokenStream(adaptor
,"token EQ");
965 RewriteRuleTokenStream stream_LE
=new RewriteRuleTokenStream(adaptor
,"token LE");
966 RewriteRuleTokenStream stream_NE
=new RewriteRuleTokenStream(adaptor
,"token NE");
973 int LA15_0
= input
.LA(1);
975 if ( (LA15_0
==WS
) ) {
982 WS24
=(Token
)match(input
,WS
,FOLLOW_WS_in_comparator549
);
994 switch ( input
.LA(1) ) {
1031 NoViableAltException nvae
=
1032 new NoViableAltException("", 16, 0, input
);
1040 x
=(Token
)match(input
,LE
,FOLLOW_LE_in_comparator555
);
1047 x
=(Token
)match(input
,LESSTHAN
,FOLLOW_LESSTHAN_in_comparator561
);
1048 stream_LESSTHAN
.add(x
);
1054 x
=(Token
)match(input
,GE
,FOLLOW_GE_in_comparator567
);
1061 x
=(Token
)match(input
,GT
,FOLLOW_GT_in_comparator573
);
1068 x
=(Token
)match(input
,NE
,FOLLOW_NE_in_comparator579
);
1075 x
=(Token
)match(input
,EQ
,FOLLOW_EQ_in_comparator585
);
1082 x
=(Token
)match(input
,HAS
,FOLLOW_HAS_in_comparator591
);
1093 int LA17_0
= input
.LA(1);
1095 if ( (LA17_0
==WS
) ) {
1102 WS25
=(Token
)match(input
,WS
,FOLLOW_WS_in_comparator594
);
1103 stream_WS
.add(WS25
);
1113 retval
.tree
= root_0
;
1114 RewriteRuleTokenStream stream_x
=new RewriteRuleTokenStream(adaptor
,"token x",x
);
1115 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
1117 root_0
= (CommonTree
)adaptor
.nil();
1119 adaptor
.addChild(root_0
, stream_x
.nextNode());
1123 retval
.tree
= root_0
;
1126 retval
.stop
= input
.LT(-1);
1128 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
1129 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
1133 catch (RecognitionException e
) {
1142 public static class comparable_return
extends ParserRuleReturnScope
{
1144 public Object
getTree() { return tree
; }
1147 public final QueryParser
.comparable_return
comparable() throws RecognitionException
{
1148 QueryParser
.comparable_return retval
= new QueryParser
.comparable_return();
1149 retval
.start
= input
.LT(1);
1151 CommonTree root_0
= null;
1153 QueryParser
.member_return member26
= null;
1155 QueryParser
.function_return function27
= null;
1159 int LA18_0
= input
.LA(1);
1161 if ( ((LA18_0
>=FIX
&& LA18_0
<=REWRITE
)||LA18_0
==QUOTE
) ) {
1164 else if ( (LA18_0
==TEXT
) ) {
1165 int LA18_2
= input
.LA(2);
1167 if ( (LA18_2
==EOF
||(LA18_2
>=WS
&& LA18_2
<=HAS
)||LA18_2
==RPAREN
||LA18_2
==COMMA
) ) {
1170 else if ( (LA18_2
==LPAREN
) ) {
1174 NoViableAltException nvae
=
1175 new NoViableAltException("", 18, 2, input
);
1181 NoViableAltException nvae
=
1182 new NoViableAltException("", 18, 0, input
);
1189 root_0
= (CommonTree
)adaptor
.nil();
1191 pushFollow(FOLLOW_member_in_comparable616
);
1196 adaptor
.addChild(root_0
, member26
.getTree());
1202 root_0
= (CommonTree
)adaptor
.nil();
1204 pushFollow(FOLLOW_function_in_comparable622
);
1205 function27
=function();
1209 adaptor
.addChild(root_0
, function27
.getTree());
1215 retval
.stop
= input
.LT(-1);
1217 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
1218 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
1222 catch (RecognitionException e
) {
1231 public static class member_return
extends ParserRuleReturnScope
{
1233 public Object
getTree() { return tree
; }
1236 public final QueryParser
.member_return
member() throws RecognitionException
{
1237 QueryParser
.member_return retval
= new QueryParser
.member_return();
1238 retval
.start
= input
.LT(1);
1240 CommonTree root_0
= null;
1242 QueryParser
.item_return item28
= null;
1246 root_0
= (CommonTree
)adaptor
.nil();
1248 pushFollow(FOLLOW_item_in_member637
);
1253 adaptor
.addChild(root_0
, item28
.getTree());
1257 retval
.stop
= input
.LT(-1);
1259 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
1260 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
1264 catch (RecognitionException e
) {
1273 public static class function_return
extends ParserRuleReturnScope
{
1275 public Object
getTree() { return tree
; }
1278 public final QueryParser
.function_return
function() throws RecognitionException
{
1279 QueryParser
.function_return retval
= new QueryParser
.function_return();
1280 retval
.start
= input
.LT(1);
1282 CommonTree root_0
= null;
1284 Token LPAREN30
=null;
1285 Token RPAREN32
=null;
1286 QueryParser
.text_return text29
= null;
1288 QueryParser
.arglist_return arglist31
= null;
1290 CommonTree LPAREN30_tree
=null;
1291 CommonTree RPAREN32_tree
=null;
1292 RewriteRuleTokenStream stream_RPAREN
=new RewriteRuleTokenStream(adaptor
,"token RPAREN");
1293 RewriteRuleTokenStream stream_LPAREN
=new RewriteRuleTokenStream(adaptor
,"token LPAREN");
1294 RewriteRuleSubtreeStream stream_arglist
=new RewriteRuleSubtreeStream(adaptor
,"rule arglist");
1295 RewriteRuleSubtreeStream stream_text
=new RewriteRuleSubtreeStream(adaptor
,"rule text");
1298 pushFollow(FOLLOW_text_in_function654
);
1303 stream_text
.add(text29
.getTree());
1304 LPAREN30
=(Token
)match(input
,LPAREN
,FOLLOW_LPAREN_in_function656
);
1305 stream_LPAREN
.add(LPAREN30
);
1307 pushFollow(FOLLOW_arglist_in_function658
);
1308 arglist31
=arglist();
1312 stream_arglist
.add(arglist31
.getTree());
1313 RPAREN32
=(Token
)match(input
,RPAREN
,FOLLOW_RPAREN_in_function660
);
1314 stream_RPAREN
.add(RPAREN32
);
1316 retval
.tree
= root_0
;
1317 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
1319 root_0
= (CommonTree
)adaptor
.nil();
1322 CommonTree root_1
= (CommonTree
)adaptor
.nil();
1323 root_1
= (CommonTree
)adaptor
.becomeRoot((CommonTree
)adaptor
.create(FUNCTION
, "FUNCTION"), root_1
);
1325 adaptor
.addChild(root_1
, stream_text
.nextTree());
1327 CommonTree root_2
= (CommonTree
)adaptor
.nil();
1328 root_2
= (CommonTree
)adaptor
.becomeRoot((CommonTree
)adaptor
.create(ARGS
, "ARGS"), root_2
);
1330 adaptor
.addChild(root_2
, stream_arglist
.nextTree());
1332 adaptor
.addChild(root_1
, root_2
);
1335 adaptor
.addChild(root_0
, root_1
);
1340 retval
.tree
= root_0
;
1343 retval
.stop
= input
.LT(-1);
1345 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
1346 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
1350 catch (RecognitionException e
) {
1359 public static class arglist_return
extends ParserRuleReturnScope
{
1361 public Object
getTree() { return tree
; }
1364 public final QueryParser
.arglist_return
arglist() throws RecognitionException
{
1365 QueryParser
.arglist_return retval
= new QueryParser
.arglist_return();
1366 retval
.start
= input
.LT(1);
1368 CommonTree root_0
= null;
1370 QueryParser
.arg_return arg33
= null;
1372 QueryParser
.sep_return sep34
= null;
1374 QueryParser
.arg_return arg35
= null;
1376 RewriteRuleSubtreeStream stream_arg
=new RewriteRuleSubtreeStream(adaptor
,"rule arg");
1377 RewriteRuleSubtreeStream stream_sep
=new RewriteRuleSubtreeStream(adaptor
,"rule sep");
1380 int LA20_0
= input
.LA(1);
1382 if ( (LA20_0
==RPAREN
) ) {
1385 else if ( (LA20_0
==LPAREN
||(LA20_0
>=FIX
&& LA20_0
<=QUOTE
)) ) {
1389 NoViableAltException nvae
=
1390 new NoViableAltException("", 20, 0, input
);
1397 root_0
= (CommonTree
)adaptor
.nil();
1403 pushFollow(FOLLOW_arg_in_arglist695
);
1408 stream_arg
.add(arg33
.getTree());
1412 int LA19_0
= input
.LA(1);
1414 if ( (LA19_0
==WS
||LA19_0
==COMMA
) ) {
1421 pushFollow(FOLLOW_sep_in_arglist698
);
1426 stream_sep
.add(sep34
.getTree());
1427 pushFollow(FOLLOW_arg_in_arglist700
);
1432 stream_arg
.add(arg35
.getTree());
1442 retval
.tree
= root_0
;
1443 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
1445 root_0
= (CommonTree
)adaptor
.nil();
1447 while ( stream_arg
.hasNext() ) {
1448 adaptor
.addChild(root_0
, stream_arg
.nextTree());
1455 retval
.tree
= root_0
;
1460 retval
.stop
= input
.LT(-1);
1462 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
1463 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
1467 catch (RecognitionException e
) {
1476 public static class arg_return
extends ParserRuleReturnScope
{
1478 public Object
getTree() { return tree
; }
1481 public final QueryParser
.arg_return
arg() throws RecognitionException
{
1482 QueryParser
.arg_return retval
= new QueryParser
.arg_return();
1483 retval
.start
= input
.LT(1);
1485 CommonTree root_0
= null;
1487 QueryParser
.comparable_return comparable36
= null;
1489 QueryParser
.composite_return composite37
= null;
1493 int LA21_0
= input
.LA(1);
1495 if ( ((LA21_0
>=FIX
&& LA21_0
<=QUOTE
)) ) {
1498 else if ( (LA21_0
==LPAREN
) ) {
1502 NoViableAltException nvae
=
1503 new NoViableAltException("", 21, 0, input
);
1510 root_0
= (CommonTree
)adaptor
.nil();
1512 pushFollow(FOLLOW_comparable_in_arg721
);
1513 comparable36
=comparable();
1517 adaptor
.addChild(root_0
, comparable36
.getTree());
1523 root_0
= (CommonTree
)adaptor
.nil();
1525 pushFollow(FOLLOW_composite_in_arg727
);
1526 composite37
=composite();
1530 adaptor
.addChild(root_0
, composite37
.getTree());
1536 retval
.stop
= input
.LT(-1);
1538 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
1539 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
1543 catch (RecognitionException e
) {
1552 public static class andOp_return
extends ParserRuleReturnScope
{
1554 public Object
getTree() { return tree
; }
1557 public final QueryParser
.andOp_return
andOp() throws RecognitionException
{
1558 QueryParser
.andOp_return retval
= new QueryParser
.andOp_return();
1559 retval
.start
= input
.LT(1);
1561 CommonTree root_0
= null;
1567 CommonTree WS38_tree
=null;
1568 CommonTree AND39_tree
=null;
1569 CommonTree WS40_tree
=null;
1573 root_0
= (CommonTree
)adaptor
.nil();
1579 int LA22_0
= input
.LA(1);
1581 if ( (LA22_0
==WS
) ) {
1588 WS38
=(Token
)match(input
,WS
,FOLLOW_WS_in_andOp741
);
1589 WS38_tree
= (CommonTree
)adaptor
.create(WS38
);
1590 adaptor
.addChild(root_0
, WS38_tree
);
1596 if ( cnt22
>= 1 ) break loop22
;
1597 EarlyExitException eee
=
1598 new EarlyExitException(22, input
);
1604 AND39
=(Token
)match(input
,AND
,FOLLOW_AND_in_andOp744
);
1605 AND39_tree
= (CommonTree
)adaptor
.create(AND39
);
1606 adaptor
.addChild(root_0
, AND39_tree
);
1612 int LA23_0
= input
.LA(1);
1614 if ( (LA23_0
==WS
) ) {
1621 WS40
=(Token
)match(input
,WS
,FOLLOW_WS_in_andOp746
);
1622 WS40_tree
= (CommonTree
)adaptor
.create(WS40
);
1623 adaptor
.addChild(root_0
, WS40_tree
);
1629 if ( cnt23
>= 1 ) break loop23
;
1630 EarlyExitException eee
=
1631 new EarlyExitException(23, input
);
1639 retval
.stop
= input
.LT(-1);
1641 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
1642 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
1646 catch (RecognitionException e
) {
1655 public static class orOp_return
extends ParserRuleReturnScope
{
1657 public Object
getTree() { return tree
; }
1660 public final QueryParser
.orOp_return
orOp() throws RecognitionException
{
1661 QueryParser
.orOp_return retval
= new QueryParser
.orOp_return();
1662 retval
.start
= input
.LT(1);
1664 CommonTree root_0
= null;
1670 CommonTree WS41_tree
=null;
1671 CommonTree OR42_tree
=null;
1672 CommonTree WS43_tree
=null;
1676 root_0
= (CommonTree
)adaptor
.nil();
1682 int LA24_0
= input
.LA(1);
1684 if ( (LA24_0
==WS
) ) {
1691 WS41
=(Token
)match(input
,WS
,FOLLOW_WS_in_orOp761
);
1692 WS41_tree
= (CommonTree
)adaptor
.create(WS41
);
1693 adaptor
.addChild(root_0
, WS41_tree
);
1699 if ( cnt24
>= 1 ) break loop24
;
1700 EarlyExitException eee
=
1701 new EarlyExitException(24, input
);
1707 OR42
=(Token
)match(input
,OR
,FOLLOW_OR_in_orOp764
);
1708 OR42_tree
= (CommonTree
)adaptor
.create(OR42
);
1709 adaptor
.addChild(root_0
, OR42_tree
);
1715 int LA25_0
= input
.LA(1);
1717 if ( (LA25_0
==WS
) ) {
1724 WS43
=(Token
)match(input
,WS
,FOLLOW_WS_in_orOp766
);
1725 WS43_tree
= (CommonTree
)adaptor
.create(WS43
);
1726 adaptor
.addChild(root_0
, WS43_tree
);
1732 if ( cnt25
>= 1 ) break loop25
;
1733 EarlyExitException eee
=
1734 new EarlyExitException(25, input
);
1742 retval
.stop
= input
.LT(-1);
1744 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
1745 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
1749 catch (RecognitionException e
) {
1758 public static class notOp_return
extends ParserRuleReturnScope
{
1760 public Object
getTree() { return tree
; }
1763 public final QueryParser
.notOp_return
notOp() throws RecognitionException
{
1764 QueryParser
.notOp_return retval
= new QueryParser
.notOp_return();
1765 retval
.start
= input
.LT(1);
1767 CommonTree root_0
= null;
1769 Token char_literal44
=null;
1773 CommonTree char_literal44_tree
=null;
1774 CommonTree NOT45_tree
=null;
1775 CommonTree WS46_tree
=null;
1779 int LA27_0
= input
.LA(1);
1781 if ( (LA27_0
==MINUS
) ) {
1784 else if ( (LA27_0
==NOT
) ) {
1788 NoViableAltException nvae
=
1789 new NoViableAltException("", 27, 0, input
);
1796 root_0
= (CommonTree
)adaptor
.nil();
1798 char_literal44
=(Token
)match(input
,MINUS
,FOLLOW_MINUS_in_notOp781
);
1799 char_literal44_tree
= (CommonTree
)adaptor
.create(char_literal44
);
1800 adaptor
.addChild(root_0
, char_literal44_tree
);
1806 root_0
= (CommonTree
)adaptor
.nil();
1808 NOT45
=(Token
)match(input
,NOT
,FOLLOW_NOT_in_notOp787
);
1809 NOT45_tree
= (CommonTree
)adaptor
.create(NOT45
);
1810 adaptor
.addChild(root_0
, NOT45_tree
);
1816 int LA26_0
= input
.LA(1);
1818 if ( (LA26_0
==WS
) ) {
1825 WS46
=(Token
)match(input
,WS
,FOLLOW_WS_in_notOp789
);
1826 WS46_tree
= (CommonTree
)adaptor
.create(WS46
);
1827 adaptor
.addChild(root_0
, WS46_tree
);
1833 if ( cnt26
>= 1 ) break loop26
;
1834 EarlyExitException eee
=
1835 new EarlyExitException(26, input
);
1845 retval
.stop
= input
.LT(-1);
1847 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
1848 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
1852 catch (RecognitionException e
) {
1861 public static class sep_return
extends ParserRuleReturnScope
{
1863 public Object
getTree() { return tree
; }
1866 public final QueryParser
.sep_return
sep() throws RecognitionException
{
1867 QueryParser
.sep_return retval
= new QueryParser
.sep_return();
1868 retval
.start
= input
.LT(1);
1870 CommonTree root_0
= null;
1876 CommonTree WS47_tree
=null;
1877 CommonTree COMMA48_tree
=null;
1878 CommonTree WS49_tree
=null;
1882 root_0
= (CommonTree
)adaptor
.nil();
1887 int LA28_0
= input
.LA(1);
1889 if ( (LA28_0
==WS
) ) {
1896 WS47
=(Token
)match(input
,WS
,FOLLOW_WS_in_sep804
);
1897 WS47_tree
= (CommonTree
)adaptor
.create(WS47
);
1898 adaptor
.addChild(root_0
, WS47_tree
);
1908 COMMA48
=(Token
)match(input
,COMMA
,FOLLOW_COMMA_in_sep807
);
1909 COMMA48_tree
= (CommonTree
)adaptor
.create(COMMA48
);
1910 adaptor
.addChild(root_0
, COMMA48_tree
);
1915 int LA29_0
= input
.LA(1);
1917 if ( (LA29_0
==WS
) ) {
1924 WS49
=(Token
)match(input
,WS
,FOLLOW_WS_in_sep809
);
1925 WS49_tree
= (CommonTree
)adaptor
.create(WS49
);
1926 adaptor
.addChild(root_0
, WS49_tree
);
1938 retval
.stop
= input
.LT(-1);
1940 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
1941 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
1945 catch (RecognitionException e
) {
1954 public static class composite_return
extends ParserRuleReturnScope
{
1956 public Object
getTree() { return tree
; }
1959 public final QueryParser
.composite_return
composite() throws RecognitionException
{
1960 QueryParser
.composite_return retval
= new QueryParser
.composite_return();
1961 retval
.start
= input
.LT(1);
1963 CommonTree root_0
= null;
1965 Token LPAREN50
=null;
1968 Token RPAREN54
=null;
1969 QueryParser
.expression_return expression52
= null;
1971 CommonTree LPAREN50_tree
=null;
1972 CommonTree WS51_tree
=null;
1973 CommonTree WS53_tree
=null;
1974 CommonTree RPAREN54_tree
=null;
1975 RewriteRuleTokenStream stream_RPAREN
=new RewriteRuleTokenStream(adaptor
,"token RPAREN");
1976 RewriteRuleTokenStream stream_WS
=new RewriteRuleTokenStream(adaptor
,"token WS");
1977 RewriteRuleTokenStream stream_LPAREN
=new RewriteRuleTokenStream(adaptor
,"token LPAREN");
1978 RewriteRuleSubtreeStream stream_expression
=new RewriteRuleSubtreeStream(adaptor
,"rule expression");
1981 LPAREN50
=(Token
)match(input
,LPAREN
,FOLLOW_LPAREN_in_composite825
);
1982 stream_LPAREN
.add(LPAREN50
);
1987 int LA30_0
= input
.LA(1);
1989 if ( (LA30_0
==WS
) ) {
1996 WS51
=(Token
)match(input
,WS
,FOLLOW_WS_in_composite827
);
1997 stream_WS
.add(WS51
);
2007 pushFollow(FOLLOW_expression_in_composite830
);
2008 expression52
=expression();
2012 stream_expression
.add(expression52
.getTree());
2016 int LA31_0
= input
.LA(1);
2018 if ( (LA31_0
==WS
) ) {
2025 WS53
=(Token
)match(input
,WS
,FOLLOW_WS_in_composite832
);
2026 stream_WS
.add(WS53
);
2036 RPAREN54
=(Token
)match(input
,RPAREN
,FOLLOW_RPAREN_in_composite835
);
2037 stream_RPAREN
.add(RPAREN54
);
2039 retval
.tree
= root_0
;
2040 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
2042 root_0
= (CommonTree
)adaptor
.nil();
2044 adaptor
.addChild(root_0
, stream_expression
.nextTree());
2048 retval
.tree
= root_0
;
2051 retval
.stop
= input
.LT(-1);
2053 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
2054 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
2058 catch (RecognitionException e
) {
2067 public static class item_return
extends ParserRuleReturnScope
{
2069 public Object
getTree() { return tree
; }
2072 public final QueryParser
.item_return
item() throws RecognitionException
{
2073 QueryParser
.item_return retval
= new QueryParser
.item_return();
2074 retval
.start
= input
.LT(1);
2076 CommonTree root_0
= null;
2079 Token REWRITE57
=null;
2080 QueryParser
.value_return value56
= null;
2082 QueryParser
.value_return value58
= null;
2084 QueryParser
.value_return value59
= null;
2086 CommonTree FIX55_tree
=null;
2087 CommonTree REWRITE57_tree
=null;
2088 RewriteRuleTokenStream stream_FIX
=new RewriteRuleTokenStream(adaptor
,"token FIX");
2089 RewriteRuleTokenStream stream_REWRITE
=new RewriteRuleTokenStream(adaptor
,"token REWRITE");
2090 RewriteRuleSubtreeStream stream_value
=new RewriteRuleSubtreeStream(adaptor
,"rule value");
2093 switch ( input
.LA(1) ) {
2111 NoViableAltException nvae
=
2112 new NoViableAltException("", 32, 0, input
);
2120 FIX55
=(Token
)match(input
,FIX
,FOLLOW_FIX_in_item855
);
2121 stream_FIX
.add(FIX55
);
2123 pushFollow(FOLLOW_value_in_item857
);
2128 stream_value
.add(value56
.getTree());
2130 retval
.tree
= root_0
;
2131 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
2133 root_0
= (CommonTree
)adaptor
.nil();
2136 CommonTree root_1
= (CommonTree
)adaptor
.nil();
2137 root_1
= (CommonTree
)adaptor
.becomeRoot((CommonTree
)adaptor
.create(LITERAL
, "LITERAL"), root_1
);
2139 adaptor
.addChild(root_1
, stream_value
.nextTree());
2141 adaptor
.addChild(root_0
, root_1
);
2146 retval
.tree
= root_0
;
2151 REWRITE57
=(Token
)match(input
,REWRITE
,FOLLOW_REWRITE_in_item871
);
2152 stream_REWRITE
.add(REWRITE57
);
2154 pushFollow(FOLLOW_value_in_item873
);
2159 stream_value
.add(value58
.getTree());
2161 retval
.tree
= root_0
;
2162 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
2164 root_0
= (CommonTree
)adaptor
.nil();
2167 CommonTree root_1
= (CommonTree
)adaptor
.nil();
2168 root_1
= (CommonTree
)adaptor
.becomeRoot((CommonTree
)adaptor
.create(FUZZY
, "FUZZY"), root_1
);
2170 adaptor
.addChild(root_1
, stream_value
.nextTree());
2172 adaptor
.addChild(root_0
, root_1
);
2177 retval
.tree
= root_0
;
2182 pushFollow(FOLLOW_value_in_item887
);
2187 stream_value
.add(value59
.getTree());
2189 retval
.tree
= root_0
;
2190 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
2192 root_0
= (CommonTree
)adaptor
.nil();
2194 adaptor
.addChild(root_0
, stream_value
.nextTree());
2198 retval
.tree
= root_0
;
2203 retval
.stop
= input
.LT(-1);
2205 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
2206 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
2210 catch (RecognitionException e
) {
2219 public static class value_return
extends ParserRuleReturnScope
{
2221 public Object
getTree() { return tree
; }
2224 public final QueryParser
.value_return
value() throws RecognitionException
{
2225 QueryParser
.value_return retval
= new QueryParser
.value_return();
2226 retval
.start
= input
.LT(1);
2228 CommonTree root_0
= null;
2230 QueryParser
.text_return text60
= null;
2232 QueryParser
.phrase_return phrase61
= null;
2234 RewriteRuleSubtreeStream stream_text
=new RewriteRuleSubtreeStream(adaptor
,"rule text");
2235 RewriteRuleSubtreeStream stream_phrase
=new RewriteRuleSubtreeStream(adaptor
,"rule phrase");
2238 int LA33_0
= input
.LA(1);
2240 if ( (LA33_0
==TEXT
) ) {
2243 else if ( (LA33_0
==QUOTE
) ) {
2247 NoViableAltException nvae
=
2248 new NoViableAltException("", 33, 0, input
);
2255 pushFollow(FOLLOW_text_in_value905
);
2260 stream_text
.add(text60
.getTree());
2262 retval
.tree
= root_0
;
2263 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
2265 root_0
= (CommonTree
)adaptor
.nil();
2268 CommonTree root_1
= (CommonTree
)adaptor
.nil();
2269 root_1
= (CommonTree
)adaptor
.becomeRoot((CommonTree
)adaptor
.create(VALUE
, "VALUE"), root_1
);
2271 adaptor
.addChild(root_1
, (CommonTree
)adaptor
.create(TEXT
, "TEXT"));
2272 adaptor
.addChild(root_1
, stream_text
.nextTree());
2274 adaptor
.addChild(root_0
, root_1
);
2279 retval
.tree
= root_0
;
2284 pushFollow(FOLLOW_phrase_in_value921
);
2289 stream_phrase
.add(phrase61
.getTree());
2291 retval
.tree
= root_0
;
2292 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
2294 root_0
= (CommonTree
)adaptor
.nil();
2297 CommonTree root_1
= (CommonTree
)adaptor
.nil();
2298 root_1
= (CommonTree
)adaptor
.becomeRoot((CommonTree
)adaptor
.create(VALUE
, "VALUE"), root_1
);
2300 adaptor
.addChild(root_1
, (CommonTree
)adaptor
.create(STRING
, "STRING"));
2301 adaptor
.addChild(root_1
, stream_phrase
.nextTree());
2303 adaptor
.addChild(root_0
, root_1
);
2308 retval
.tree
= root_0
;
2313 retval
.stop
= input
.LT(-1);
2315 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
2316 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
2320 catch (RecognitionException e
) {
2329 public static class text_return
extends ParserRuleReturnScope
{
2331 public Object
getTree() { return tree
; }
2334 public final QueryParser
.text_return
text() throws RecognitionException
{
2335 QueryParser
.text_return retval
= new QueryParser
.text_return();
2336 retval
.start
= input
.LT(1);
2338 CommonTree root_0
= null;
2342 CommonTree TEXT62_tree
=null;
2346 root_0
= (CommonTree
)adaptor
.nil();
2348 TEXT62
=(Token
)match(input
,TEXT
,FOLLOW_TEXT_in_text945
);
2349 TEXT62_tree
= (CommonTree
)adaptor
.create(TEXT62
);
2350 adaptor
.addChild(root_0
, TEXT62_tree
);
2354 retval
.stop
= input
.LT(-1);
2356 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
2357 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
2361 catch (RecognitionException e
) {
2370 public static class phrase_return
extends ParserRuleReturnScope
{
2372 public Object
getTree() { return tree
; }
2375 public final QueryParser
.phrase_return
phrase() throws RecognitionException
{
2376 QueryParser
.phrase_return retval
= new QueryParser
.phrase_return();
2377 retval
.start
= input
.LT(1);
2379 CommonTree root_0
= null;
2385 CommonTree QUOTE63_tree
=null;
2386 CommonTree set64_tree
=null;
2387 CommonTree QUOTE65_tree
=null;
2391 root_0
= (CommonTree
)adaptor
.nil();
2393 QUOTE63
=(Token
)match(input
,QUOTE
,FOLLOW_QUOTE_in_phrase959
);
2394 QUOTE63_tree
= (CommonTree
)adaptor
.create(QUOTE63
);
2395 adaptor
.addChild(root_0
, QUOTE63_tree
);
2400 int LA34_0
= input
.LA(1);
2402 if ( ((LA34_0
>=ARGS
&& LA34_0
<=TEXT
)||(LA34_0
>=UNICODE_ESC
&& LA34_0
<=HEX_DIGIT
)) ) {
2409 set64
=(Token
)input
.LT(1);
2410 if ( (input
.LA(1)>=ARGS
&& input
.LA(1)<=TEXT
)||(input
.LA(1)>=UNICODE_ESC
&& input
.LA(1)<=HEX_DIGIT
) ) {
2412 adaptor
.addChild(root_0
, (CommonTree
)adaptor
.create(set64
));
2413 state
.errorRecovery
=false;
2416 MismatchedSetException mse
= new MismatchedSetException(null,input
);
2428 QUOTE65
=(Token
)match(input
,QUOTE
,FOLLOW_QUOTE_in_phrase965
);
2429 QUOTE65_tree
= (CommonTree
)adaptor
.create(QUOTE65
);
2430 adaptor
.addChild(root_0
, QUOTE65_tree
);
2434 retval
.stop
= input
.LT(-1);
2436 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
2437 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
2441 catch (RecognitionException e
) {
2450 protected DFA4 dfa4
= new DFA4(this);
2451 protected DFA6 dfa6
= new DFA6(this);
2452 protected DFA5 dfa5
= new DFA5(this);
2453 protected DFA9 dfa9
= new DFA9(this);
2454 protected DFA8 dfa8
= new DFA8(this);
2455 protected DFA11 dfa11
= new DFA11(this);
2456 protected DFA10 dfa10
= new DFA10(this);
2457 protected DFA14 dfa14
= new DFA14(this);
2458 static final String DFA4_eotS
=
2460 static final String DFA4_eofS
=
2462 static final String DFA4_minS
=
2464 static final String DFA4_maxS
=
2466 static final String DFA4_acceptS
=
2468 static final String DFA4_specialS
=
2470 static final String
[] DFA4_transitionS
= {
2471 "\1\1\7\uffff\1\3\3\uffff\1\3\1\uffff\4\3\4\uffff\1\3",
2472 "\1\1\7\uffff\1\3\3\uffff\1\3\1\uffff\4\3\4\uffff\1\3",
2477 static final short[] DFA4_eot
= DFA
.unpackEncodedString(DFA4_eotS
);
2478 static final short[] DFA4_eof
= DFA
.unpackEncodedString(DFA4_eofS
);
2479 static final char[] DFA4_min
= DFA
.unpackEncodedStringToUnsignedChars(DFA4_minS
);
2480 static final char[] DFA4_max
= DFA
.unpackEncodedStringToUnsignedChars(DFA4_maxS
);
2481 static final short[] DFA4_accept
= DFA
.unpackEncodedString(DFA4_acceptS
);
2482 static final short[] DFA4_special
= DFA
.unpackEncodedString(DFA4_specialS
);
2483 static final short[][] DFA4_transition
;
2486 int numStates
= DFA4_transitionS
.length
;
2487 DFA4_transition
= new short[numStates
][];
2488 for (int i
=0; i
<numStates
; i
++) {
2489 DFA4_transition
[i
] = DFA
.unpackEncodedString(DFA4_transitionS
[i
]);
2493 class DFA4
extends DFA
{
2495 public DFA4(BaseRecognizer recognizer
) {
2496 this.recognizer
= recognizer
;
2497 this.decisionNumber
= 4;
2498 this.eot
= DFA4_eot
;
2499 this.eof
= DFA4_eof
;
2500 this.min
= DFA4_min
;
2501 this.max
= DFA4_max
;
2502 this.accept
= DFA4_accept
;
2503 this.special
= DFA4_special
;
2504 this.transition
= DFA4_transition
;
2506 public String
getDescription() {
2507 return "59:1: query : ( ( WS )* EOF -> ^( EMPTY ) | ( WS )* expression ( WS )* EOF -> expression );";
2510 static final String DFA6_eotS
=
2512 static final String DFA6_eofS
=
2514 static final String DFA6_minS
=
2516 static final String DFA6_maxS
=
2517 "\1\31\1\32\2\uffff";
2518 static final String DFA6_acceptS
=
2520 static final String DFA6_specialS
=
2522 static final String
[] DFA6_transitionS
= {
2523 "\1\1\10\uffff\1\2",
2524 "\1\1\10\uffff\1\2\1\3",
2529 static final short[] DFA6_eot
= DFA
.unpackEncodedString(DFA6_eotS
);
2530 static final short[] DFA6_eof
= DFA
.unpackEncodedString(DFA6_eofS
);
2531 static final char[] DFA6_min
= DFA
.unpackEncodedStringToUnsignedChars(DFA6_minS
);
2532 static final char[] DFA6_max
= DFA
.unpackEncodedStringToUnsignedChars(DFA6_maxS
);
2533 static final short[] DFA6_accept
= DFA
.unpackEncodedString(DFA6_acceptS
);
2534 static final short[] DFA6_special
= DFA
.unpackEncodedString(DFA6_specialS
);
2535 static final short[][] DFA6_transition
;
2538 int numStates
= DFA6_transitionS
.length
;
2539 DFA6_transition
= new short[numStates
][];
2540 for (int i
=0; i
<numStates
; i
++) {
2541 DFA6_transition
[i
] = DFA
.unpackEncodedString(DFA6_transitionS
[i
]);
2545 class DFA6
extends DFA
{
2547 public DFA6(BaseRecognizer recognizer
) {
2548 this.recognizer
= recognizer
;
2549 this.decisionNumber
= 6;
2550 this.eot
= DFA6_eot
;
2551 this.eof
= DFA6_eof
;
2552 this.min
= DFA6_min
;
2553 this.max
= DFA6_max
;
2554 this.accept
= DFA6_accept
;
2555 this.special
= DFA6_special
;
2556 this.transition
= DFA6_transition
;
2558 public String
getDescription() {
2559 return "67:16: ( -> sequence | ( andOp sequence )+ -> ^( CONJUNCTION ( sequence )+ ) )";
2562 static final String DFA5_eotS
=
2564 static final String DFA5_eofS
=
2566 static final String DFA5_minS
=
2568 static final String DFA5_maxS
=
2569 "\1\31\1\32\2\uffff";
2570 static final String DFA5_acceptS
=
2572 static final String DFA5_specialS
=
2574 static final String
[] DFA5_transitionS
= {
2575 "\1\1\10\uffff\1\2",
2576 "\1\1\10\uffff\1\2\1\3",
2581 static final short[] DFA5_eot
= DFA
.unpackEncodedString(DFA5_eotS
);
2582 static final short[] DFA5_eof
= DFA
.unpackEncodedString(DFA5_eofS
);
2583 static final char[] DFA5_min
= DFA
.unpackEncodedStringToUnsignedChars(DFA5_minS
);
2584 static final char[] DFA5_max
= DFA
.unpackEncodedStringToUnsignedChars(DFA5_maxS
);
2585 static final short[] DFA5_accept
= DFA
.unpackEncodedString(DFA5_acceptS
);
2586 static final short[] DFA5_special
= DFA
.unpackEncodedString(DFA5_specialS
);
2587 static final short[][] DFA5_transition
;
2590 int numStates
= DFA5_transitionS
.length
;
2591 DFA5_transition
= new short[numStates
][];
2592 for (int i
=0; i
<numStates
; i
++) {
2593 DFA5_transition
[i
] = DFA
.unpackEncodedString(DFA5_transitionS
[i
]);
2597 class DFA5
extends DFA
{
2599 public DFA5(BaseRecognizer recognizer
) {
2600 this.recognizer
= recognizer
;
2601 this.decisionNumber
= 5;
2602 this.eot
= DFA5_eot
;
2603 this.eof
= DFA5_eof
;
2604 this.min
= DFA5_min
;
2605 this.max
= DFA5_max
;
2606 this.accept
= DFA5_accept
;
2607 this.special
= DFA5_special
;
2608 this.transition
= DFA5_transition
;
2610 public String
getDescription() {
2611 return "()+ loopback of 69:11: ( andOp sequence )+";
2614 static final String DFA9_eotS
=
2616 static final String DFA9_eofS
=
2618 static final String DFA9_minS
=
2620 static final String DFA9_maxS
=
2621 "\1\31\1\46\2\uffff";
2622 static final String DFA9_acceptS
=
2624 static final String DFA9_specialS
=
2626 static final String
[] DFA9_transitionS
= {
2627 "\1\1\10\uffff\1\2",
2628 "\1\1\7\uffff\1\3\2\2\1\uffff\1\3\1\uffff\4\3\4\uffff\1\3",
2633 static final short[] DFA9_eot
= DFA
.unpackEncodedString(DFA9_eotS
);
2634 static final short[] DFA9_eof
= DFA
.unpackEncodedString(DFA9_eofS
);
2635 static final char[] DFA9_min
= DFA
.unpackEncodedStringToUnsignedChars(DFA9_minS
);
2636 static final char[] DFA9_max
= DFA
.unpackEncodedStringToUnsignedChars(DFA9_maxS
);
2637 static final short[] DFA9_accept
= DFA
.unpackEncodedString(DFA9_acceptS
);
2638 static final short[] DFA9_special
= DFA
.unpackEncodedString(DFA9_specialS
);
2639 static final short[][] DFA9_transition
;
2642 int numStates
= DFA9_transitionS
.length
;
2643 DFA9_transition
= new short[numStates
][];
2644 for (int i
=0; i
<numStates
; i
++) {
2645 DFA9_transition
[i
] = DFA
.unpackEncodedString(DFA9_transitionS
[i
]);
2649 class DFA9
extends DFA
{
2651 public DFA9(BaseRecognizer recognizer
) {
2652 this.recognizer
= recognizer
;
2653 this.decisionNumber
= 9;
2654 this.eot
= DFA9_eot
;
2655 this.eof
= DFA9_eof
;
2656 this.min
= DFA9_min
;
2657 this.max
= DFA9_max
;
2658 this.accept
= DFA9_accept
;
2659 this.special
= DFA9_special
;
2660 this.transition
= DFA9_transition
;
2662 public String
getDescription() {
2663 return "76:14: ( -> factor | ( ( WS )+ factor )+ -> ^( SEQUENCE ( factor )+ ) )";
2666 static final String DFA8_eotS
=
2668 static final String DFA8_eofS
=
2670 static final String DFA8_minS
=
2672 static final String DFA8_maxS
=
2673 "\1\31\1\46\2\uffff";
2674 static final String DFA8_acceptS
=
2676 static final String DFA8_specialS
=
2678 static final String
[] DFA8_transitionS
= {
2679 "\1\1\10\uffff\1\2",
2680 "\1\1\7\uffff\1\3\2\2\1\uffff\1\3\1\uffff\4\3\4\uffff\1\3",
2685 static final short[] DFA8_eot
= DFA
.unpackEncodedString(DFA8_eotS
);
2686 static final short[] DFA8_eof
= DFA
.unpackEncodedString(DFA8_eofS
);
2687 static final char[] DFA8_min
= DFA
.unpackEncodedStringToUnsignedChars(DFA8_minS
);
2688 static final char[] DFA8_max
= DFA
.unpackEncodedStringToUnsignedChars(DFA8_maxS
);
2689 static final short[] DFA8_accept
= DFA
.unpackEncodedString(DFA8_acceptS
);
2690 static final short[] DFA8_special
= DFA
.unpackEncodedString(DFA8_specialS
);
2691 static final short[][] DFA8_transition
;
2694 int numStates
= DFA8_transitionS
.length
;
2695 DFA8_transition
= new short[numStates
][];
2696 for (int i
=0; i
<numStates
; i
++) {
2697 DFA8_transition
[i
] = DFA
.unpackEncodedString(DFA8_transitionS
[i
]);
2701 class DFA8
extends DFA
{
2703 public DFA8(BaseRecognizer recognizer
) {
2704 this.recognizer
= recognizer
;
2705 this.decisionNumber
= 8;
2706 this.eot
= DFA8_eot
;
2707 this.eof
= DFA8_eof
;
2708 this.min
= DFA8_min
;
2709 this.max
= DFA8_max
;
2710 this.accept
= DFA8_accept
;
2711 this.special
= DFA8_special
;
2712 this.transition
= DFA8_transition
;
2714 public String
getDescription() {
2715 return "()+ loopback of 78:11: ( ( WS )+ factor )+";
2718 static final String DFA11_eotS
=
2720 static final String DFA11_eofS
=
2722 static final String DFA11_minS
=
2724 static final String DFA11_maxS
=
2725 "\1\31\1\46\2\uffff";
2726 static final String DFA11_acceptS
=
2728 static final String DFA11_specialS
=
2730 static final String
[] DFA11_transitionS
= {
2731 "\1\1\10\uffff\1\2",
2732 "\1\1\7\uffff\3\2\1\3\1\2\1\uffff\4\2\4\uffff\1\2",
2737 static final short[] DFA11_eot
= DFA
.unpackEncodedString(DFA11_eotS
);
2738 static final short[] DFA11_eof
= DFA
.unpackEncodedString(DFA11_eofS
);
2739 static final char[] DFA11_min
= DFA
.unpackEncodedStringToUnsignedChars(DFA11_minS
);
2740 static final char[] DFA11_max
= DFA
.unpackEncodedStringToUnsignedChars(DFA11_maxS
);
2741 static final short[] DFA11_accept
= DFA
.unpackEncodedString(DFA11_acceptS
);
2742 static final short[] DFA11_special
= DFA
.unpackEncodedString(DFA11_specialS
);
2743 static final short[][] DFA11_transition
;
2746 int numStates
= DFA11_transitionS
.length
;
2747 DFA11_transition
= new short[numStates
][];
2748 for (int i
=0; i
<numStates
; i
++) {
2749 DFA11_transition
[i
] = DFA
.unpackEncodedString(DFA11_transitionS
[i
]);
2753 class DFA11
extends DFA
{
2755 public DFA11(BaseRecognizer recognizer
) {
2756 this.recognizer
= recognizer
;
2757 this.decisionNumber
= 11;
2758 this.eot
= DFA11_eot
;
2759 this.eof
= DFA11_eof
;
2760 this.min
= DFA11_min
;
2761 this.max
= DFA11_max
;
2762 this.accept
= DFA11_accept
;
2763 this.special
= DFA11_special
;
2764 this.transition
= DFA11_transition
;
2766 public String
getDescription() {
2767 return "85:12: ( -> term | ( orOp term )+ -> ^( DISJUNCTION ( term )+ ) )";
2770 static final String DFA10_eotS
=
2772 static final String DFA10_eofS
=
2774 static final String DFA10_minS
=
2776 static final String DFA10_maxS
=
2777 "\1\31\1\46\2\uffff";
2778 static final String DFA10_acceptS
=
2780 static final String DFA10_specialS
=
2782 static final String
[] DFA10_transitionS
= {
2783 "\1\1\10\uffff\1\2",
2784 "\1\1\7\uffff\3\2\1\3\1\2\1\uffff\4\2\4\uffff\1\2",
2789 static final short[] DFA10_eot
= DFA
.unpackEncodedString(DFA10_eotS
);
2790 static final short[] DFA10_eof
= DFA
.unpackEncodedString(DFA10_eofS
);
2791 static final char[] DFA10_min
= DFA
.unpackEncodedStringToUnsignedChars(DFA10_minS
);
2792 static final char[] DFA10_max
= DFA
.unpackEncodedStringToUnsignedChars(DFA10_maxS
);
2793 static final short[] DFA10_accept
= DFA
.unpackEncodedString(DFA10_acceptS
);
2794 static final short[] DFA10_special
= DFA
.unpackEncodedString(DFA10_specialS
);
2795 static final short[][] DFA10_transition
;
2798 int numStates
= DFA10_transitionS
.length
;
2799 DFA10_transition
= new short[numStates
][];
2800 for (int i
=0; i
<numStates
; i
++) {
2801 DFA10_transition
[i
] = DFA
.unpackEncodedString(DFA10_transitionS
[i
]);
2805 class DFA10
extends DFA
{
2807 public DFA10(BaseRecognizer recognizer
) {
2808 this.recognizer
= recognizer
;
2809 this.decisionNumber
= 10;
2810 this.eot
= DFA10_eot
;
2811 this.eof
= DFA10_eof
;
2812 this.min
= DFA10_min
;
2813 this.max
= DFA10_max
;
2814 this.accept
= DFA10_accept
;
2815 this.special
= DFA10_special
;
2816 this.transition
= DFA10_transition
;
2818 public String
getDescription() {
2819 return "()+ loopback of 87:11: ( orOp term )+";
2822 static final String DFA14_eotS
=
2824 static final String DFA14_eofS
=
2826 static final String DFA14_minS
=
2828 static final String DFA14_maxS
=
2829 "\1\31\1\46\2\uffff";
2830 static final String DFA14_acceptS
=
2832 static final String DFA14_specialS
=
2834 static final String
[] DFA14_transitionS
= {
2835 "\1\1\7\3\1\uffff\1\2",
2836 "\1\1\7\3\5\2\1\uffff\4\2\4\uffff\1\2",
2841 static final short[] DFA14_eot
= DFA
.unpackEncodedString(DFA14_eotS
);
2842 static final short[] DFA14_eof
= DFA
.unpackEncodedString(DFA14_eofS
);
2843 static final char[] DFA14_min
= DFA
.unpackEncodedStringToUnsignedChars(DFA14_minS
);
2844 static final char[] DFA14_max
= DFA
.unpackEncodedStringToUnsignedChars(DFA14_maxS
);
2845 static final short[] DFA14_accept
= DFA
.unpackEncodedString(DFA14_acceptS
);
2846 static final short[] DFA14_special
= DFA
.unpackEncodedString(DFA14_specialS
);
2847 static final short[][] DFA14_transition
;
2850 int numStates
= DFA14_transitionS
.length
;
2851 DFA14_transition
= new short[numStates
][];
2852 for (int i
=0; i
<numStates
; i
++) {
2853 DFA14_transition
[i
] = DFA
.unpackEncodedString(DFA14_transitionS
[i
]);
2857 class DFA14
extends DFA
{
2859 public DFA14(BaseRecognizer recognizer
) {
2860 this.recognizer
= recognizer
;
2861 this.decisionNumber
= 14;
2862 this.eot
= DFA14_eot
;
2863 this.eof
= DFA14_eof
;
2864 this.min
= DFA14_min
;
2865 this.max
= DFA14_max
;
2866 this.accept
= DFA14_accept
;
2867 this.special
= DFA14_special
;
2868 this.transition
= DFA14_transition
;
2870 public String
getDescription() {
2871 return "111:16: ( -> ^( HAS GLOBAL comparable ) | comparator arg -> ^( comparator comparable arg ) )";
2875 public static final BitSet FOLLOW_WS_in_query137
= new BitSet(new long[]{0x0000000000010000L
});
2876 public static final BitSet FOLLOW_EOF_in_query140
= new BitSet(new long[]{0x0000000000000002L
});
2877 public static final BitSet FOLLOW_WS_in_query169
= new BitSet(new long[]{0x00000043D1010000L
});
2878 public static final BitSet FOLLOW_expression_in_query172
= new BitSet(new long[]{0x0000000000010000L
});
2879 public static final BitSet FOLLOW_WS_in_query174
= new BitSet(new long[]{0x0000000000010000L
});
2880 public static final BitSet FOLLOW_EOF_in_query177
= new BitSet(new long[]{0x0000000000000002L
});
2881 public static final BitSet FOLLOW_sequence_in_expression200
= new BitSet(new long[]{0x0000000000010002L
});
2882 public static final BitSet FOLLOW_andOp_in_expression237
= new BitSet(new long[]{0x00000043D1000000L
});
2883 public static final BitSet FOLLOW_sequence_in_expression239
= new BitSet(new long[]{0x00000043D1010002L
});
2884 public static final BitSet FOLLOW_factor_in_sequence277
= new BitSet(new long[]{0x0000000000010002L
});
2885 public static final BitSet FOLLOW_WS_in_sequence313
= new BitSet(new long[]{0x00000043D1010000L
});
2886 public static final BitSet FOLLOW_factor_in_sequence316
= new BitSet(new long[]{0x0000000000010002L
});
2887 public static final BitSet FOLLOW_term_in_factor357
= new BitSet(new long[]{0x0000000000010002L
});
2888 public static final BitSet FOLLOW_orOp_in_factor389
= new BitSet(new long[]{0x00000043D1000000L
});
2889 public static final BitSet FOLLOW_term_in_factor391
= new BitSet(new long[]{0x00000043D1010002L
});
2890 public static final BitSet FOLLOW_primitive_in_term425
= new BitSet(new long[]{0x0000000000000002L
});
2891 public static final BitSet FOLLOW_notOp_in_term431
= new BitSet(new long[]{0x00000003C1000000L
});
2892 public static final BitSet FOLLOW_primitive_in_term433
= new BitSet(new long[]{0x0000000000000002L
});
2893 public static final BitSet FOLLOW_restriction_in_primitive459
= new BitSet(new long[]{0x0000000000000002L
});
2894 public static final BitSet FOLLOW_composite_in_primitive465
= new BitSet(new long[]{0x0000000000000002L
});
2895 public static final BitSet FOLLOW_comparable_in_restriction482
= new BitSet(new long[]{0x0000000000FF0002L
});
2896 public static final BitSet FOLLOW_comparator_in_restriction517
= new BitSet(new long[]{0x00000003C1000000L
});
2897 public static final BitSet FOLLOW_arg_in_restriction519
= new BitSet(new long[]{0x0000000000000002L
});
2898 public static final BitSet FOLLOW_WS_in_comparator549
= new BitSet(new long[]{0x0000000000FF0000L
});
2899 public static final BitSet FOLLOW_LE_in_comparator555
= new BitSet(new long[]{0x0000000000010002L
});
2900 public static final BitSet FOLLOW_LESSTHAN_in_comparator561
= new BitSet(new long[]{0x0000000000010002L
});
2901 public static final BitSet FOLLOW_GE_in_comparator567
= new BitSet(new long[]{0x0000000000010002L
});
2902 public static final BitSet FOLLOW_GT_in_comparator573
= new BitSet(new long[]{0x0000000000010002L
});
2903 public static final BitSet FOLLOW_NE_in_comparator579
= new BitSet(new long[]{0x0000000000010002L
});
2904 public static final BitSet FOLLOW_EQ_in_comparator585
= new BitSet(new long[]{0x0000000000010002L
});
2905 public static final BitSet FOLLOW_HAS_in_comparator591
= new BitSet(new long[]{0x0000000000010002L
});
2906 public static final BitSet FOLLOW_WS_in_comparator594
= new BitSet(new long[]{0x0000000000010002L
});
2907 public static final BitSet FOLLOW_member_in_comparable616
= new BitSet(new long[]{0x0000000000000002L
});
2908 public static final BitSet FOLLOW_function_in_comparable622
= new BitSet(new long[]{0x0000000000000002L
});
2909 public static final BitSet FOLLOW_item_in_member637
= new BitSet(new long[]{0x0000000000000002L
});
2910 public static final BitSet FOLLOW_text_in_function654
= new BitSet(new long[]{0x0000000001000000L
});
2911 public static final BitSet FOLLOW_LPAREN_in_function656
= new BitSet(new long[]{0x00000003C3000000L
});
2912 public static final BitSet FOLLOW_arglist_in_function658
= new BitSet(new long[]{0x0000000002000000L
});
2913 public static final BitSet FOLLOW_RPAREN_in_function660
= new BitSet(new long[]{0x0000000000000002L
});
2914 public static final BitSet FOLLOW_arg_in_arglist695
= new BitSet(new long[]{0x0000000020010002L
});
2915 public static final BitSet FOLLOW_sep_in_arglist698
= new BitSet(new long[]{0x00000003C1000000L
});
2916 public static final BitSet FOLLOW_arg_in_arglist700
= new BitSet(new long[]{0x0000000020010002L
});
2917 public static final BitSet FOLLOW_comparable_in_arg721
= new BitSet(new long[]{0x0000000000000002L
});
2918 public static final BitSet FOLLOW_composite_in_arg727
= new BitSet(new long[]{0x0000000000000002L
});
2919 public static final BitSet FOLLOW_WS_in_andOp741
= new BitSet(new long[]{0x0000000004010000L
});
2920 public static final BitSet FOLLOW_AND_in_andOp744
= new BitSet(new long[]{0x0000000000010000L
});
2921 public static final BitSet FOLLOW_WS_in_andOp746
= new BitSet(new long[]{0x0000000000010002L
});
2922 public static final BitSet FOLLOW_WS_in_orOp761
= new BitSet(new long[]{0x0000000008010000L
});
2923 public static final BitSet FOLLOW_OR_in_orOp764
= new BitSet(new long[]{0x0000000000010000L
});
2924 public static final BitSet FOLLOW_WS_in_orOp766
= new BitSet(new long[]{0x0000000000010002L
});
2925 public static final BitSet FOLLOW_MINUS_in_notOp781
= new BitSet(new long[]{0x0000000000000002L
});
2926 public static final BitSet FOLLOW_NOT_in_notOp787
= new BitSet(new long[]{0x0000000000010000L
});
2927 public static final BitSet FOLLOW_WS_in_notOp789
= new BitSet(new long[]{0x0000000000010002L
});
2928 public static final BitSet FOLLOW_WS_in_sep804
= new BitSet(new long[]{0x0000000020010000L
});
2929 public static final BitSet FOLLOW_COMMA_in_sep807
= new BitSet(new long[]{0x0000000000010002L
});
2930 public static final BitSet FOLLOW_WS_in_sep809
= new BitSet(new long[]{0x0000000000010002L
});
2931 public static final BitSet FOLLOW_LPAREN_in_composite825
= new BitSet(new long[]{0x00000043D1010000L
});
2932 public static final BitSet FOLLOW_WS_in_composite827
= new BitSet(new long[]{0x00000043D1010000L
});
2933 public static final BitSet FOLLOW_expression_in_composite830
= new BitSet(new long[]{0x0000000002010000L
});
2934 public static final BitSet FOLLOW_WS_in_composite832
= new BitSet(new long[]{0x0000000002010000L
});
2935 public static final BitSet FOLLOW_RPAREN_in_composite835
= new BitSet(new long[]{0x0000000000000002L
});
2936 public static final BitSet FOLLOW_FIX_in_item855
= new BitSet(new long[]{0x00000003C0000000L
});
2937 public static final BitSet FOLLOW_value_in_item857
= new BitSet(new long[]{0x0000000000000002L
});
2938 public static final BitSet FOLLOW_REWRITE_in_item871
= new BitSet(new long[]{0x00000003C0000000L
});
2939 public static final BitSet FOLLOW_value_in_item873
= new BitSet(new long[]{0x0000000000000002L
});
2940 public static final BitSet FOLLOW_value_in_item887
= new BitSet(new long[]{0x0000000000000002L
});
2941 public static final BitSet FOLLOW_text_in_value905
= new BitSet(new long[]{0x0000000000000002L
});
2942 public static final BitSet FOLLOW_phrase_in_value921
= new BitSet(new long[]{0x0000000000000002L
});
2943 public static final BitSet FOLLOW_TEXT_in_text945
= new BitSet(new long[]{0x0000000000000002L
});
2944 public static final BitSet FOLLOW_QUOTE_in_phrase959
= new BitSet(new long[]{0x00003FFFFFFFFFF0L
});
2945 public static final BitSet FOLLOW_set_in_phrase961
= new BitSet(new long[]{0x00003FFFFFFFFFF0L
});
2946 public static final BitSet FOLLOW_QUOTE_in_phrase965
= new BitSet(new long[]{0x0000000000000002L
});