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", "EXCLAMATION"
13 public static final int REWRITE
=31;
14 public static final int NUMBER_PREFIX
=40;
15 public static final int UNICODE_ESC
=34;
16 public static final int TEXT
=32;
17 public static final int VALUE
=15;
18 public static final int MINUS
=38;
19 public static final int BACKSLASH
=37;
20 public static final int DISJUNCTION
=6;
21 public static final int OCTAL_ESC
=35;
22 public static final int LITERAL
=11;
23 public static final int TEXT_ESC
=41;
24 public static final int LPAREN
=24;
25 public static final int RPAREN
=25;
26 public static final int EQ
=22;
27 public static final int FUNCTION
=8;
28 public static final int NOT
=28;
29 public static final int NE
=21;
30 public static final int AND
=26;
31 public static final int QUOTE
=33;
32 public static final int ESCAPED_CHAR
=44;
33 public static final int ARGS
=4;
34 public static final int MID_CHAR
=42;
35 public static final int START_CHAR
=39;
36 public static final int ESC
=36;
37 public static final int SEQUENCE
=14;
38 public static final int GLOBAL
=10;
39 public static final int HEX_DIGIT
=45;
40 public static final int WS
=16;
41 public static final int EOF
=-1;
42 public static final int EMPTY
=7;
43 public static final int GE
=19;
44 public static final int COMMA
=29;
45 public static final int OR
=27;
46 public static final int FUZZY
=9;
47 public static final int NEGATION
=12;
48 public static final int GT
=20;
49 public static final int DIGIT
=43;
50 public static final int CONJUNCTION
=5;
51 public static final int FIX
=30;
52 public static final int EXCLAMATION
=46;
53 public static final int LESSTHAN
=18;
54 public static final int STRING
=13;
55 public static final int LE
=17;
56 public static final int HAS
=23;
58 public QueryParser(TokenStream input
) {
59 this(input
, new RecognizerSharedState());
61 public QueryParser(TokenStream input
, RecognizerSharedState state
) {
66 protected TreeAdaptor adaptor
= new CommonTreeAdaptor();
68 public void setTreeAdaptor(TreeAdaptor adaptor
) {
69 this.adaptor
= adaptor
;
71 public TreeAdaptor
getTreeAdaptor() {
75 public String
[] getTokenNames() { return QueryParser
.tokenNames
; }
76 public String
getGrammarFileName() { return ""; }
79 public Object
recoverFromMismatchedSet(IntStream input
,
80 RecognitionException e
, BitSet follow
) throws RecognitionException
{
85 protected Object
recoverFromMismatchedToken(
86 IntStream input
, int ttype
, BitSet follow
) throws RecognitionException
{
87 throw new MismatchedTokenException(ttype
, input
);
90 public static class query_return
extends ParserRuleReturnScope
{
92 public Object
getTree() { return tree
; }
95 public final QueryParser
.query_return
query() throws RecognitionException
{
96 QueryParser
.query_return retval
= new QueryParser
.query_return();
97 retval
.start
= input
.LT(1);
99 CommonTree root_0
= null;
106 QueryParser
.expression_return expression4
= null;
108 CommonTree WS1_tree
=null;
109 CommonTree EOF2_tree
=null;
110 CommonTree WS3_tree
=null;
111 CommonTree WS5_tree
=null;
112 CommonTree EOF6_tree
=null;
113 RewriteRuleTokenStream stream_WS
=new RewriteRuleTokenStream(adaptor
,"token WS");
114 RewriteRuleTokenStream stream_EOF
=new RewriteRuleTokenStream(adaptor
,"token EOF");
115 RewriteRuleSubtreeStream stream_expression
=new RewriteRuleSubtreeStream(adaptor
,"rule expression");
118 alt4
= dfa4
.predict(input
);
125 int LA1_0
= input
.LA(1);
134 WS1
=(Token
)match(input
,WS
,FOLLOW_WS_in_query145
);
145 EOF2
=(Token
)match(input
,EOF
,FOLLOW_EOF_in_query148
);
146 stream_EOF
.add(EOF2
);
148 retval
.tree
= root_0
;
149 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
151 root_0
= (CommonTree
)adaptor
.nil();
154 CommonTree root_1
= (CommonTree
)adaptor
.nil();
155 root_1
= (CommonTree
)adaptor
.becomeRoot((CommonTree
)adaptor
.create(EMPTY
, "EMPTY"), root_1
);
157 adaptor
.addChild(root_0
, root_1
);
162 retval
.tree
= root_0
;
170 int LA2_0
= input
.LA(1);
179 WS3
=(Token
)match(input
,WS
,FOLLOW_WS_in_query177
);
190 pushFollow(FOLLOW_expression_in_query180
);
191 expression4
=expression();
195 stream_expression
.add(expression4
.getTree());
199 int LA3_0
= input
.LA(1);
208 WS5
=(Token
)match(input
,WS
,FOLLOW_WS_in_query182
);
219 EOF6
=(Token
)match(input
,EOF
,FOLLOW_EOF_in_query185
);
220 stream_EOF
.add(EOF6
);
222 retval
.tree
= root_0
;
223 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
225 root_0
= (CommonTree
)adaptor
.nil();
227 adaptor
.addChild(root_0
, stream_expression
.nextTree());
231 retval
.tree
= root_0
;
236 retval
.stop
= input
.LT(-1);
238 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
239 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
243 catch (RecognitionException e
) {
252 public static class expression_return
extends ParserRuleReturnScope
{
254 public Object
getTree() { return tree
; }
257 public final QueryParser
.expression_return
expression() throws RecognitionException
{
258 QueryParser
.expression_return retval
= new QueryParser
.expression_return();
259 retval
.start
= input
.LT(1);
261 CommonTree root_0
= null;
263 QueryParser
.sequence_return sequence7
= null;
265 QueryParser
.andOp_return andOp8
= null;
267 QueryParser
.sequence_return sequence9
= null;
269 RewriteRuleSubtreeStream stream_sequence
=new RewriteRuleSubtreeStream(adaptor
,"rule sequence");
270 RewriteRuleSubtreeStream stream_andOp
=new RewriteRuleSubtreeStream(adaptor
,"rule andOp");
273 pushFollow(FOLLOW_sequence_in_expression208
);
274 sequence7
=sequence();
278 stream_sequence
.add(sequence7
.getTree());
280 alt6
= dfa6
.predict(input
);
285 retval
.tree
= root_0
;
286 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
288 root_0
= (CommonTree
)adaptor
.nil();
290 adaptor
.addChild(root_0
, stream_sequence
.nextTree());
294 retval
.tree
= root_0
;
303 alt5
= dfa5
.predict(input
);
307 pushFollow(FOLLOW_andOp_in_expression245
);
312 stream_andOp
.add(andOp8
.getTree());
313 pushFollow(FOLLOW_sequence_in_expression247
);
314 sequence9
=sequence();
318 stream_sequence
.add(sequence9
.getTree());
324 if ( cnt5
>= 1 ) break loop5
;
325 EarlyExitException eee
=
326 new EarlyExitException(5, input
);
332 retval
.tree
= root_0
;
333 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
335 root_0
= (CommonTree
)adaptor
.nil();
338 CommonTree root_1
= (CommonTree
)adaptor
.nil();
339 root_1
= (CommonTree
)adaptor
.becomeRoot((CommonTree
)adaptor
.create(CONJUNCTION
, "CONJUNCTION"), root_1
);
341 if ( !(stream_sequence
.hasNext()) ) {
342 throw new RewriteEarlyExitException();
344 while ( stream_sequence
.hasNext() ) {
345 adaptor
.addChild(root_1
, stream_sequence
.nextTree());
348 stream_sequence
.reset();
350 adaptor
.addChild(root_0
, root_1
);
355 retval
.tree
= root_0
;
363 retval
.stop
= input
.LT(-1);
365 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
366 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
370 catch (RecognitionException e
) {
379 public static class sequence_return
extends ParserRuleReturnScope
{
381 public Object
getTree() { return tree
; }
384 public final QueryParser
.sequence_return
sequence() throws RecognitionException
{
385 QueryParser
.sequence_return retval
= new QueryParser
.sequence_return();
386 retval
.start
= input
.LT(1);
388 CommonTree root_0
= null;
391 QueryParser
.factor_return factor10
= null;
393 QueryParser
.factor_return factor12
= null;
395 CommonTree WS11_tree
=null;
396 RewriteRuleTokenStream stream_WS
=new RewriteRuleTokenStream(adaptor
,"token WS");
397 RewriteRuleSubtreeStream stream_factor
=new RewriteRuleSubtreeStream(adaptor
,"rule factor");
400 pushFollow(FOLLOW_factor_in_sequence285
);
405 stream_factor
.add(factor10
.getTree());
407 alt9
= dfa9
.predict(input
);
412 retval
.tree
= root_0
;
413 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
415 root_0
= (CommonTree
)adaptor
.nil();
417 adaptor
.addChild(root_0
, stream_factor
.nextTree());
421 retval
.tree
= root_0
;
430 alt8
= dfa8
.predict(input
);
438 int LA7_0
= input
.LA(1);
447 WS11
=(Token
)match(input
,WS
,FOLLOW_WS_in_sequence321
);
454 if ( cnt7
>= 1 ) break loop7
;
455 EarlyExitException eee
=
456 new EarlyExitException(7, input
);
462 pushFollow(FOLLOW_factor_in_sequence324
);
467 stream_factor
.add(factor12
.getTree());
473 if ( cnt8
>= 1 ) break loop8
;
474 EarlyExitException eee
=
475 new EarlyExitException(8, input
);
481 retval
.tree
= root_0
;
482 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
484 root_0
= (CommonTree
)adaptor
.nil();
487 CommonTree root_1
= (CommonTree
)adaptor
.nil();
488 root_1
= (CommonTree
)adaptor
.becomeRoot((CommonTree
)adaptor
.create(SEQUENCE
, "SEQUENCE"), root_1
);
490 if ( !(stream_factor
.hasNext()) ) {
491 throw new RewriteEarlyExitException();
493 while ( stream_factor
.hasNext() ) {
494 adaptor
.addChild(root_1
, stream_factor
.nextTree());
497 stream_factor
.reset();
499 adaptor
.addChild(root_0
, root_1
);
504 retval
.tree
= root_0
;
512 retval
.stop
= input
.LT(-1);
514 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
515 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
519 catch (RecognitionException e
) {
528 public static class factor_return
extends ParserRuleReturnScope
{
530 public Object
getTree() { return tree
; }
533 public final QueryParser
.factor_return
factor() throws RecognitionException
{
534 QueryParser
.factor_return retval
= new QueryParser
.factor_return();
535 retval
.start
= input
.LT(1);
537 CommonTree root_0
= null;
539 QueryParser
.term_return term13
= null;
541 QueryParser
.orOp_return orOp14
= null;
543 QueryParser
.term_return term15
= null;
545 RewriteRuleSubtreeStream stream_orOp
=new RewriteRuleSubtreeStream(adaptor
,"rule orOp");
546 RewriteRuleSubtreeStream stream_term
=new RewriteRuleSubtreeStream(adaptor
,"rule term");
549 pushFollow(FOLLOW_term_in_factor365
);
554 stream_term
.add(term13
.getTree());
556 alt11
= dfa11
.predict(input
);
561 retval
.tree
= root_0
;
562 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
564 root_0
= (CommonTree
)adaptor
.nil();
566 adaptor
.addChild(root_0
, stream_term
.nextTree());
570 retval
.tree
= root_0
;
579 alt10
= dfa10
.predict(input
);
583 pushFollow(FOLLOW_orOp_in_factor397
);
588 stream_orOp
.add(orOp14
.getTree());
589 pushFollow(FOLLOW_term_in_factor399
);
594 stream_term
.add(term15
.getTree());
600 if ( cnt10
>= 1 ) break loop10
;
601 EarlyExitException eee
=
602 new EarlyExitException(10, input
);
608 retval
.tree
= root_0
;
609 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
611 root_0
= (CommonTree
)adaptor
.nil();
614 CommonTree root_1
= (CommonTree
)adaptor
.nil();
615 root_1
= (CommonTree
)adaptor
.becomeRoot((CommonTree
)adaptor
.create(DISJUNCTION
, "DISJUNCTION"), root_1
);
617 if ( !(stream_term
.hasNext()) ) {
618 throw new RewriteEarlyExitException();
620 while ( stream_term
.hasNext() ) {
621 adaptor
.addChild(root_1
, stream_term
.nextTree());
626 adaptor
.addChild(root_0
, root_1
);
631 retval
.tree
= root_0
;
639 retval
.stop
= input
.LT(-1);
641 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
642 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
646 catch (RecognitionException e
) {
655 public static class term_return
extends ParserRuleReturnScope
{
657 public Object
getTree() { return tree
; }
660 public final QueryParser
.term_return
term() throws RecognitionException
{
661 QueryParser
.term_return retval
= new QueryParser
.term_return();
662 retval
.start
= input
.LT(1);
664 CommonTree root_0
= null;
666 QueryParser
.primitive_return primitive16
= null;
668 QueryParser
.notOp_return notOp17
= null;
670 QueryParser
.primitive_return primitive18
= null;
672 RewriteRuleSubtreeStream stream_primitive
=new RewriteRuleSubtreeStream(adaptor
,"rule primitive");
673 RewriteRuleSubtreeStream stream_notOp
=new RewriteRuleSubtreeStream(adaptor
,"rule notOp");
676 int LA12_0
= input
.LA(1);
678 if ( (LA12_0
==LPAREN
||(LA12_0
>=FIX
&& LA12_0
<=QUOTE
)) ) {
681 else if ( (LA12_0
==NOT
||LA12_0
==MINUS
) ) {
685 NoViableAltException nvae
=
686 new NoViableAltException("", 12, 0, input
);
693 root_0
= (CommonTree
)adaptor
.nil();
695 pushFollow(FOLLOW_primitive_in_term433
);
696 primitive16
=primitive();
700 adaptor
.addChild(root_0
, primitive16
.getTree());
706 pushFollow(FOLLOW_notOp_in_term439
);
711 stream_notOp
.add(notOp17
.getTree());
712 pushFollow(FOLLOW_primitive_in_term441
);
713 primitive18
=primitive();
717 stream_primitive
.add(primitive18
.getTree());
719 retval
.tree
= root_0
;
720 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
722 root_0
= (CommonTree
)adaptor
.nil();
725 CommonTree root_1
= (CommonTree
)adaptor
.nil();
726 root_1
= (CommonTree
)adaptor
.becomeRoot((CommonTree
)adaptor
.create(NEGATION
, "NEGATION"), root_1
);
728 adaptor
.addChild(root_1
, stream_primitive
.nextTree());
730 adaptor
.addChild(root_0
, root_1
);
735 retval
.tree
= root_0
;
740 retval
.stop
= input
.LT(-1);
742 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
743 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
747 catch (RecognitionException e
) {
756 public static class primitive_return
extends ParserRuleReturnScope
{
758 public Object
getTree() { return tree
; }
761 public final QueryParser
.primitive_return
primitive() throws RecognitionException
{
762 QueryParser
.primitive_return retval
= new QueryParser
.primitive_return();
763 retval
.start
= input
.LT(1);
765 CommonTree root_0
= null;
767 QueryParser
.restriction_return restriction19
= null;
769 QueryParser
.composite_return composite20
= null;
773 int LA13_0
= input
.LA(1);
775 if ( ((LA13_0
>=FIX
&& LA13_0
<=QUOTE
)) ) {
778 else if ( (LA13_0
==LPAREN
) ) {
782 NoViableAltException nvae
=
783 new NoViableAltException("", 13, 0, input
);
790 root_0
= (CommonTree
)adaptor
.nil();
792 pushFollow(FOLLOW_restriction_in_primitive467
);
793 restriction19
=restriction();
797 adaptor
.addChild(root_0
, restriction19
.getTree());
803 root_0
= (CommonTree
)adaptor
.nil();
805 pushFollow(FOLLOW_composite_in_primitive473
);
806 composite20
=composite();
810 adaptor
.addChild(root_0
, composite20
.getTree());
816 retval
.stop
= input
.LT(-1);
818 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
819 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
823 catch (RecognitionException e
) {
832 public static class restriction_return
extends ParserRuleReturnScope
{
834 public Object
getTree() { return tree
; }
837 public final QueryParser
.restriction_return
restriction() throws RecognitionException
{
838 QueryParser
.restriction_return retval
= new QueryParser
.restriction_return();
839 retval
.start
= input
.LT(1);
841 CommonTree root_0
= null;
843 QueryParser
.comparable_return comparable21
= null;
845 QueryParser
.comparator_return comparator22
= null;
847 QueryParser
.arg_return arg23
= null;
849 RewriteRuleSubtreeStream stream_comparator
=new RewriteRuleSubtreeStream(adaptor
,"rule comparator");
850 RewriteRuleSubtreeStream stream_arg
=new RewriteRuleSubtreeStream(adaptor
,"rule arg");
851 RewriteRuleSubtreeStream stream_comparable
=new RewriteRuleSubtreeStream(adaptor
,"rule comparable");
854 pushFollow(FOLLOW_comparable_in_restriction490
);
855 comparable21
=comparable();
859 stream_comparable
.add(comparable21
.getTree());
861 alt14
= dfa14
.predict(input
);
866 retval
.tree
= root_0
;
867 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
869 root_0
= (CommonTree
)adaptor
.nil();
872 CommonTree root_1
= (CommonTree
)adaptor
.nil();
873 root_1
= (CommonTree
)adaptor
.becomeRoot((CommonTree
)adaptor
.create(HAS
, "HAS"), root_1
);
875 adaptor
.addChild(root_1
, (CommonTree
)adaptor
.create(GLOBAL
, "GLOBAL"));
876 adaptor
.addChild(root_1
, stream_comparable
.nextTree());
878 adaptor
.addChild(root_0
, root_1
);
883 retval
.tree
= root_0
;
888 pushFollow(FOLLOW_comparator_in_restriction525
);
889 comparator22
=comparator();
893 stream_comparator
.add(comparator22
.getTree());
894 pushFollow(FOLLOW_arg_in_restriction527
);
899 stream_arg
.add(arg23
.getTree());
901 retval
.tree
= root_0
;
902 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
904 root_0
= (CommonTree
)adaptor
.nil();
907 CommonTree root_1
= (CommonTree
)adaptor
.nil();
908 root_1
= (CommonTree
)adaptor
.becomeRoot(stream_comparator
.nextNode(), root_1
);
910 adaptor
.addChild(root_1
, stream_comparable
.nextTree());
911 adaptor
.addChild(root_1
, stream_arg
.nextTree());
913 adaptor
.addChild(root_0
, root_1
);
918 retval
.tree
= root_0
;
926 retval
.stop
= input
.LT(-1);
928 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
929 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
933 catch (RecognitionException e
) {
942 public static class comparator_return
extends ParserRuleReturnScope
{
944 public Object
getTree() { return tree
; }
947 public final QueryParser
.comparator_return
comparator() throws RecognitionException
{
948 QueryParser
.comparator_return retval
= new QueryParser
.comparator_return();
949 retval
.start
= input
.LT(1);
951 CommonTree root_0
= null;
957 CommonTree x_tree
=null;
958 CommonTree WS24_tree
=null;
959 CommonTree WS25_tree
=null;
960 RewriteRuleTokenStream stream_NE
=new RewriteRuleTokenStream(adaptor
,"token NE");
961 RewriteRuleTokenStream stream_LESSTHAN
=new RewriteRuleTokenStream(adaptor
,"token LESSTHAN");
962 RewriteRuleTokenStream stream_LE
=new RewriteRuleTokenStream(adaptor
,"token LE");
963 RewriteRuleTokenStream stream_HAS
=new RewriteRuleTokenStream(adaptor
,"token HAS");
964 RewriteRuleTokenStream stream_WS
=new RewriteRuleTokenStream(adaptor
,"token WS");
965 RewriteRuleTokenStream stream_EQ
=new RewriteRuleTokenStream(adaptor
,"token EQ");
966 RewriteRuleTokenStream stream_GT
=new RewriteRuleTokenStream(adaptor
,"token GT");
967 RewriteRuleTokenStream stream_GE
=new RewriteRuleTokenStream(adaptor
,"token GE");
974 int LA15_0
= input
.LA(1);
976 if ( (LA15_0
==WS
) ) {
983 WS24
=(Token
)match(input
,WS
,FOLLOW_WS_in_comparator557
);
995 switch ( input
.LA(1) ) {
1032 NoViableAltException nvae
=
1033 new NoViableAltException("", 16, 0, input
);
1041 x
=(Token
)match(input
,LE
,FOLLOW_LE_in_comparator563
);
1048 x
=(Token
)match(input
,LESSTHAN
,FOLLOW_LESSTHAN_in_comparator569
);
1049 stream_LESSTHAN
.add(x
);
1055 x
=(Token
)match(input
,GE
,FOLLOW_GE_in_comparator575
);
1062 x
=(Token
)match(input
,GT
,FOLLOW_GT_in_comparator581
);
1069 x
=(Token
)match(input
,NE
,FOLLOW_NE_in_comparator587
);
1076 x
=(Token
)match(input
,EQ
,FOLLOW_EQ_in_comparator593
);
1083 x
=(Token
)match(input
,HAS
,FOLLOW_HAS_in_comparator599
);
1094 int LA17_0
= input
.LA(1);
1096 if ( (LA17_0
==WS
) ) {
1103 WS25
=(Token
)match(input
,WS
,FOLLOW_WS_in_comparator602
);
1104 stream_WS
.add(WS25
);
1114 retval
.tree
= root_0
;
1115 RewriteRuleTokenStream stream_x
=new RewriteRuleTokenStream(adaptor
,"token x",x
);
1116 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
1118 root_0
= (CommonTree
)adaptor
.nil();
1120 adaptor
.addChild(root_0
, stream_x
.nextNode());
1124 retval
.tree
= root_0
;
1127 retval
.stop
= input
.LT(-1);
1129 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
1130 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
1134 catch (RecognitionException e
) {
1143 public static class comparable_return
extends ParserRuleReturnScope
{
1145 public Object
getTree() { return tree
; }
1148 public final QueryParser
.comparable_return
comparable() throws RecognitionException
{
1149 QueryParser
.comparable_return retval
= new QueryParser
.comparable_return();
1150 retval
.start
= input
.LT(1);
1152 CommonTree root_0
= null;
1154 QueryParser
.member_return member26
= null;
1156 QueryParser
.function_return function27
= null;
1160 int LA18_0
= input
.LA(1);
1162 if ( ((LA18_0
>=FIX
&& LA18_0
<=REWRITE
)||LA18_0
==QUOTE
) ) {
1165 else if ( (LA18_0
==TEXT
) ) {
1166 int LA18_2
= input
.LA(2);
1168 if ( (LA18_2
==EOF
||(LA18_2
>=WS
&& LA18_2
<=HAS
)||LA18_2
==RPAREN
||LA18_2
==COMMA
) ) {
1171 else if ( (LA18_2
==LPAREN
) ) {
1175 NoViableAltException nvae
=
1176 new NoViableAltException("", 18, 2, input
);
1182 NoViableAltException nvae
=
1183 new NoViableAltException("", 18, 0, input
);
1190 root_0
= (CommonTree
)adaptor
.nil();
1192 pushFollow(FOLLOW_member_in_comparable624
);
1197 adaptor
.addChild(root_0
, member26
.getTree());
1203 root_0
= (CommonTree
)adaptor
.nil();
1205 pushFollow(FOLLOW_function_in_comparable630
);
1206 function27
=function();
1210 adaptor
.addChild(root_0
, function27
.getTree());
1216 retval
.stop
= input
.LT(-1);
1218 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
1219 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
1223 catch (RecognitionException e
) {
1232 public static class member_return
extends ParserRuleReturnScope
{
1234 public Object
getTree() { return tree
; }
1237 public final QueryParser
.member_return
member() throws RecognitionException
{
1238 QueryParser
.member_return retval
= new QueryParser
.member_return();
1239 retval
.start
= input
.LT(1);
1241 CommonTree root_0
= null;
1243 QueryParser
.item_return item28
= null;
1247 root_0
= (CommonTree
)adaptor
.nil();
1249 pushFollow(FOLLOW_item_in_member645
);
1254 adaptor
.addChild(root_0
, item28
.getTree());
1258 retval
.stop
= input
.LT(-1);
1260 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
1261 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
1265 catch (RecognitionException e
) {
1274 public static class function_return
extends ParserRuleReturnScope
{
1276 public Object
getTree() { return tree
; }
1279 public final QueryParser
.function_return
function() throws RecognitionException
{
1280 QueryParser
.function_return retval
= new QueryParser
.function_return();
1281 retval
.start
= input
.LT(1);
1283 CommonTree root_0
= null;
1285 Token LPAREN30
=null;
1286 Token RPAREN32
=null;
1287 QueryParser
.text_return text29
= null;
1289 QueryParser
.arglist_return arglist31
= null;
1291 CommonTree LPAREN30_tree
=null;
1292 CommonTree RPAREN32_tree
=null;
1293 RewriteRuleTokenStream stream_LPAREN
=new RewriteRuleTokenStream(adaptor
,"token LPAREN");
1294 RewriteRuleTokenStream stream_RPAREN
=new RewriteRuleTokenStream(adaptor
,"token RPAREN");
1295 RewriteRuleSubtreeStream stream_arglist
=new RewriteRuleSubtreeStream(adaptor
,"rule arglist");
1296 RewriteRuleSubtreeStream stream_text
=new RewriteRuleSubtreeStream(adaptor
,"rule text");
1299 pushFollow(FOLLOW_text_in_function662
);
1304 stream_text
.add(text29
.getTree());
1305 LPAREN30
=(Token
)match(input
,LPAREN
,FOLLOW_LPAREN_in_function664
);
1306 stream_LPAREN
.add(LPAREN30
);
1308 pushFollow(FOLLOW_arglist_in_function666
);
1309 arglist31
=arglist();
1313 stream_arglist
.add(arglist31
.getTree());
1314 RPAREN32
=(Token
)match(input
,RPAREN
,FOLLOW_RPAREN_in_function668
);
1315 stream_RPAREN
.add(RPAREN32
);
1317 retval
.tree
= root_0
;
1318 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
1320 root_0
= (CommonTree
)adaptor
.nil();
1323 CommonTree root_1
= (CommonTree
)adaptor
.nil();
1324 root_1
= (CommonTree
)adaptor
.becomeRoot((CommonTree
)adaptor
.create(FUNCTION
, "FUNCTION"), root_1
);
1326 adaptor
.addChild(root_1
, stream_text
.nextTree());
1328 CommonTree root_2
= (CommonTree
)adaptor
.nil();
1329 root_2
= (CommonTree
)adaptor
.becomeRoot((CommonTree
)adaptor
.create(ARGS
, "ARGS"), root_2
);
1331 adaptor
.addChild(root_2
, stream_arglist
.nextTree());
1333 adaptor
.addChild(root_1
, root_2
);
1336 adaptor
.addChild(root_0
, root_1
);
1341 retval
.tree
= root_0
;
1344 retval
.stop
= input
.LT(-1);
1346 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
1347 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
1351 catch (RecognitionException e
) {
1360 public static class arglist_return
extends ParserRuleReturnScope
{
1362 public Object
getTree() { return tree
; }
1365 public final QueryParser
.arglist_return
arglist() throws RecognitionException
{
1366 QueryParser
.arglist_return retval
= new QueryParser
.arglist_return();
1367 retval
.start
= input
.LT(1);
1369 CommonTree root_0
= null;
1371 QueryParser
.arg_return arg33
= null;
1373 QueryParser
.sep_return sep34
= null;
1375 QueryParser
.arg_return arg35
= null;
1377 RewriteRuleSubtreeStream stream_arg
=new RewriteRuleSubtreeStream(adaptor
,"rule arg");
1378 RewriteRuleSubtreeStream stream_sep
=new RewriteRuleSubtreeStream(adaptor
,"rule sep");
1381 int LA20_0
= input
.LA(1);
1383 if ( (LA20_0
==RPAREN
) ) {
1386 else if ( (LA20_0
==LPAREN
||(LA20_0
>=FIX
&& LA20_0
<=QUOTE
)) ) {
1390 NoViableAltException nvae
=
1391 new NoViableAltException("", 20, 0, input
);
1398 root_0
= (CommonTree
)adaptor
.nil();
1404 pushFollow(FOLLOW_arg_in_arglist703
);
1409 stream_arg
.add(arg33
.getTree());
1413 int LA19_0
= input
.LA(1);
1415 if ( (LA19_0
==WS
||LA19_0
==COMMA
) ) {
1422 pushFollow(FOLLOW_sep_in_arglist706
);
1427 stream_sep
.add(sep34
.getTree());
1428 pushFollow(FOLLOW_arg_in_arglist708
);
1433 stream_arg
.add(arg35
.getTree());
1443 retval
.tree
= root_0
;
1444 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
1446 root_0
= (CommonTree
)adaptor
.nil();
1448 while ( stream_arg
.hasNext() ) {
1449 adaptor
.addChild(root_0
, stream_arg
.nextTree());
1456 retval
.tree
= root_0
;
1461 retval
.stop
= input
.LT(-1);
1463 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
1464 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
1468 catch (RecognitionException e
) {
1477 public static class arg_return
extends ParserRuleReturnScope
{
1479 public Object
getTree() { return tree
; }
1482 public final QueryParser
.arg_return
arg() throws RecognitionException
{
1483 QueryParser
.arg_return retval
= new QueryParser
.arg_return();
1484 retval
.start
= input
.LT(1);
1486 CommonTree root_0
= null;
1488 QueryParser
.comparable_return comparable36
= null;
1490 QueryParser
.composite_return composite37
= null;
1494 int LA21_0
= input
.LA(1);
1496 if ( ((LA21_0
>=FIX
&& LA21_0
<=QUOTE
)) ) {
1499 else if ( (LA21_0
==LPAREN
) ) {
1503 NoViableAltException nvae
=
1504 new NoViableAltException("", 21, 0, input
);
1511 root_0
= (CommonTree
)adaptor
.nil();
1513 pushFollow(FOLLOW_comparable_in_arg729
);
1514 comparable36
=comparable();
1518 adaptor
.addChild(root_0
, comparable36
.getTree());
1524 root_0
= (CommonTree
)adaptor
.nil();
1526 pushFollow(FOLLOW_composite_in_arg735
);
1527 composite37
=composite();
1531 adaptor
.addChild(root_0
, composite37
.getTree());
1537 retval
.stop
= input
.LT(-1);
1539 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
1540 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
1544 catch (RecognitionException e
) {
1553 public static class andOp_return
extends ParserRuleReturnScope
{
1555 public Object
getTree() { return tree
; }
1558 public final QueryParser
.andOp_return
andOp() throws RecognitionException
{
1559 QueryParser
.andOp_return retval
= new QueryParser
.andOp_return();
1560 retval
.start
= input
.LT(1);
1562 CommonTree root_0
= null;
1568 CommonTree WS38_tree
=null;
1569 CommonTree AND39_tree
=null;
1570 CommonTree WS40_tree
=null;
1574 root_0
= (CommonTree
)adaptor
.nil();
1580 int LA22_0
= input
.LA(1);
1582 if ( (LA22_0
==WS
) ) {
1589 WS38
=(Token
)match(input
,WS
,FOLLOW_WS_in_andOp749
);
1590 WS38_tree
= (CommonTree
)adaptor
.create(WS38
);
1591 adaptor
.addChild(root_0
, WS38_tree
);
1597 if ( cnt22
>= 1 ) break loop22
;
1598 EarlyExitException eee
=
1599 new EarlyExitException(22, input
);
1605 AND39
=(Token
)match(input
,AND
,FOLLOW_AND_in_andOp752
);
1606 AND39_tree
= (CommonTree
)adaptor
.create(AND39
);
1607 adaptor
.addChild(root_0
, AND39_tree
);
1613 int LA23_0
= input
.LA(1);
1615 if ( (LA23_0
==WS
) ) {
1622 WS40
=(Token
)match(input
,WS
,FOLLOW_WS_in_andOp754
);
1623 WS40_tree
= (CommonTree
)adaptor
.create(WS40
);
1624 adaptor
.addChild(root_0
, WS40_tree
);
1630 if ( cnt23
>= 1 ) break loop23
;
1631 EarlyExitException eee
=
1632 new EarlyExitException(23, input
);
1640 retval
.stop
= input
.LT(-1);
1642 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
1643 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
1647 catch (RecognitionException e
) {
1656 public static class orOp_return
extends ParserRuleReturnScope
{
1658 public Object
getTree() { return tree
; }
1661 public final QueryParser
.orOp_return
orOp() throws RecognitionException
{
1662 QueryParser
.orOp_return retval
= new QueryParser
.orOp_return();
1663 retval
.start
= input
.LT(1);
1665 CommonTree root_0
= null;
1671 CommonTree WS41_tree
=null;
1672 CommonTree OR42_tree
=null;
1673 CommonTree WS43_tree
=null;
1677 root_0
= (CommonTree
)adaptor
.nil();
1683 int LA24_0
= input
.LA(1);
1685 if ( (LA24_0
==WS
) ) {
1692 WS41
=(Token
)match(input
,WS
,FOLLOW_WS_in_orOp769
);
1693 WS41_tree
= (CommonTree
)adaptor
.create(WS41
);
1694 adaptor
.addChild(root_0
, WS41_tree
);
1700 if ( cnt24
>= 1 ) break loop24
;
1701 EarlyExitException eee
=
1702 new EarlyExitException(24, input
);
1708 OR42
=(Token
)match(input
,OR
,FOLLOW_OR_in_orOp772
);
1709 OR42_tree
= (CommonTree
)adaptor
.create(OR42
);
1710 adaptor
.addChild(root_0
, OR42_tree
);
1716 int LA25_0
= input
.LA(1);
1718 if ( (LA25_0
==WS
) ) {
1725 WS43
=(Token
)match(input
,WS
,FOLLOW_WS_in_orOp774
);
1726 WS43_tree
= (CommonTree
)adaptor
.create(WS43
);
1727 adaptor
.addChild(root_0
, WS43_tree
);
1733 if ( cnt25
>= 1 ) break loop25
;
1734 EarlyExitException eee
=
1735 new EarlyExitException(25, input
);
1743 retval
.stop
= input
.LT(-1);
1745 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
1746 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
1750 catch (RecognitionException e
) {
1759 public static class notOp_return
extends ParserRuleReturnScope
{
1761 public Object
getTree() { return tree
; }
1764 public final QueryParser
.notOp_return
notOp() throws RecognitionException
{
1765 QueryParser
.notOp_return retval
= new QueryParser
.notOp_return();
1766 retval
.start
= input
.LT(1);
1768 CommonTree root_0
= null;
1770 Token char_literal44
=null;
1774 CommonTree char_literal44_tree
=null;
1775 CommonTree NOT45_tree
=null;
1776 CommonTree WS46_tree
=null;
1780 int LA27_0
= input
.LA(1);
1782 if ( (LA27_0
==MINUS
) ) {
1785 else if ( (LA27_0
==NOT
) ) {
1789 NoViableAltException nvae
=
1790 new NoViableAltException("", 27, 0, input
);
1797 root_0
= (CommonTree
)adaptor
.nil();
1799 char_literal44
=(Token
)match(input
,MINUS
,FOLLOW_MINUS_in_notOp789
);
1800 char_literal44_tree
= (CommonTree
)adaptor
.create(char_literal44
);
1801 adaptor
.addChild(root_0
, char_literal44_tree
);
1807 root_0
= (CommonTree
)adaptor
.nil();
1809 NOT45
=(Token
)match(input
,NOT
,FOLLOW_NOT_in_notOp795
);
1810 NOT45_tree
= (CommonTree
)adaptor
.create(NOT45
);
1811 adaptor
.addChild(root_0
, NOT45_tree
);
1817 int LA26_0
= input
.LA(1);
1819 if ( (LA26_0
==WS
) ) {
1826 WS46
=(Token
)match(input
,WS
,FOLLOW_WS_in_notOp797
);
1827 WS46_tree
= (CommonTree
)adaptor
.create(WS46
);
1828 adaptor
.addChild(root_0
, WS46_tree
);
1834 if ( cnt26
>= 1 ) break loop26
;
1835 EarlyExitException eee
=
1836 new EarlyExitException(26, input
);
1846 retval
.stop
= input
.LT(-1);
1848 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
1849 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
1853 catch (RecognitionException e
) {
1862 public static class sep_return
extends ParserRuleReturnScope
{
1864 public Object
getTree() { return tree
; }
1867 public final QueryParser
.sep_return
sep() throws RecognitionException
{
1868 QueryParser
.sep_return retval
= new QueryParser
.sep_return();
1869 retval
.start
= input
.LT(1);
1871 CommonTree root_0
= null;
1877 CommonTree WS47_tree
=null;
1878 CommonTree COMMA48_tree
=null;
1879 CommonTree WS49_tree
=null;
1883 root_0
= (CommonTree
)adaptor
.nil();
1888 int LA28_0
= input
.LA(1);
1890 if ( (LA28_0
==WS
) ) {
1897 WS47
=(Token
)match(input
,WS
,FOLLOW_WS_in_sep812
);
1898 WS47_tree
= (CommonTree
)adaptor
.create(WS47
);
1899 adaptor
.addChild(root_0
, WS47_tree
);
1909 COMMA48
=(Token
)match(input
,COMMA
,FOLLOW_COMMA_in_sep815
);
1910 COMMA48_tree
= (CommonTree
)adaptor
.create(COMMA48
);
1911 adaptor
.addChild(root_0
, COMMA48_tree
);
1916 int LA29_0
= input
.LA(1);
1918 if ( (LA29_0
==WS
) ) {
1925 WS49
=(Token
)match(input
,WS
,FOLLOW_WS_in_sep817
);
1926 WS49_tree
= (CommonTree
)adaptor
.create(WS49
);
1927 adaptor
.addChild(root_0
, WS49_tree
);
1939 retval
.stop
= input
.LT(-1);
1941 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
1942 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
1946 catch (RecognitionException e
) {
1955 public static class composite_return
extends ParserRuleReturnScope
{
1957 public Object
getTree() { return tree
; }
1960 public final QueryParser
.composite_return
composite() throws RecognitionException
{
1961 QueryParser
.composite_return retval
= new QueryParser
.composite_return();
1962 retval
.start
= input
.LT(1);
1964 CommonTree root_0
= null;
1966 Token LPAREN50
=null;
1969 Token RPAREN54
=null;
1970 QueryParser
.expression_return expression52
= null;
1972 CommonTree LPAREN50_tree
=null;
1973 CommonTree WS51_tree
=null;
1974 CommonTree WS53_tree
=null;
1975 CommonTree RPAREN54_tree
=null;
1976 RewriteRuleTokenStream stream_LPAREN
=new RewriteRuleTokenStream(adaptor
,"token LPAREN");
1977 RewriteRuleTokenStream stream_RPAREN
=new RewriteRuleTokenStream(adaptor
,"token RPAREN");
1978 RewriteRuleTokenStream stream_WS
=new RewriteRuleTokenStream(adaptor
,"token WS");
1979 RewriteRuleSubtreeStream stream_expression
=new RewriteRuleSubtreeStream(adaptor
,"rule expression");
1982 LPAREN50
=(Token
)match(input
,LPAREN
,FOLLOW_LPAREN_in_composite833
);
1983 stream_LPAREN
.add(LPAREN50
);
1988 int LA30_0
= input
.LA(1);
1990 if ( (LA30_0
==WS
) ) {
1997 WS51
=(Token
)match(input
,WS
,FOLLOW_WS_in_composite835
);
1998 stream_WS
.add(WS51
);
2008 pushFollow(FOLLOW_expression_in_composite838
);
2009 expression52
=expression();
2013 stream_expression
.add(expression52
.getTree());
2017 int LA31_0
= input
.LA(1);
2019 if ( (LA31_0
==WS
) ) {
2026 WS53
=(Token
)match(input
,WS
,FOLLOW_WS_in_composite840
);
2027 stream_WS
.add(WS53
);
2037 RPAREN54
=(Token
)match(input
,RPAREN
,FOLLOW_RPAREN_in_composite843
);
2038 stream_RPAREN
.add(RPAREN54
);
2040 retval
.tree
= root_0
;
2041 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
2043 root_0
= (CommonTree
)adaptor
.nil();
2045 adaptor
.addChild(root_0
, stream_expression
.nextTree());
2049 retval
.tree
= root_0
;
2052 retval
.stop
= input
.LT(-1);
2054 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
2055 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
2059 catch (RecognitionException e
) {
2068 public static class item_return
extends ParserRuleReturnScope
{
2070 public Object
getTree() { return tree
; }
2073 public final QueryParser
.item_return
item() throws RecognitionException
{
2074 QueryParser
.item_return retval
= new QueryParser
.item_return();
2075 retval
.start
= input
.LT(1);
2077 CommonTree root_0
= null;
2080 Token REWRITE57
=null;
2081 QueryParser
.value_return value56
= null;
2083 QueryParser
.value_return value58
= null;
2085 QueryParser
.value_return value59
= null;
2087 CommonTree FIX55_tree
=null;
2088 CommonTree REWRITE57_tree
=null;
2089 RewriteRuleTokenStream stream_REWRITE
=new RewriteRuleTokenStream(adaptor
,"token REWRITE");
2090 RewriteRuleTokenStream stream_FIX
=new RewriteRuleTokenStream(adaptor
,"token FIX");
2091 RewriteRuleSubtreeStream stream_value
=new RewriteRuleSubtreeStream(adaptor
,"rule value");
2094 switch ( input
.LA(1) ) {
2112 NoViableAltException nvae
=
2113 new NoViableAltException("", 32, 0, input
);
2121 FIX55
=(Token
)match(input
,FIX
,FOLLOW_FIX_in_item863
);
2122 stream_FIX
.add(FIX55
);
2124 pushFollow(FOLLOW_value_in_item865
);
2129 stream_value
.add(value56
.getTree());
2131 retval
.tree
= root_0
;
2132 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
2134 root_0
= (CommonTree
)adaptor
.nil();
2137 CommonTree root_1
= (CommonTree
)adaptor
.nil();
2138 root_1
= (CommonTree
)adaptor
.becomeRoot((CommonTree
)adaptor
.create(LITERAL
, "LITERAL"), root_1
);
2140 adaptor
.addChild(root_1
, stream_value
.nextTree());
2142 adaptor
.addChild(root_0
, root_1
);
2147 retval
.tree
= root_0
;
2152 REWRITE57
=(Token
)match(input
,REWRITE
,FOLLOW_REWRITE_in_item879
);
2153 stream_REWRITE
.add(REWRITE57
);
2155 pushFollow(FOLLOW_value_in_item881
);
2160 stream_value
.add(value58
.getTree());
2162 retval
.tree
= root_0
;
2163 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
2165 root_0
= (CommonTree
)adaptor
.nil();
2168 CommonTree root_1
= (CommonTree
)adaptor
.nil();
2169 root_1
= (CommonTree
)adaptor
.becomeRoot((CommonTree
)adaptor
.create(FUZZY
, "FUZZY"), root_1
);
2171 adaptor
.addChild(root_1
, stream_value
.nextTree());
2173 adaptor
.addChild(root_0
, root_1
);
2178 retval
.tree
= root_0
;
2183 pushFollow(FOLLOW_value_in_item895
);
2188 stream_value
.add(value59
.getTree());
2190 retval
.tree
= root_0
;
2191 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
2193 root_0
= (CommonTree
)adaptor
.nil();
2195 adaptor
.addChild(root_0
, stream_value
.nextTree());
2199 retval
.tree
= root_0
;
2204 retval
.stop
= input
.LT(-1);
2206 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
2207 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
2211 catch (RecognitionException e
) {
2220 public static class value_return
extends ParserRuleReturnScope
{
2222 public Object
getTree() { return tree
; }
2225 public final QueryParser
.value_return
value() throws RecognitionException
{
2226 QueryParser
.value_return retval
= new QueryParser
.value_return();
2227 retval
.start
= input
.LT(1);
2229 CommonTree root_0
= null;
2231 QueryParser
.text_return text60
= null;
2233 QueryParser
.phrase_return phrase61
= null;
2235 RewriteRuleSubtreeStream stream_phrase
=new RewriteRuleSubtreeStream(adaptor
,"rule phrase");
2236 RewriteRuleSubtreeStream stream_text
=new RewriteRuleSubtreeStream(adaptor
,"rule text");
2239 int LA33_0
= input
.LA(1);
2241 if ( (LA33_0
==TEXT
) ) {
2244 else if ( (LA33_0
==QUOTE
) ) {
2248 NoViableAltException nvae
=
2249 new NoViableAltException("", 33, 0, input
);
2256 pushFollow(FOLLOW_text_in_value913
);
2261 stream_text
.add(text60
.getTree());
2263 retval
.tree
= root_0
;
2264 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
2266 root_0
= (CommonTree
)adaptor
.nil();
2269 CommonTree root_1
= (CommonTree
)adaptor
.nil();
2270 root_1
= (CommonTree
)adaptor
.becomeRoot((CommonTree
)adaptor
.create(VALUE
, "VALUE"), root_1
);
2272 adaptor
.addChild(root_1
, (CommonTree
)adaptor
.create(TEXT
, "TEXT"));
2273 adaptor
.addChild(root_1
, stream_text
.nextTree());
2275 adaptor
.addChild(root_0
, root_1
);
2280 retval
.tree
= root_0
;
2285 pushFollow(FOLLOW_phrase_in_value929
);
2290 stream_phrase
.add(phrase61
.getTree());
2292 retval
.tree
= root_0
;
2293 RewriteRuleSubtreeStream stream_retval
=new RewriteRuleSubtreeStream(adaptor
,"rule retval",retval
!=null?retval
.tree
:null);
2295 root_0
= (CommonTree
)adaptor
.nil();
2298 CommonTree root_1
= (CommonTree
)adaptor
.nil();
2299 root_1
= (CommonTree
)adaptor
.becomeRoot((CommonTree
)adaptor
.create(VALUE
, "VALUE"), root_1
);
2301 adaptor
.addChild(root_1
, (CommonTree
)adaptor
.create(STRING
, "STRING"));
2302 adaptor
.addChild(root_1
, stream_phrase
.nextTree());
2304 adaptor
.addChild(root_0
, root_1
);
2309 retval
.tree
= root_0
;
2314 retval
.stop
= input
.LT(-1);
2316 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
2317 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
2321 catch (RecognitionException e
) {
2330 public static class text_return
extends ParserRuleReturnScope
{
2332 public Object
getTree() { return tree
; }
2335 public final QueryParser
.text_return
text() throws RecognitionException
{
2336 QueryParser
.text_return retval
= new QueryParser
.text_return();
2337 retval
.start
= input
.LT(1);
2339 CommonTree root_0
= null;
2343 CommonTree TEXT62_tree
=null;
2347 root_0
= (CommonTree
)adaptor
.nil();
2349 TEXT62
=(Token
)match(input
,TEXT
,FOLLOW_TEXT_in_text953
);
2350 TEXT62_tree
= (CommonTree
)adaptor
.create(TEXT62
);
2351 adaptor
.addChild(root_0
, TEXT62_tree
);
2355 retval
.stop
= input
.LT(-1);
2357 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
2358 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
2362 catch (RecognitionException e
) {
2371 public static class phrase_return
extends ParserRuleReturnScope
{
2373 public Object
getTree() { return tree
; }
2376 public final QueryParser
.phrase_return
phrase() throws RecognitionException
{
2377 QueryParser
.phrase_return retval
= new QueryParser
.phrase_return();
2378 retval
.start
= input
.LT(1);
2380 CommonTree root_0
= null;
2386 CommonTree QUOTE63_tree
=null;
2387 CommonTree set64_tree
=null;
2388 CommonTree QUOTE65_tree
=null;
2392 root_0
= (CommonTree
)adaptor
.nil();
2394 QUOTE63
=(Token
)match(input
,QUOTE
,FOLLOW_QUOTE_in_phrase967
);
2395 QUOTE63_tree
= (CommonTree
)adaptor
.create(QUOTE63
);
2396 adaptor
.addChild(root_0
, QUOTE63_tree
);
2401 int LA34_0
= input
.LA(1);
2403 if ( ((LA34_0
>=ARGS
&& LA34_0
<=TEXT
)||(LA34_0
>=UNICODE_ESC
&& LA34_0
<=EXCLAMATION
)) ) {
2410 set64
=(Token
)input
.LT(1);
2411 if ( (input
.LA(1)>=ARGS
&& input
.LA(1)<=TEXT
)||(input
.LA(1)>=UNICODE_ESC
&& input
.LA(1)<=EXCLAMATION
) ) {
2413 adaptor
.addChild(root_0
, (CommonTree
)adaptor
.create(set64
));
2414 state
.errorRecovery
=false;
2417 MismatchedSetException mse
= new MismatchedSetException(null,input
);
2429 QUOTE65
=(Token
)match(input
,QUOTE
,FOLLOW_QUOTE_in_phrase973
);
2430 QUOTE65_tree
= (CommonTree
)adaptor
.create(QUOTE65
);
2431 adaptor
.addChild(root_0
, QUOTE65_tree
);
2435 retval
.stop
= input
.LT(-1);
2437 retval
.tree
= (CommonTree
)adaptor
.rulePostProcessing(root_0
);
2438 adaptor
.setTokenBoundaries(retval
.tree
, retval
.start
, retval
.stop
);
2442 catch (RecognitionException e
) {
2451 protected DFA4 dfa4
= new DFA4(this);
2452 protected DFA6 dfa6
= new DFA6(this);
2453 protected DFA5 dfa5
= new DFA5(this);
2454 protected DFA9 dfa9
= new DFA9(this);
2455 protected DFA8 dfa8
= new DFA8(this);
2456 protected DFA11 dfa11
= new DFA11(this);
2457 protected DFA10 dfa10
= new DFA10(this);
2458 protected DFA14 dfa14
= new DFA14(this);
2459 static final String DFA4_eotS
=
2461 static final String DFA4_eofS
=
2463 static final String DFA4_minS
=
2465 static final String DFA4_maxS
=
2467 static final String DFA4_acceptS
=
2469 static final String DFA4_specialS
=
2471 static final String
[] DFA4_transitionS
= {
2472 "\1\1\7\uffff\1\3\3\uffff\1\3\1\uffff\4\3\4\uffff\1\3",
2473 "\1\1\7\uffff\1\3\3\uffff\1\3\1\uffff\4\3\4\uffff\1\3",
2478 static final short[] DFA4_eot
= DFA
.unpackEncodedString(DFA4_eotS
);
2479 static final short[] DFA4_eof
= DFA
.unpackEncodedString(DFA4_eofS
);
2480 static final char[] DFA4_min
= DFA
.unpackEncodedStringToUnsignedChars(DFA4_minS
);
2481 static final char[] DFA4_max
= DFA
.unpackEncodedStringToUnsignedChars(DFA4_maxS
);
2482 static final short[] DFA4_accept
= DFA
.unpackEncodedString(DFA4_acceptS
);
2483 static final short[] DFA4_special
= DFA
.unpackEncodedString(DFA4_specialS
);
2484 static final short[][] DFA4_transition
;
2487 int numStates
= DFA4_transitionS
.length
;
2488 DFA4_transition
= new short[numStates
][];
2489 for (int i
=0; i
<numStates
; i
++) {
2490 DFA4_transition
[i
] = DFA
.unpackEncodedString(DFA4_transitionS
[i
]);
2494 class DFA4
extends DFA
{
2496 public DFA4(BaseRecognizer recognizer
) {
2497 this.recognizer
= recognizer
;
2498 this.decisionNumber
= 4;
2499 this.eot
= DFA4_eot
;
2500 this.eof
= DFA4_eof
;
2501 this.min
= DFA4_min
;
2502 this.max
= DFA4_max
;
2503 this.accept
= DFA4_accept
;
2504 this.special
= DFA4_special
;
2505 this.transition
= DFA4_transition
;
2507 public String
getDescription() {
2508 return "68:1: query : ( ( WS )* EOF -> ^( EMPTY ) | ( WS )* expression ( WS )* EOF -> expression );";
2511 static final String DFA6_eotS
=
2513 static final String DFA6_eofS
=
2515 static final String DFA6_minS
=
2517 static final String DFA6_maxS
=
2518 "\1\31\1\32\2\uffff";
2519 static final String DFA6_acceptS
=
2521 static final String DFA6_specialS
=
2523 static final String
[] DFA6_transitionS
= {
2524 "\1\1\10\uffff\1\2",
2525 "\1\1\10\uffff\1\2\1\3",
2530 static final short[] DFA6_eot
= DFA
.unpackEncodedString(DFA6_eotS
);
2531 static final short[] DFA6_eof
= DFA
.unpackEncodedString(DFA6_eofS
);
2532 static final char[] DFA6_min
= DFA
.unpackEncodedStringToUnsignedChars(DFA6_minS
);
2533 static final char[] DFA6_max
= DFA
.unpackEncodedStringToUnsignedChars(DFA6_maxS
);
2534 static final short[] DFA6_accept
= DFA
.unpackEncodedString(DFA6_acceptS
);
2535 static final short[] DFA6_special
= DFA
.unpackEncodedString(DFA6_specialS
);
2536 static final short[][] DFA6_transition
;
2539 int numStates
= DFA6_transitionS
.length
;
2540 DFA6_transition
= new short[numStates
][];
2541 for (int i
=0; i
<numStates
; i
++) {
2542 DFA6_transition
[i
] = DFA
.unpackEncodedString(DFA6_transitionS
[i
]);
2546 class DFA6
extends DFA
{
2548 public DFA6(BaseRecognizer recognizer
) {
2549 this.recognizer
= recognizer
;
2550 this.decisionNumber
= 6;
2551 this.eot
= DFA6_eot
;
2552 this.eof
= DFA6_eof
;
2553 this.min
= DFA6_min
;
2554 this.max
= DFA6_max
;
2555 this.accept
= DFA6_accept
;
2556 this.special
= DFA6_special
;
2557 this.transition
= DFA6_transition
;
2559 public String
getDescription() {
2560 return "76:16: ( -> sequence | ( andOp sequence )+ -> ^( CONJUNCTION ( sequence )+ ) )";
2563 static final String DFA5_eotS
=
2565 static final String DFA5_eofS
=
2567 static final String DFA5_minS
=
2569 static final String DFA5_maxS
=
2570 "\1\31\1\32\2\uffff";
2571 static final String DFA5_acceptS
=
2573 static final String DFA5_specialS
=
2575 static final String
[] DFA5_transitionS
= {
2576 "\1\1\10\uffff\1\2",
2577 "\1\1\10\uffff\1\2\1\3",
2582 static final short[] DFA5_eot
= DFA
.unpackEncodedString(DFA5_eotS
);
2583 static final short[] DFA5_eof
= DFA
.unpackEncodedString(DFA5_eofS
);
2584 static final char[] DFA5_min
= DFA
.unpackEncodedStringToUnsignedChars(DFA5_minS
);
2585 static final char[] DFA5_max
= DFA
.unpackEncodedStringToUnsignedChars(DFA5_maxS
);
2586 static final short[] DFA5_accept
= DFA
.unpackEncodedString(DFA5_acceptS
);
2587 static final short[] DFA5_special
= DFA
.unpackEncodedString(DFA5_specialS
);
2588 static final short[][] DFA5_transition
;
2591 int numStates
= DFA5_transitionS
.length
;
2592 DFA5_transition
= new short[numStates
][];
2593 for (int i
=0; i
<numStates
; i
++) {
2594 DFA5_transition
[i
] = DFA
.unpackEncodedString(DFA5_transitionS
[i
]);
2598 class DFA5
extends DFA
{
2600 public DFA5(BaseRecognizer recognizer
) {
2601 this.recognizer
= recognizer
;
2602 this.decisionNumber
= 5;
2603 this.eot
= DFA5_eot
;
2604 this.eof
= DFA5_eof
;
2605 this.min
= DFA5_min
;
2606 this.max
= DFA5_max
;
2607 this.accept
= DFA5_accept
;
2608 this.special
= DFA5_special
;
2609 this.transition
= DFA5_transition
;
2611 public String
getDescription() {
2612 return "()+ loopback of 78:11: ( andOp sequence )+";
2615 static final String DFA9_eotS
=
2617 static final String DFA9_eofS
=
2619 static final String DFA9_minS
=
2621 static final String DFA9_maxS
=
2622 "\1\31\1\46\2\uffff";
2623 static final String DFA9_acceptS
=
2625 static final String DFA9_specialS
=
2627 static final String
[] DFA9_transitionS
= {
2628 "\1\1\10\uffff\1\2",
2629 "\1\1\7\uffff\1\3\2\2\1\uffff\1\3\1\uffff\4\3\4\uffff\1\3",
2634 static final short[] DFA9_eot
= DFA
.unpackEncodedString(DFA9_eotS
);
2635 static final short[] DFA9_eof
= DFA
.unpackEncodedString(DFA9_eofS
);
2636 static final char[] DFA9_min
= DFA
.unpackEncodedStringToUnsignedChars(DFA9_minS
);
2637 static final char[] DFA9_max
= DFA
.unpackEncodedStringToUnsignedChars(DFA9_maxS
);
2638 static final short[] DFA9_accept
= DFA
.unpackEncodedString(DFA9_acceptS
);
2639 static final short[] DFA9_special
= DFA
.unpackEncodedString(DFA9_specialS
);
2640 static final short[][] DFA9_transition
;
2643 int numStates
= DFA9_transitionS
.length
;
2644 DFA9_transition
= new short[numStates
][];
2645 for (int i
=0; i
<numStates
; i
++) {
2646 DFA9_transition
[i
] = DFA
.unpackEncodedString(DFA9_transitionS
[i
]);
2650 class DFA9
extends DFA
{
2652 public DFA9(BaseRecognizer recognizer
) {
2653 this.recognizer
= recognizer
;
2654 this.decisionNumber
= 9;
2655 this.eot
= DFA9_eot
;
2656 this.eof
= DFA9_eof
;
2657 this.min
= DFA9_min
;
2658 this.max
= DFA9_max
;
2659 this.accept
= DFA9_accept
;
2660 this.special
= DFA9_special
;
2661 this.transition
= DFA9_transition
;
2663 public String
getDescription() {
2664 return "85:14: ( -> factor | ( ( WS )+ factor )+ -> ^( SEQUENCE ( factor )+ ) )";
2667 static final String DFA8_eotS
=
2669 static final String DFA8_eofS
=
2671 static final String DFA8_minS
=
2673 static final String DFA8_maxS
=
2674 "\1\31\1\46\2\uffff";
2675 static final String DFA8_acceptS
=
2677 static final String DFA8_specialS
=
2679 static final String
[] DFA8_transitionS
= {
2680 "\1\1\10\uffff\1\2",
2681 "\1\1\7\uffff\1\3\2\2\1\uffff\1\3\1\uffff\4\3\4\uffff\1\3",
2686 static final short[] DFA8_eot
= DFA
.unpackEncodedString(DFA8_eotS
);
2687 static final short[] DFA8_eof
= DFA
.unpackEncodedString(DFA8_eofS
);
2688 static final char[] DFA8_min
= DFA
.unpackEncodedStringToUnsignedChars(DFA8_minS
);
2689 static final char[] DFA8_max
= DFA
.unpackEncodedStringToUnsignedChars(DFA8_maxS
);
2690 static final short[] DFA8_accept
= DFA
.unpackEncodedString(DFA8_acceptS
);
2691 static final short[] DFA8_special
= DFA
.unpackEncodedString(DFA8_specialS
);
2692 static final short[][] DFA8_transition
;
2695 int numStates
= DFA8_transitionS
.length
;
2696 DFA8_transition
= new short[numStates
][];
2697 for (int i
=0; i
<numStates
; i
++) {
2698 DFA8_transition
[i
] = DFA
.unpackEncodedString(DFA8_transitionS
[i
]);
2702 class DFA8
extends DFA
{
2704 public DFA8(BaseRecognizer recognizer
) {
2705 this.recognizer
= recognizer
;
2706 this.decisionNumber
= 8;
2707 this.eot
= DFA8_eot
;
2708 this.eof
= DFA8_eof
;
2709 this.min
= DFA8_min
;
2710 this.max
= DFA8_max
;
2711 this.accept
= DFA8_accept
;
2712 this.special
= DFA8_special
;
2713 this.transition
= DFA8_transition
;
2715 public String
getDescription() {
2716 return "()+ loopback of 87:11: ( ( WS )+ factor )+";
2719 static final String DFA11_eotS
=
2721 static final String DFA11_eofS
=
2723 static final String DFA11_minS
=
2725 static final String DFA11_maxS
=
2726 "\1\31\1\46\2\uffff";
2727 static final String DFA11_acceptS
=
2729 static final String DFA11_specialS
=
2731 static final String
[] DFA11_transitionS
= {
2732 "\1\1\10\uffff\1\2",
2733 "\1\1\7\uffff\3\2\1\3\1\2\1\uffff\4\2\4\uffff\1\2",
2738 static final short[] DFA11_eot
= DFA
.unpackEncodedString(DFA11_eotS
);
2739 static final short[] DFA11_eof
= DFA
.unpackEncodedString(DFA11_eofS
);
2740 static final char[] DFA11_min
= DFA
.unpackEncodedStringToUnsignedChars(DFA11_minS
);
2741 static final char[] DFA11_max
= DFA
.unpackEncodedStringToUnsignedChars(DFA11_maxS
);
2742 static final short[] DFA11_accept
= DFA
.unpackEncodedString(DFA11_acceptS
);
2743 static final short[] DFA11_special
= DFA
.unpackEncodedString(DFA11_specialS
);
2744 static final short[][] DFA11_transition
;
2747 int numStates
= DFA11_transitionS
.length
;
2748 DFA11_transition
= new short[numStates
][];
2749 for (int i
=0; i
<numStates
; i
++) {
2750 DFA11_transition
[i
] = DFA
.unpackEncodedString(DFA11_transitionS
[i
]);
2754 class DFA11
extends DFA
{
2756 public DFA11(BaseRecognizer recognizer
) {
2757 this.recognizer
= recognizer
;
2758 this.decisionNumber
= 11;
2759 this.eot
= DFA11_eot
;
2760 this.eof
= DFA11_eof
;
2761 this.min
= DFA11_min
;
2762 this.max
= DFA11_max
;
2763 this.accept
= DFA11_accept
;
2764 this.special
= DFA11_special
;
2765 this.transition
= DFA11_transition
;
2767 public String
getDescription() {
2768 return "94:12: ( -> term | ( orOp term )+ -> ^( DISJUNCTION ( term )+ ) )";
2771 static final String DFA10_eotS
=
2773 static final String DFA10_eofS
=
2775 static final String DFA10_minS
=
2777 static final String DFA10_maxS
=
2778 "\1\31\1\46\2\uffff";
2779 static final String DFA10_acceptS
=
2781 static final String DFA10_specialS
=
2783 static final String
[] DFA10_transitionS
= {
2784 "\1\1\10\uffff\1\2",
2785 "\1\1\7\uffff\3\2\1\3\1\2\1\uffff\4\2\4\uffff\1\2",
2790 static final short[] DFA10_eot
= DFA
.unpackEncodedString(DFA10_eotS
);
2791 static final short[] DFA10_eof
= DFA
.unpackEncodedString(DFA10_eofS
);
2792 static final char[] DFA10_min
= DFA
.unpackEncodedStringToUnsignedChars(DFA10_minS
);
2793 static final char[] DFA10_max
= DFA
.unpackEncodedStringToUnsignedChars(DFA10_maxS
);
2794 static final short[] DFA10_accept
= DFA
.unpackEncodedString(DFA10_acceptS
);
2795 static final short[] DFA10_special
= DFA
.unpackEncodedString(DFA10_specialS
);
2796 static final short[][] DFA10_transition
;
2799 int numStates
= DFA10_transitionS
.length
;
2800 DFA10_transition
= new short[numStates
][];
2801 for (int i
=0; i
<numStates
; i
++) {
2802 DFA10_transition
[i
] = DFA
.unpackEncodedString(DFA10_transitionS
[i
]);
2806 class DFA10
extends DFA
{
2808 public DFA10(BaseRecognizer recognizer
) {
2809 this.recognizer
= recognizer
;
2810 this.decisionNumber
= 10;
2811 this.eot
= DFA10_eot
;
2812 this.eof
= DFA10_eof
;
2813 this.min
= DFA10_min
;
2814 this.max
= DFA10_max
;
2815 this.accept
= DFA10_accept
;
2816 this.special
= DFA10_special
;
2817 this.transition
= DFA10_transition
;
2819 public String
getDescription() {
2820 return "()+ loopback of 96:11: ( orOp term )+";
2823 static final String DFA14_eotS
=
2825 static final String DFA14_eofS
=
2827 static final String DFA14_minS
=
2829 static final String DFA14_maxS
=
2830 "\1\31\1\46\2\uffff";
2831 static final String DFA14_acceptS
=
2833 static final String DFA14_specialS
=
2835 static final String
[] DFA14_transitionS
= {
2836 "\1\1\7\3\1\uffff\1\2",
2837 "\1\1\7\3\5\2\1\uffff\4\2\4\uffff\1\2",
2842 static final short[] DFA14_eot
= DFA
.unpackEncodedString(DFA14_eotS
);
2843 static final short[] DFA14_eof
= DFA
.unpackEncodedString(DFA14_eofS
);
2844 static final char[] DFA14_min
= DFA
.unpackEncodedStringToUnsignedChars(DFA14_minS
);
2845 static final char[] DFA14_max
= DFA
.unpackEncodedStringToUnsignedChars(DFA14_maxS
);
2846 static final short[] DFA14_accept
= DFA
.unpackEncodedString(DFA14_acceptS
);
2847 static final short[] DFA14_special
= DFA
.unpackEncodedString(DFA14_specialS
);
2848 static final short[][] DFA14_transition
;
2851 int numStates
= DFA14_transitionS
.length
;
2852 DFA14_transition
= new short[numStates
][];
2853 for (int i
=0; i
<numStates
; i
++) {
2854 DFA14_transition
[i
] = DFA
.unpackEncodedString(DFA14_transitionS
[i
]);
2858 class DFA14
extends DFA
{
2860 public DFA14(BaseRecognizer recognizer
) {
2861 this.recognizer
= recognizer
;
2862 this.decisionNumber
= 14;
2863 this.eot
= DFA14_eot
;
2864 this.eof
= DFA14_eof
;
2865 this.min
= DFA14_min
;
2866 this.max
= DFA14_max
;
2867 this.accept
= DFA14_accept
;
2868 this.special
= DFA14_special
;
2869 this.transition
= DFA14_transition
;
2871 public String
getDescription() {
2872 return "120:16: ( -> ^( HAS GLOBAL comparable ) | comparator arg -> ^( comparator comparable arg ) )";
2876 public static final BitSet FOLLOW_WS_in_query145
= new BitSet(new long[]{0x0000000000010000L
});
2877 public static final BitSet FOLLOW_EOF_in_query148
= new BitSet(new long[]{0x0000000000000002L
});
2878 public static final BitSet FOLLOW_WS_in_query177
= new BitSet(new long[]{0x00000043D1010000L
});
2879 public static final BitSet FOLLOW_expression_in_query180
= new BitSet(new long[]{0x0000000000010000L
});
2880 public static final BitSet FOLLOW_WS_in_query182
= new BitSet(new long[]{0x0000000000010000L
});
2881 public static final BitSet FOLLOW_EOF_in_query185
= new BitSet(new long[]{0x0000000000000002L
});
2882 public static final BitSet FOLLOW_sequence_in_expression208
= new BitSet(new long[]{0x0000000000010002L
});
2883 public static final BitSet FOLLOW_andOp_in_expression245
= new BitSet(new long[]{0x00000043D1000000L
});
2884 public static final BitSet FOLLOW_sequence_in_expression247
= new BitSet(new long[]{0x00000043D1010002L
});
2885 public static final BitSet FOLLOW_factor_in_sequence285
= new BitSet(new long[]{0x0000000000010002L
});
2886 public static final BitSet FOLLOW_WS_in_sequence321
= new BitSet(new long[]{0x00000043D1010000L
});
2887 public static final BitSet FOLLOW_factor_in_sequence324
= new BitSet(new long[]{0x0000000000010002L
});
2888 public static final BitSet FOLLOW_term_in_factor365
= new BitSet(new long[]{0x0000000000010002L
});
2889 public static final BitSet FOLLOW_orOp_in_factor397
= new BitSet(new long[]{0x00000043D1000000L
});
2890 public static final BitSet FOLLOW_term_in_factor399
= new BitSet(new long[]{0x00000043D1010002L
});
2891 public static final BitSet FOLLOW_primitive_in_term433
= new BitSet(new long[]{0x0000000000000002L
});
2892 public static final BitSet FOLLOW_notOp_in_term439
= new BitSet(new long[]{0x00000003C1000000L
});
2893 public static final BitSet FOLLOW_primitive_in_term441
= new BitSet(new long[]{0x0000000000000002L
});
2894 public static final BitSet FOLLOW_restriction_in_primitive467
= new BitSet(new long[]{0x0000000000000002L
});
2895 public static final BitSet FOLLOW_composite_in_primitive473
= new BitSet(new long[]{0x0000000000000002L
});
2896 public static final BitSet FOLLOW_comparable_in_restriction490
= new BitSet(new long[]{0x0000000000FF0002L
});
2897 public static final BitSet FOLLOW_comparator_in_restriction525
= new BitSet(new long[]{0x00000003C1000000L
});
2898 public static final BitSet FOLLOW_arg_in_restriction527
= new BitSet(new long[]{0x0000000000000002L
});
2899 public static final BitSet FOLLOW_WS_in_comparator557
= new BitSet(new long[]{0x0000000000FF0000L
});
2900 public static final BitSet FOLLOW_LE_in_comparator563
= new BitSet(new long[]{0x0000000000010002L
});
2901 public static final BitSet FOLLOW_LESSTHAN_in_comparator569
= new BitSet(new long[]{0x0000000000010002L
});
2902 public static final BitSet FOLLOW_GE_in_comparator575
= new BitSet(new long[]{0x0000000000010002L
});
2903 public static final BitSet FOLLOW_GT_in_comparator581
= new BitSet(new long[]{0x0000000000010002L
});
2904 public static final BitSet FOLLOW_NE_in_comparator587
= new BitSet(new long[]{0x0000000000010002L
});
2905 public static final BitSet FOLLOW_EQ_in_comparator593
= new BitSet(new long[]{0x0000000000010002L
});
2906 public static final BitSet FOLLOW_HAS_in_comparator599
= new BitSet(new long[]{0x0000000000010002L
});
2907 public static final BitSet FOLLOW_WS_in_comparator602
= new BitSet(new long[]{0x0000000000010002L
});
2908 public static final BitSet FOLLOW_member_in_comparable624
= new BitSet(new long[]{0x0000000000000002L
});
2909 public static final BitSet FOLLOW_function_in_comparable630
= new BitSet(new long[]{0x0000000000000002L
});
2910 public static final BitSet FOLLOW_item_in_member645
= new BitSet(new long[]{0x0000000000000002L
});
2911 public static final BitSet FOLLOW_text_in_function662
= new BitSet(new long[]{0x0000000001000000L
});
2912 public static final BitSet FOLLOW_LPAREN_in_function664
= new BitSet(new long[]{0x00000003C3000000L
});
2913 public static final BitSet FOLLOW_arglist_in_function666
= new BitSet(new long[]{0x0000000002000000L
});
2914 public static final BitSet FOLLOW_RPAREN_in_function668
= new BitSet(new long[]{0x0000000000000002L
});
2915 public static final BitSet FOLLOW_arg_in_arglist703
= new BitSet(new long[]{0x0000000020010002L
});
2916 public static final BitSet FOLLOW_sep_in_arglist706
= new BitSet(new long[]{0x00000003C1000000L
});
2917 public static final BitSet FOLLOW_arg_in_arglist708
= new BitSet(new long[]{0x0000000020010002L
});
2918 public static final BitSet FOLLOW_comparable_in_arg729
= new BitSet(new long[]{0x0000000000000002L
});
2919 public static final BitSet FOLLOW_composite_in_arg735
= new BitSet(new long[]{0x0000000000000002L
});
2920 public static final BitSet FOLLOW_WS_in_andOp749
= new BitSet(new long[]{0x0000000004010000L
});
2921 public static final BitSet FOLLOW_AND_in_andOp752
= new BitSet(new long[]{0x0000000000010000L
});
2922 public static final BitSet FOLLOW_WS_in_andOp754
= new BitSet(new long[]{0x0000000000010002L
});
2923 public static final BitSet FOLLOW_WS_in_orOp769
= new BitSet(new long[]{0x0000000008010000L
});
2924 public static final BitSet FOLLOW_OR_in_orOp772
= new BitSet(new long[]{0x0000000000010000L
});
2925 public static final BitSet FOLLOW_WS_in_orOp774
= new BitSet(new long[]{0x0000000000010002L
});
2926 public static final BitSet FOLLOW_MINUS_in_notOp789
= new BitSet(new long[]{0x0000000000000002L
});
2927 public static final BitSet FOLLOW_NOT_in_notOp795
= new BitSet(new long[]{0x0000000000010000L
});
2928 public static final BitSet FOLLOW_WS_in_notOp797
= new BitSet(new long[]{0x0000000000010002L
});
2929 public static final BitSet FOLLOW_WS_in_sep812
= new BitSet(new long[]{0x0000000020010000L
});
2930 public static final BitSet FOLLOW_COMMA_in_sep815
= new BitSet(new long[]{0x0000000000010002L
});
2931 public static final BitSet FOLLOW_WS_in_sep817
= new BitSet(new long[]{0x0000000000010002L
});
2932 public static final BitSet FOLLOW_LPAREN_in_composite833
= new BitSet(new long[]{0x00000043D1010000L
});
2933 public static final BitSet FOLLOW_WS_in_composite835
= new BitSet(new long[]{0x00000043D1010000L
});
2934 public static final BitSet FOLLOW_expression_in_composite838
= new BitSet(new long[]{0x0000000002010000L
});
2935 public static final BitSet FOLLOW_WS_in_composite840
= new BitSet(new long[]{0x0000000002010000L
});
2936 public static final BitSet FOLLOW_RPAREN_in_composite843
= new BitSet(new long[]{0x0000000000000002L
});
2937 public static final BitSet FOLLOW_FIX_in_item863
= new BitSet(new long[]{0x00000003C0000000L
});
2938 public static final BitSet FOLLOW_value_in_item865
= new BitSet(new long[]{0x0000000000000002L
});
2939 public static final BitSet FOLLOW_REWRITE_in_item879
= new BitSet(new long[]{0x00000003C0000000L
});
2940 public static final BitSet FOLLOW_value_in_item881
= new BitSet(new long[]{0x0000000000000002L
});
2941 public static final BitSet FOLLOW_value_in_item895
= new BitSet(new long[]{0x0000000000000002L
});
2942 public static final BitSet FOLLOW_text_in_value913
= new BitSet(new long[]{0x0000000000000002L
});
2943 public static final BitSet FOLLOW_phrase_in_value929
= new BitSet(new long[]{0x0000000000000002L
});
2944 public static final BitSet FOLLOW_TEXT_in_text953
= new BitSet(new long[]{0x0000000000000002L
});
2945 public static final BitSet FOLLOW_QUOTE_in_phrase967
= new BitSet(new long[]{0x00007FFFFFFFFFF0L
});
2946 public static final BitSet FOLLOW_set_in_phrase969
= new BitSet(new long[]{0x00007FFFFFFFFFF0L
});
2947 public static final BitSet FOLLOW_QUOTE_in_phrase973
= new BitSet(new long[]{0x0000000000000002L
});