forked from devteam4509/vaeql
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVaeQueryLanguageTreeParser.c
More file actions
6669 lines (5325 loc) · 214 KB
/
VaeQueryLanguageTreeParser.c
File metadata and controls
6669 lines (5325 loc) · 214 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/** \file
* This C source file was generated by $ANTLR version 3.2 Sep 23, 2009 12:02:23
*
* - From the grammar source file : VaeQueryLanguageTreeParser.g
* - On : 2016-03-04 14:33:13
* - for the tree parser : VaeQueryLanguageTreeParserTreeParser *
* Editing it, at least manually, is not wise.
*
* C language generator and runtime by Jim Idle, jimi|hereisanat|idle|dotgoeshere|ws.
*
*
*/
// [The "BSD licence"]
// Copyright (c) 2005-2009 Jim Idle, Temporal Wave LLC
// http://www.temporal-wave.com
// http://www.linkedin.com/in/jimidle
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. The name of the author may not be used to endorse or promote products
// derived from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
// OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
// IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
// NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
/* =============================================================================
* This is what the grammar programmer asked us to put at the top of every file.
*/
#include "vaeql.h"
#define FUNCTION_ARG_LIST_SIZE 25
/* End of Header action.
* =============================================================================
*/
/* -----------------------------------------
* Include the ANTLR3 generated header file.
*/
#include "VaeQueryLanguageTreeParser.h"
/* ----------------------------------------- */
/* MACROS that hide the C interface implementations from the
* generated code, which makes it a little more understandable to the human eye.
* I am very much against using C pre-processor macros for function calls and bits
* of code as you cannot see what is happening when single stepping in debuggers
* and so on. The exception (in my book at least) is for generated code, where you are
* not maintaining it, but may wish to read and understand it. If you single step it, you know that input()
* hides some indirect calls, but is always referring to the input stream. This is
* probably more readable than ctx->input->istream->input(snarfle0->blarg) and allows me to rejig
* the runtime interfaces without changing the generated code too often, without
* confusing the reader of the generated output, who may not wish to know the gory
* details of the interface inheritance.
*/
#define CTX ctx
/* Aids in accessing scopes for grammar programmers
*/
#undef SCOPE_TYPE
#undef SCOPE_STACK
#undef SCOPE_TOP
#define SCOPE_TYPE(scope) pVaeQueryLanguageTreeParser_##scope##_SCOPE
#define SCOPE_STACK(scope) pVaeQueryLanguageTreeParser_##scope##Stack
#define SCOPE_TOP(scope) ctx->pVaeQueryLanguageTreeParser_##scope##Top
#define SCOPE_SIZE(scope) ctx->pVaeQueryLanguageTreeParser_##scope##Stack_limit
#define SCOPE_INSTANCE(scope, i) (ctx->SCOPE_STACK(scope)->get(ctx->SCOPE_STACK(scope),i))
/* Macros for accessing things in the parser
*/
#undef PARSER
#undef RECOGNIZER
#undef HAVEPARSEDRULE
#undef INPUT
#undef STRSTREAM
#undef HASEXCEPTION
#undef EXCEPTION
#undef MATCHT
#undef MATCHANYT
#undef FOLLOWSTACK
#undef FOLLOWPUSH
#undef FOLLOWPOP
#undef PRECOVER
#undef PREPORTERROR
#undef LA
#undef LT
#undef CONSTRUCTEX
#undef CONSUME
#undef MARK
#undef REWIND
#undef REWINDLAST
#undef PERRORRECOVERY
#undef HASFAILED
#undef FAILEDFLAG
#undef RECOVERFROMMISMATCHEDSET
#undef RECOVERFROMMISMATCHEDELEMENT
#undef BACKTRACKING
#undef ADAPTOR
#undef RULEMEMO
#undef SEEK
#undef INDEX
#undef DBG
#define PARSER ctx->pTreeParser
#define RECOGNIZER PARSER->rec
#define PSRSTATE RECOGNIZER->state
#define HAVEPARSEDRULE(r) RECOGNIZER->alreadyParsedRule(RECOGNIZER, r)
#define INPUT PARSER->ctnstream
#define ISTREAM INPUT->tnstream->istream
#define STRSTREAM INPUT->tnstream
#define HASEXCEPTION() (PSRSTATE->error == ANTLR3_TRUE)
#define EXCEPTION PSRSTATE->exception
#define MATCHT(t, fs) RECOGNIZER->match(RECOGNIZER, t, fs)
#define MATCHANYT() RECOGNIZER->matchAny(RECOGNIZER)
#define FOLLOWSTACK PSRSTATE->following
#define FOLLOWPUSH(x) FOLLOWSTACK->push(FOLLOWSTACK, ((void *)(&(x))), NULL)
#define FOLLOWPOP() FOLLOWSTACK->pop(FOLLOWSTACK)
#define PRECOVER() RECOGNIZER->recover(RECOGNIZER)
#define PREPORTERROR() RECOGNIZER->reportError(RECOGNIZER)
#define LA(n) ISTREAM->_LA(ISTREAM, n)
#define LT(n) INPUT->tnstream->_LT(INPUT->tnstream, n)
#define CONSTRUCTEX() RECOGNIZER->exConstruct(RECOGNIZER)
#define CONSUME() ISTREAM->consume(ISTREAM)
#define MARK() ISTREAM->mark(ISTREAM)
#define REWIND(m) ISTREAM->rewind(ISTREAM, m)
#define REWINDLAST() ISTREAM->rewindLast(ISTREAM)
#define PERRORRECOVERY PSRSTATE->errorRecovery
#define FAILEDFLAG PSRSTATE->failed
#define HASFAILED() (FAILEDFLAG == ANTLR3_TRUE)
#define BACKTRACKING PSRSTATE->backtracking
#define RECOVERFROMMISMATCHEDSET(s) RECOGNIZER->recoverFromMismatchedSet(RECOGNIZER, s)
#define RECOVERFROMMISMATCHEDELEMENT(e) RECOGNIZER->recoverFromMismatchedElement(RECOGNIZER, s)
#define ADAPTOR INPUT->adaptor
#define RULEMEMO PSRSTATE->ruleMemo
#define SEEK(n) ISTREAM->seek(ISTREAM, n)
#define INDEX() ISTREAM->index(ISTREAM)
#define DBG RECOGNIZER->debugger
#define TOKTEXT(tok, txt) tok, (pANTLR3_UINT8)txt
/* The 4 tokens defined below may well clash with your own #defines or token types. If so
* then for the present you must use different names for your defines as these are hard coded
* in the code generator. It would be better not to use such names internally, and maybe
* we can change this in a forthcoming release. I deliberately do not #undef these
* here as this will at least give you a redefined error somewhere if they clash.
*/
#define UP ANTLR3_TOKEN_UP
#define DOWN ANTLR3_TOKEN_DOWN
#define EOR ANTLR3_TOKEN_EOR
#define INVALID ANTLR3_TOKEN_INVALID
/* =============================================================================
* Functions to create and destroy scopes. First come the rule scopes, followed
* by the global declared scopes.
*/
/* ============================================================================= */
/* =============================================================================
* Start of recognizer
*/
/** \brief Table of all token names in symbolic order, mainly used for
* error reporting.
*/
pANTLR3_UINT8 VaeQueryLanguageTreeParserTokenNames[59+4]
= {
(pANTLR3_UINT8) "<invalid>", /* String to print to indicate an invalid token */
(pANTLR3_UINT8) "<EOR>",
(pANTLR3_UINT8) "<DOWN>",
(pANTLR3_UINT8) "<UP>",
(pANTLR3_UINT8) "NODE_ABSOLUTE",
(pANTLR3_UINT8) "NODE_FUNCTION",
(pANTLR3_UINT8) "NODE_IF",
(pANTLR3_UINT8) "NODE_PARENEXPR",
(pANTLR3_UINT8) "NODE_PATH",
(pANTLR3_UINT8) "NODE_PATHREF",
(pANTLR3_UINT8) "NODE_PREDICATE",
(pANTLR3_UINT8) "NODE_SQL",
(pANTLR3_UINT8) "NODE_STAR",
(pANTLR3_UINT8) "NODE_VALUE",
(pANTLR3_UINT8) "NODE_XPATHFUNCTION",
(pANTLR3_UINT8) "SPECIAL_NEXT",
(pANTLR3_UINT8) "SPECIAL_PREV",
(pANTLR3_UINT8) "DIV",
(pANTLR3_UINT8) "MULT",
(pANTLR3_UINT8) "SLASH",
(pANTLR3_UINT8) "STAR",
(pANTLR3_UINT8) "SQL",
(pANTLR3_UINT8) "AT",
(pANTLR3_UINT8) "XPATH_AXIS_SEP",
(pANTLR3_UINT8) "EQUALITY",
(pANTLR3_UINT8) "EQUALITY_ALT",
(pANTLR3_UINT8) "INEQUALITY",
(pANTLR3_UINT8) "INEQUALITY_ALT",
(pANTLR3_UINT8) "LESS",
(pANTLR3_UINT8) "LTE",
(pANTLR3_UINT8) "GREATER",
(pANTLR3_UINT8) "GTE",
(pANTLR3_UINT8) "AND",
(pANTLR3_UINT8) "OR",
(pANTLR3_UINT8) "XOR",
(pANTLR3_UINT8) "NOT",
(pANTLR3_UINT8) "ADD_TOK",
(pANTLR3_UINT8) "SUB",
(pANTLR3_UINT8) "MOD",
(pANTLR3_UINT8) "PIPE",
(pANTLR3_UINT8) "IFTRUE",
(pANTLR3_UINT8) "COLON",
(pANTLR3_UINT8) "PATHREF",
(pANTLR3_UINT8) "LBRACKET",
(pANTLR3_UINT8) "RBRACKET",
(pANTLR3_UINT8) "LPAREN",
(pANTLR3_UINT8) "RPAREN",
(pANTLR3_UINT8) "COMMA",
(pANTLR3_UINT8) "FUNCTION",
(pANTLR3_UINT8) "PERMALINK",
(pANTLR3_UINT8) "INT",
(pANTLR3_UINT8) "NAME",
(pANTLR3_UINT8) "DOT_STEP",
(pANTLR3_UINT8) "XPATH_AXES",
(pANTLR3_UINT8) "XPATH_FUNCTION",
(pANTLR3_UINT8) "AND_ALT",
(pANTLR3_UINT8) "OR_ALT",
(pANTLR3_UINT8) "XOR_ALT",
(pANTLR3_UINT8) "STRING",
(pANTLR3_UINT8) "FLOAT",
(pANTLR3_UINT8) "VARIABLE",
(pANTLR3_UINT8) "ESC_SEQ",
(pANTLR3_UINT8) "WS"
};
// Forward declare the locally static matching functions we have generated.
//
static VaeQueryLanguageTreeParser_start_return start (pVaeQueryLanguageTreeParser ctx);
static pANTLR3_STRING at (pVaeQueryLanguageTreeParser ctx);
static VaeQueryLanguageTreeParser_expr_return expr (pVaeQueryLanguageTreeParser ctx);
static pANTLR3_STRING evaledExpr (pVaeQueryLanguageTreeParser ctx);
static pANTLR3_STRING function (pVaeQueryLanguageTreeParser ctx);
static void expressionList (pVaeQueryLanguageTreeParser ctx);
static VaeQueryLanguageTreeParser_oper_return oper (pVaeQueryLanguageTreeParser ctx);
static pANTLR3_STRING path (pVaeQueryLanguageTreeParser ctx);
static pANTLR3_STRING piper (pVaeQueryLanguageTreeParser ctx);
static pANTLR3_STRING predicate (pVaeQueryLanguageTreeParser ctx);
static pANTLR3_STRING predicateExpr (pVaeQueryLanguageTreeParser ctx);
static pANTLR3_STRING predicateOper (pVaeQueryLanguageTreeParser ctx);
static pANTLR3_STRING predicatePath (pVaeQueryLanguageTreeParser ctx);
static pANTLR3_STRING predicateEqualityOper (pVaeQueryLanguageTreeParser ctx);
static pANTLR3_STRING predicateInequalityOper (pVaeQueryLanguageTreeParser ctx);
static pANTLR3_STRING predicateAndOper (pVaeQueryLanguageTreeParser ctx);
static pANTLR3_STRING predicateOrOper (pVaeQueryLanguageTreeParser ctx);
static pANTLR3_STRING predicateComparisonOper (pVaeQueryLanguageTreeParser ctx);
static pANTLR3_STRING predicateRangeOper (pVaeQueryLanguageTreeParser ctx);
static VaeQueryLanguageTreeParser_rangeFunction_return rangeFunction (pVaeQueryLanguageTreeParser ctx);
static VaeQueryLanguageTreeParser_rootExpr_return rootExpr (pVaeQueryLanguageTreeParser ctx);
static VaeQueryLanguageTreeParser_rootPath_return rootPath (pVaeQueryLanguageTreeParser ctx);
static pANTLR3_STRING slash (pVaeQueryLanguageTreeParser ctx);
static VaeQueryLanguageTreeParser_value_return value (pVaeQueryLanguageTreeParser ctx);
static pANTLR3_STRING variable (pVaeQueryLanguageTreeParser ctx);
static pANTLR3_STRING xpathExpr (pVaeQueryLanguageTreeParser ctx);
static pANTLR3_STRING xpathFunction (pVaeQueryLanguageTreeParser ctx);
static pANTLR3_STRING xpathFunctionExpression (pVaeQueryLanguageTreeParser ctx);
static void andOper (pVaeQueryLanguageTreeParser ctx);
static void orOper (pVaeQueryLanguageTreeParser ctx);
static void equalityOper (pVaeQueryLanguageTreeParser ctx);
static void inequalityOper (pVaeQueryLanguageTreeParser ctx);
static VaeQueryLanguageTreeParser_comparisonOper_return comparisonOper (pVaeQueryLanguageTreeParser ctx);
static void VaeQueryLanguageTreeParserFree(pVaeQueryLanguageTreeParser ctx);
/* For use in tree output where we are accumulating rule labels via label += ruleRef
* we need a function that knows how to free a return scope when the list is destroyed.
* We cannot just use ANTLR3_FREE because in debug tracking mode, this is a macro.
*/
static void ANTLR3_CDECL freeScope(void * scope)
{
ANTLR3_FREE(scope);
}
/** \brief Name of the grammar file that generated this code
*/
static const char fileName[] = "VaeQueryLanguageTreeParser.g";
/** \brief Return the name of the grammar file that generated this code.
*/
static const char * getGrammarFileName()
{
return fileName;
}
/** \brief Create a new VaeQueryLanguageTreeParser parser and return a context for it.
*
* \param[in] instream Pointer to an input stream interface.
*
* \return Pointer to new parser context upon success.
*/
ANTLR3_API pVaeQueryLanguageTreeParser
VaeQueryLanguageTreeParserNew (pANTLR3_COMMON_TREE_NODE_STREAM instream)
{
// See if we can create a new parser with the standard constructor
//
return VaeQueryLanguageTreeParserNewSSD(instream, NULL);
}
/** \brief Create a new VaeQueryLanguageTreeParser parser and return a context for it.
*
* \param[in] instream Pointer to an input stream interface.
*
* \return Pointer to new parser context upon success.
*/
ANTLR3_API pVaeQueryLanguageTreeParser
VaeQueryLanguageTreeParserNewSSD (pANTLR3_COMMON_TREE_NODE_STREAM instream, pANTLR3_RECOGNIZER_SHARED_STATE state)
{
pVaeQueryLanguageTreeParser ctx; /* Context structure we will build and return */
ctx = (pVaeQueryLanguageTreeParser) ANTLR3_CALLOC(1, sizeof(VaeQueryLanguageTreeParser));
if (ctx == NULL)
{
// Failed to allocate memory for parser context
//
return NULL;
}
/* -------------------------------------------------------------------
* Memory for basic structure is allocated, now to fill in
* the base ANTLR3 structures. We initialize the function pointers
* for the standard ANTLR3 parser function set, but upon return
* from here, the programmer may set the pointers to provide custom
* implementations of each function.
*
* We don't use the macros defined in VaeQueryLanguageTreeParser.h here, in order that you can get a sense
* of what goes where.
*/
/* Create a base Tree parser/recognizer, using the supplied tree node stream
*/
ctx->pTreeParser = antlr3TreeParserNewStream(ANTLR3_SIZE_HINT, instream, state);
/* Install the implementation of our VaeQueryLanguageTreeParser interface
*/
ctx->start = start;
ctx->at = at;
ctx->expr = expr;
ctx->evaledExpr = evaledExpr;
ctx->function = function;
ctx->expressionList = expressionList;
ctx->oper = oper;
ctx->path = path;
ctx->piper = piper;
ctx->predicate = predicate;
ctx->predicateExpr = predicateExpr;
ctx->predicateOper = predicateOper;
ctx->predicatePath = predicatePath;
ctx->predicateEqualityOper = predicateEqualityOper;
ctx->predicateInequalityOper = predicateInequalityOper;
ctx->predicateAndOper = predicateAndOper;
ctx->predicateOrOper = predicateOrOper;
ctx->predicateComparisonOper = predicateComparisonOper;
ctx->predicateRangeOper = predicateRangeOper;
ctx->rangeFunction = rangeFunction;
ctx->rootExpr = rootExpr;
ctx->rootPath = rootPath;
ctx->slash = slash;
ctx->value = value;
ctx->variable = variable;
ctx->xpathExpr = xpathExpr;
ctx->xpathFunction = xpathFunction;
ctx->xpathFunctionExpression = xpathFunctionExpression;
ctx->andOper = andOper;
ctx->orOper = orOper;
ctx->equalityOper = equalityOper;
ctx->inequalityOper = inequalityOper;
ctx->comparisonOper = comparisonOper;
ctx->free = VaeQueryLanguageTreeParserFree;
ctx->getGrammarFileName = getGrammarFileName;
/* Install the scope pushing methods.
*/
/* Install the token table
*/
PSRSTATE->tokenNames = VaeQueryLanguageTreeParserTokenNames;
/* Return the newly built parser to the caller
*/
return ctx;
}
/** Free the parser resources
*/
static void
VaeQueryLanguageTreeParserFree(pVaeQueryLanguageTreeParser ctx)
{
/* Free any scope memory
*/
// Free this parser
//
ctx->pTreeParser->free(ctx->pTreeParser);
ANTLR3_FREE(ctx);
/* Everything is released, so we can return
*/
return;
}
/** Return token names used by this tree parser
*
* The returned pointer is used as an index into the token names table (using the token
* number as the index).
*
* \return Pointer to first char * in the table.
*/
static pANTLR3_UINT8 *getTokenNames()
{
return VaeQueryLanguageTreeParserTokenNames;
}
char *functionArgList[FUNCTION_ARG_LIST_SIZE+1];
char functionArgCount;
int asBoolean(pANTLR3_STRING a) {
double dummy;
if (!strlen(a->chars)) {
return 0;
}
if (sscanf(a->chars, "%lf", &dummy)) {
return (dummy != 0);
}
return strcmp(a->chars, "");
}
int asInt(pANTLR3_STRING a) {
return atoi(a->chars);
}
double asNumber(pANTLR3_STRING a) {
return strtod(a->chars, NULL);
}
int bothNumbers(pANTLR3_STRING a, pANTLR3_STRING b) {
double dummy;
return (sscanf(a->chars, "%lf", &dummy) && sscanf(b->chars, "%lf", &dummy));
}
char *replace_str(char *str, char *orig, char *rep) {
static char buffer[1024];
char buffer2[1024];
char *p, *b = buffer, *b2 = buffer2;
strncpy(buffer, str, 1023);
do {
if(!(p = strstr(b, orig))) {
return buffer;
}
strncpy(buffer2, buffer, 1023);
sprintf(p, "%s%s", rep, b2+(p-buffer)+strlen(orig));
b += (p-buffer)+strlen(rep);
} while (1);
}
pANTLR3_STRING booleanResponse(int t, pANTLR3_BASE_TREE e) {
if (t) {
return e->strFactory->newStr(e->strFactory, "1");
} else {
return e->strFactory->newStr(e->strFactory, "0");
}
}
pANTLR3_STRING escapeApos(pANTLR3_STRING e) {
if (strstr(e->chars, "'")) {
e->set8(e, replace_str(replace_str(e->chars, "'", "'"), "'", "',\"'\",'"));
e->insert8(e, 0, "concat('");
e->append8(e, "')");
} else {
e->insert8(e, 0, "'");
e->append8(e, "'");
}
}
pANTLR3_STRING predicateResult(pANTLR3_STRING p1, pANTLR3_STRING p2, char *sym) {
if (!strlen(p1->chars)) {
return p1;
} else if (!strlen(p2->chars)) {
return p2;
} else {
p1->append8(p1, sym);
p1->appendS(p1, p2);
return p1;
}
}
pANTLR3_STRING newStr(pANTLR3_BASE_TREE e, char *c) {
return e->strFactory->newStr(e->strFactory, c);
}
pANTLR3_STRING numberResponse(double t, pANTLR3_BASE_TREE e) {
char buf[30];
sprintf(buf, "%lg", t);
return e->strFactory->newStr(e->strFactory, buf);
}
pANTLR3_STRING longResponse(long t, pANTLR3_BASE_TREE e) {
char buf[30];
sprintf(buf, "%ld", t);
return e->strFactory->newStr(e->strFactory, buf);
}
/* Declare the bitsets
*/
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_in_start62 */
static ANTLR3_BITWORD FOLLOW_expr_in_start62_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000) };
static ANTLR3_BITSET_LIST FOLLOW_expr_in_start62 = { FOLLOW_expr_in_start62_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_EOF_in_start64 */
static ANTLR3_BITWORD FOLLOW_EOF_in_start64_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_EOF_in_start64 = { FOLLOW_EOF_in_start64_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_AT_in_at90 */
static ANTLR3_BITWORD FOLLOW_AT_in_at90_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_AT_in_at90 = { FOLLOW_AT_in_at90_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_path_in_at94 */
static ANTLR3_BITWORD FOLLOW_path_in_at94_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_path_in_at94 = { FOLLOW_path_in_at94_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_XPATH_AXIS_SEP_in_at108 */
static ANTLR3_BITWORD FOLLOW_XPATH_AXIS_SEP_in_at108_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_XPATH_AXIS_SEP_in_at108 = { FOLLOW_XPATH_AXIS_SEP_in_at108_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_XPATH_AXES_in_at110 */
static ANTLR3_BITWORD FOLLOW_XPATH_AXES_in_at110_bits[] = { ANTLR3_UINT64_LIT(0x001E008000D9A430) };
static ANTLR3_BITSET_LIST FOLLOW_XPATH_AXES_in_at110 = { FOLLOW_XPATH_AXES_in_at110_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_path_in_at114 */
static ANTLR3_BITWORD FOLLOW_path_in_at114_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_path_in_at114 = { FOLLOW_path_in_at114_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_rootExpr_in_expr140 */
static ANTLR3_BITWORD FOLLOW_rootExpr_in_expr140_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_rootExpr_in_expr140 = { FOLLOW_rootExpr_in_expr140_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_rootPath_in_expr151 */
static ANTLR3_BITWORD FOLLOW_rootPath_in_expr151_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_rootPath_in_expr151 = { FOLLOW_rootPath_in_expr151_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_in_evaledExpr173 */
static ANTLR3_BITWORD FOLLOW_expr_in_evaledExpr173_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_expr_in_evaledExpr173 = { FOLLOW_expr_in_evaledExpr173_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_NODE_FUNCTION_in_function197 */
static ANTLR3_BITWORD FOLLOW_NODE_FUNCTION_in_function197_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_NODE_FUNCTION_in_function197 = { FOLLOW_NODE_FUNCTION_in_function197_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_FUNCTION_in_function199 */
static ANTLR3_BITWORD FOLLOW_FUNCTION_in_function199_bits[] = { ANTLR3_UINT64_LIT(0x039E81FFFFDFAD38) };
static ANTLR3_BITSET_LIST FOLLOW_FUNCTION_in_function199 = { FOLLOW_FUNCTION_in_function199_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expressionList_in_function214 */
static ANTLR3_BITWORD FOLLOW_expressionList_in_function214_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_expressionList_in_function214 = { FOLLOW_expressionList_in_function214_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_COMMA_in_expressionList238 */
static ANTLR3_BITWORD FOLLOW_COMMA_in_expressionList238_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_COMMA_in_expressionList238 = { FOLLOW_COMMA_in_expressionList238_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expressionList_in_expressionList240 */
static ANTLR3_BITWORD FOLLOW_expressionList_in_expressionList240_bits[] = { ANTLR3_UINT64_LIT(0x039E81FFFFDFAD30) };
static ANTLR3_BITSET_LIST FOLLOW_expressionList_in_expressionList240 = { FOLLOW_expressionList_in_expressionList240_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expressionList_in_expressionList242 */
static ANTLR3_BITWORD FOLLOW_expressionList_in_expressionList242_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_expressionList_in_expressionList242 = { FOLLOW_expressionList_in_expressionList242_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_evaledExpr_in_expressionList250 */
static ANTLR3_BITWORD FOLLOW_evaledExpr_in_expressionList250_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_evaledExpr_in_expressionList250 = { FOLLOW_evaledExpr_in_expressionList250_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_IFTRUE_in_oper277 */
static ANTLR3_BITWORD FOLLOW_IFTRUE_in_oper277_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_IFTRUE_in_oper277 = { FOLLOW_IFTRUE_in_oper277_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_evaledExpr_in_oper281 */
static ANTLR3_BITWORD FOLLOW_evaledExpr_in_oper281_bits[] = { ANTLR3_UINT64_LIT(0x039E81FFFFDFAD30) };
static ANTLR3_BITSET_LIST FOLLOW_evaledExpr_in_oper281 = { FOLLOW_evaledExpr_in_oper281_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_in_oper285 */
static ANTLR3_BITWORD FOLLOW_expr_in_oper285_bits[] = { ANTLR3_UINT64_LIT(0x039E81FFFFDFAD30) };
static ANTLR3_BITSET_LIST FOLLOW_expr_in_oper285 = { FOLLOW_expr_in_oper285_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_in_oper289 */
static ANTLR3_BITWORD FOLLOW_expr_in_oper289_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_expr_in_oper289 = { FOLLOW_expr_in_oper289_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_EQUALITY_in_oper305 */
static ANTLR3_BITWORD FOLLOW_EQUALITY_in_oper305_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_EQUALITY_in_oper305 = { FOLLOW_EQUALITY_in_oper305_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_EQUALITY_ALT_in_oper311 */
static ANTLR3_BITWORD FOLLOW_EQUALITY_ALT_in_oper311_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_EQUALITY_ALT_in_oper311 = { FOLLOW_EQUALITY_ALT_in_oper311_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_evaledExpr_in_oper316 */
static ANTLR3_BITWORD FOLLOW_evaledExpr_in_oper316_bits[] = { ANTLR3_UINT64_LIT(0x039E81FFFFDFAD30) };
static ANTLR3_BITSET_LIST FOLLOW_evaledExpr_in_oper316 = { FOLLOW_evaledExpr_in_oper316_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_evaledExpr_in_oper320 */
static ANTLR3_BITWORD FOLLOW_evaledExpr_in_oper320_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_evaledExpr_in_oper320 = { FOLLOW_evaledExpr_in_oper320_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_INEQUALITY_in_oper336 */
static ANTLR3_BITWORD FOLLOW_INEQUALITY_in_oper336_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_INEQUALITY_in_oper336 = { FOLLOW_INEQUALITY_in_oper336_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_INEQUALITY_ALT_in_oper342 */
static ANTLR3_BITWORD FOLLOW_INEQUALITY_ALT_in_oper342_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_INEQUALITY_ALT_in_oper342 = { FOLLOW_INEQUALITY_ALT_in_oper342_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_evaledExpr_in_oper347 */
static ANTLR3_BITWORD FOLLOW_evaledExpr_in_oper347_bits[] = { ANTLR3_UINT64_LIT(0x039E81FFFFDFAD30) };
static ANTLR3_BITSET_LIST FOLLOW_evaledExpr_in_oper347 = { FOLLOW_evaledExpr_in_oper347_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_evaledExpr_in_oper351 */
static ANTLR3_BITWORD FOLLOW_evaledExpr_in_oper351_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_evaledExpr_in_oper351 = { FOLLOW_evaledExpr_in_oper351_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LESS_in_oper366 */
static ANTLR3_BITWORD FOLLOW_LESS_in_oper366_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_LESS_in_oper366 = { FOLLOW_LESS_in_oper366_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_evaledExpr_in_oper370 */
static ANTLR3_BITWORD FOLLOW_evaledExpr_in_oper370_bits[] = { ANTLR3_UINT64_LIT(0x039E81FFFFDFAD30) };
static ANTLR3_BITSET_LIST FOLLOW_evaledExpr_in_oper370 = { FOLLOW_evaledExpr_in_oper370_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_evaledExpr_in_oper374 */
static ANTLR3_BITWORD FOLLOW_evaledExpr_in_oper374_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_evaledExpr_in_oper374 = { FOLLOW_evaledExpr_in_oper374_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LTE_in_oper389 */
static ANTLR3_BITWORD FOLLOW_LTE_in_oper389_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_LTE_in_oper389 = { FOLLOW_LTE_in_oper389_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_evaledExpr_in_oper393 */
static ANTLR3_BITWORD FOLLOW_evaledExpr_in_oper393_bits[] = { ANTLR3_UINT64_LIT(0x039E81FFFFDFAD30) };
static ANTLR3_BITSET_LIST FOLLOW_evaledExpr_in_oper393 = { FOLLOW_evaledExpr_in_oper393_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_evaledExpr_in_oper397 */
static ANTLR3_BITWORD FOLLOW_evaledExpr_in_oper397_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_evaledExpr_in_oper397 = { FOLLOW_evaledExpr_in_oper397_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_GREATER_in_oper412 */
static ANTLR3_BITWORD FOLLOW_GREATER_in_oper412_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_GREATER_in_oper412 = { FOLLOW_GREATER_in_oper412_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_evaledExpr_in_oper416 */
static ANTLR3_BITWORD FOLLOW_evaledExpr_in_oper416_bits[] = { ANTLR3_UINT64_LIT(0x039E81FFFFDFAD30) };
static ANTLR3_BITSET_LIST FOLLOW_evaledExpr_in_oper416 = { FOLLOW_evaledExpr_in_oper416_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_evaledExpr_in_oper420 */
static ANTLR3_BITWORD FOLLOW_evaledExpr_in_oper420_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_evaledExpr_in_oper420 = { FOLLOW_evaledExpr_in_oper420_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_GTE_in_oper435 */
static ANTLR3_BITWORD FOLLOW_GTE_in_oper435_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_GTE_in_oper435 = { FOLLOW_GTE_in_oper435_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_evaledExpr_in_oper439 */
static ANTLR3_BITWORD FOLLOW_evaledExpr_in_oper439_bits[] = { ANTLR3_UINT64_LIT(0x039E81FFFFDFAD30) };
static ANTLR3_BITSET_LIST FOLLOW_evaledExpr_in_oper439 = { FOLLOW_evaledExpr_in_oper439_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_evaledExpr_in_oper443 */
static ANTLR3_BITWORD FOLLOW_evaledExpr_in_oper443_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_evaledExpr_in_oper443 = { FOLLOW_evaledExpr_in_oper443_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_AND_in_oper459 */
static ANTLR3_BITWORD FOLLOW_AND_in_oper459_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_AND_in_oper459 = { FOLLOW_AND_in_oper459_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_AND_ALT_in_oper465 */
static ANTLR3_BITWORD FOLLOW_AND_ALT_in_oper465_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_AND_ALT_in_oper465 = { FOLLOW_AND_ALT_in_oper465_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_evaledExpr_in_oper470 */
static ANTLR3_BITWORD FOLLOW_evaledExpr_in_oper470_bits[] = { ANTLR3_UINT64_LIT(0x039E81FFFFDFAD30) };
static ANTLR3_BITSET_LIST FOLLOW_evaledExpr_in_oper470 = { FOLLOW_evaledExpr_in_oper470_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_evaledExpr_in_oper474 */
static ANTLR3_BITWORD FOLLOW_evaledExpr_in_oper474_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_evaledExpr_in_oper474 = { FOLLOW_evaledExpr_in_oper474_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_OR_in_oper490 */
static ANTLR3_BITWORD FOLLOW_OR_in_oper490_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_OR_in_oper490 = { FOLLOW_OR_in_oper490_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_OR_ALT_in_oper496 */
static ANTLR3_BITWORD FOLLOW_OR_ALT_in_oper496_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_OR_ALT_in_oper496 = { FOLLOW_OR_ALT_in_oper496_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_evaledExpr_in_oper501 */
static ANTLR3_BITWORD FOLLOW_evaledExpr_in_oper501_bits[] = { ANTLR3_UINT64_LIT(0x039E81FFFFDFAD30) };
static ANTLR3_BITSET_LIST FOLLOW_evaledExpr_in_oper501 = { FOLLOW_evaledExpr_in_oper501_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_evaledExpr_in_oper505 */
static ANTLR3_BITWORD FOLLOW_evaledExpr_in_oper505_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_evaledExpr_in_oper505 = { FOLLOW_evaledExpr_in_oper505_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_XOR_in_oper521 */
static ANTLR3_BITWORD FOLLOW_XOR_in_oper521_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_XOR_in_oper521 = { FOLLOW_XOR_in_oper521_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_XOR_ALT_in_oper527 */
static ANTLR3_BITWORD FOLLOW_XOR_ALT_in_oper527_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_XOR_ALT_in_oper527 = { FOLLOW_XOR_ALT_in_oper527_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_evaledExpr_in_oper532 */
static ANTLR3_BITWORD FOLLOW_evaledExpr_in_oper532_bits[] = { ANTLR3_UINT64_LIT(0x039E81FFFFDFAD30) };
static ANTLR3_BITSET_LIST FOLLOW_evaledExpr_in_oper532 = { FOLLOW_evaledExpr_in_oper532_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_evaledExpr_in_oper536 */
static ANTLR3_BITWORD FOLLOW_evaledExpr_in_oper536_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_evaledExpr_in_oper536 = { FOLLOW_evaledExpr_in_oper536_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_ADD_TOK_in_oper551 */
static ANTLR3_BITWORD FOLLOW_ADD_TOK_in_oper551_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_ADD_TOK_in_oper551 = { FOLLOW_ADD_TOK_in_oper551_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_evaledExpr_in_oper555 */
static ANTLR3_BITWORD FOLLOW_evaledExpr_in_oper555_bits[] = { ANTLR3_UINT64_LIT(0x039E81FFFFDFAD30) };
static ANTLR3_BITSET_LIST FOLLOW_evaledExpr_in_oper555 = { FOLLOW_evaledExpr_in_oper555_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_evaledExpr_in_oper559 */
static ANTLR3_BITWORD FOLLOW_evaledExpr_in_oper559_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_evaledExpr_in_oper559 = { FOLLOW_evaledExpr_in_oper559_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SUB_in_oper574 */
static ANTLR3_BITWORD FOLLOW_SUB_in_oper574_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_SUB_in_oper574 = { FOLLOW_SUB_in_oper574_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_evaledExpr_in_oper578 */
static ANTLR3_BITWORD FOLLOW_evaledExpr_in_oper578_bits[] = { ANTLR3_UINT64_LIT(0x039E81FFFFDFAD30) };
static ANTLR3_BITSET_LIST FOLLOW_evaledExpr_in_oper578 = { FOLLOW_evaledExpr_in_oper578_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_evaledExpr_in_oper582 */
static ANTLR3_BITWORD FOLLOW_evaledExpr_in_oper582_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_evaledExpr_in_oper582 = { FOLLOW_evaledExpr_in_oper582_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_MULT_in_oper597 */
static ANTLR3_BITWORD FOLLOW_MULT_in_oper597_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_MULT_in_oper597 = { FOLLOW_MULT_in_oper597_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_evaledExpr_in_oper601 */
static ANTLR3_BITWORD FOLLOW_evaledExpr_in_oper601_bits[] = { ANTLR3_UINT64_LIT(0x039E81FFFFDFAD30) };
static ANTLR3_BITSET_LIST FOLLOW_evaledExpr_in_oper601 = { FOLLOW_evaledExpr_in_oper601_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_evaledExpr_in_oper605 */
static ANTLR3_BITWORD FOLLOW_evaledExpr_in_oper605_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_evaledExpr_in_oper605 = { FOLLOW_evaledExpr_in_oper605_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_DIV_in_oper620 */
static ANTLR3_BITWORD FOLLOW_DIV_in_oper620_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_DIV_in_oper620 = { FOLLOW_DIV_in_oper620_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_evaledExpr_in_oper624 */
static ANTLR3_BITWORD FOLLOW_evaledExpr_in_oper624_bits[] = { ANTLR3_UINT64_LIT(0x039E81FFFFDFAD30) };
static ANTLR3_BITSET_LIST FOLLOW_evaledExpr_in_oper624 = { FOLLOW_evaledExpr_in_oper624_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_evaledExpr_in_oper628 */
static ANTLR3_BITWORD FOLLOW_evaledExpr_in_oper628_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_evaledExpr_in_oper628 = { FOLLOW_evaledExpr_in_oper628_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_MOD_in_oper643 */
static ANTLR3_BITWORD FOLLOW_MOD_in_oper643_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_MOD_in_oper643 = { FOLLOW_MOD_in_oper643_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_evaledExpr_in_oper647 */
static ANTLR3_BITWORD FOLLOW_evaledExpr_in_oper647_bits[] = { ANTLR3_UINT64_LIT(0x039E81FFFFDFAD30) };
static ANTLR3_BITSET_LIST FOLLOW_evaledExpr_in_oper647 = { FOLLOW_evaledExpr_in_oper647_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_evaledExpr_in_oper651 */
static ANTLR3_BITWORD FOLLOW_evaledExpr_in_oper651_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_evaledExpr_in_oper651 = { FOLLOW_evaledExpr_in_oper651_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_NOT_in_oper667 */
static ANTLR3_BITWORD FOLLOW_NOT_in_oper667_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_NOT_in_oper667 = { FOLLOW_NOT_in_oper667_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_evaledExpr_in_oper671 */
static ANTLR3_BITWORD FOLLOW_evaledExpr_in_oper671_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_evaledExpr_in_oper671 = { FOLLOW_evaledExpr_in_oper671_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_slash_in_path696 */
static ANTLR3_BITWORD FOLLOW_slash_in_path696_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_slash_in_path696 = { FOLLOW_slash_in_path696_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_at_in_path708 */
static ANTLR3_BITWORD FOLLOW_at_in_path708_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_at_in_path708 = { FOLLOW_at_in_path708_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_piper_in_path720 */
static ANTLR3_BITWORD FOLLOW_piper_in_path720_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_piper_in_path720 = { FOLLOW_piper_in_path720_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_NODE_PREDICATE_in_path733 */
static ANTLR3_BITWORD FOLLOW_NODE_PREDICATE_in_path733_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_NODE_PREDICATE_in_path733 = { FOLLOW_NODE_PREDICATE_in_path733_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_predicate_in_path735 */
static ANTLR3_BITWORD FOLLOW_predicate_in_path735_bits[] = { ANTLR3_UINT64_LIT(0x001E008000D9A430) };
static ANTLR3_BITSET_LIST FOLLOW_predicate_in_path735 = { FOLLOW_predicate_in_path735_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_path_in_path739 */
static ANTLR3_BITWORD FOLLOW_path_in_path739_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_path_in_path739 = { FOLLOW_path_in_path739_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_INT_in_path752 */
static ANTLR3_BITWORD FOLLOW_INT_in_path752_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_INT_in_path752 = { FOLLOW_INT_in_path752_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_NAME_in_path764 */
static ANTLR3_BITWORD FOLLOW_NAME_in_path764_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_NAME_in_path764 = { FOLLOW_NAME_in_path764_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_STAR_in_path776 */
static ANTLR3_BITWORD FOLLOW_STAR_in_path776_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_STAR_in_path776 = { FOLLOW_STAR_in_path776_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_DOT_STEP_in_path788 */
static ANTLR3_BITWORD FOLLOW_DOT_STEP_in_path788_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_DOT_STEP_in_path788 = { FOLLOW_DOT_STEP_in_path788_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_PERMALINK_in_path800 */
static ANTLR3_BITWORD FOLLOW_PERMALINK_in_path800_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_PERMALINK_in_path800 = { FOLLOW_PERMALINK_in_path800_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SPECIAL_NEXT_in_path812 */
static ANTLR3_BITWORD FOLLOW_SPECIAL_NEXT_in_path812_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_SPECIAL_NEXT_in_path812 = { FOLLOW_SPECIAL_NEXT_in_path812_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SPECIAL_PREV_in_path824 */
static ANTLR3_BITWORD FOLLOW_SPECIAL_PREV_in_path824_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_SPECIAL_PREV_in_path824 = { FOLLOW_SPECIAL_PREV_in_path824_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_variable_in_path836 */
static ANTLR3_BITWORD FOLLOW_variable_in_path836_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_variable_in_path836 = { FOLLOW_variable_in_path836_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_function_in_path848 */
static ANTLR3_BITWORD FOLLOW_function_in_path848_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_function_in_path848 = { FOLLOW_function_in_path848_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_PIPE_in_piper876 */
static ANTLR3_BITWORD FOLLOW_PIPE_in_piper876_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_PIPE_in_piper876 = { FOLLOW_PIPE_in_piper876_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_path_in_piper880 */
static ANTLR3_BITWORD FOLLOW_path_in_piper880_bits[] = { ANTLR3_UINT64_LIT(0x001E008000D9A430) };
static ANTLR3_BITSET_LIST FOLLOW_path_in_piper880 = { FOLLOW_path_in_piper880_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_path_in_piper884 */
static ANTLR3_BITWORD FOLLOW_path_in_piper884_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_path_in_piper884 = { FOLLOW_path_in_piper884_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_INT_in_predicate908 */
static ANTLR3_BITWORD FOLLOW_INT_in_predicate908_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_INT_in_predicate908 = { FOLLOW_INT_in_predicate908_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_predicateOper_in_predicate920 */
static ANTLR3_BITWORD FOLLOW_predicateOper_in_predicate920_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_predicateOper_in_predicate920 = { FOLLOW_predicateOper_in_predicate920_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_predicatePath_in_predicateExpr945 */
static ANTLR3_BITWORD FOLLOW_predicatePath_in_predicateExpr945_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_predicatePath_in_predicateExpr945 = { FOLLOW_predicatePath_in_predicateExpr945_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_xpathFunction_in_predicateExpr957 */
static ANTLR3_BITWORD FOLLOW_xpathFunction_in_predicateExpr957_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_xpathFunction_in_predicateExpr957 = { FOLLOW_xpathFunction_in_predicateExpr957_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_value_in_predicateExpr968 */
static ANTLR3_BITWORD FOLLOW_value_in_predicateExpr968_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_value_in_predicateExpr968 = { FOLLOW_value_in_predicateExpr968_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_predicateOper_in_predicateExpr979 */
static ANTLR3_BITWORD FOLLOW_predicateOper_in_predicateExpr979_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_predicateOper_in_predicateExpr979 = { FOLLOW_predicateOper_in_predicateExpr979_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_predicateEqualityOper_in_predicateOper1004 */
static ANTLR3_BITWORD FOLLOW_predicateEqualityOper_in_predicateOper1004_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_predicateEqualityOper_in_predicateOper1004 = { FOLLOW_predicateEqualityOper_in_predicateOper1004_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_predicateInequalityOper_in_predicateOper1016 */
static ANTLR3_BITWORD FOLLOW_predicateInequalityOper_in_predicateOper1016_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_predicateInequalityOper_in_predicateOper1016 = { FOLLOW_predicateInequalityOper_in_predicateOper1016_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_predicateAndOper_in_predicateOper1028 */
static ANTLR3_BITWORD FOLLOW_predicateAndOper_in_predicateOper1028_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_predicateAndOper_in_predicateOper1028 = { FOLLOW_predicateAndOper_in_predicateOper1028_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_predicateOrOper_in_predicateOper1040 */
static ANTLR3_BITWORD FOLLOW_predicateOrOper_in_predicateOper1040_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_predicateOrOper_in_predicateOper1040 = { FOLLOW_predicateOrOper_in_predicateOper1040_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_predicateComparisonOper_in_predicateOper1052 */
static ANTLR3_BITWORD FOLLOW_predicateComparisonOper_in_predicateOper1052_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_predicateComparisonOper_in_predicateOper1052 = { FOLLOW_predicateComparisonOper_in_predicateOper1052_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_predicateRangeOper_in_predicateOper1064 */
static ANTLR3_BITWORD FOLLOW_predicateRangeOper_in_predicateOper1064_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_predicateRangeOper_in_predicateOper1064 = { FOLLOW_predicateRangeOper_in_predicateOper1064_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_slash_in_predicatePath1087 */
static ANTLR3_BITWORD FOLLOW_slash_in_predicatePath1087_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_slash_in_predicatePath1087 = { FOLLOW_slash_in_predicatePath1087_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_AT_in_predicatePath1100 */
static ANTLR3_BITWORD FOLLOW_AT_in_predicatePath1100_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_AT_in_predicatePath1100 = { FOLLOW_AT_in_predicatePath1100_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_predicatePath_in_predicatePath1104 */
static ANTLR3_BITWORD FOLLOW_predicatePath_in_predicatePath1104_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_predicatePath_in_predicatePath1104 = { FOLLOW_predicatePath_in_predicatePath1104_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_NODE_PATHREF_in_predicatePath1118 */
static ANTLR3_BITWORD FOLLOW_NODE_PATHREF_in_predicatePath1118_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_NODE_PATHREF_in_predicatePath1118 = { FOLLOW_NODE_PATHREF_in_predicatePath1118_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_evaledExpr_in_predicatePath1120 */
static ANTLR3_BITWORD FOLLOW_evaledExpr_in_predicatePath1120_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_evaledExpr_in_predicatePath1120 = { FOLLOW_evaledExpr_in_predicatePath1120_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_NAME_in_predicatePath1133 */
static ANTLR3_BITWORD FOLLOW_NAME_in_predicatePath1133_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_NAME_in_predicatePath1133 = { FOLLOW_NAME_in_predicatePath1133_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_equalityOper_in_predicateEqualityOper1159 */
static ANTLR3_BITWORD FOLLOW_equalityOper_in_predicateEqualityOper1159_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_equalityOper_in_predicateEqualityOper1159 = { FOLLOW_equalityOper_in_predicateEqualityOper1159_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_predicateExpr_in_predicateEqualityOper1163 */
static ANTLR3_BITWORD FOLLOW_predicateExpr_in_predicateEqualityOper1163_bits[] = { ANTLR3_UINT64_LIT(0x039E03FFFFDFE630) };
static ANTLR3_BITSET_LIST FOLLOW_predicateExpr_in_predicateEqualityOper1163 = { FOLLOW_predicateExpr_in_predicateEqualityOper1163_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_predicateExpr_in_predicateEqualityOper1167 */
static ANTLR3_BITWORD FOLLOW_predicateExpr_in_predicateEqualityOper1167_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_predicateExpr_in_predicateEqualityOper1167 = { FOLLOW_predicateExpr_in_predicateEqualityOper1167_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_inequalityOper_in_predicateInequalityOper1191 */
static ANTLR3_BITWORD FOLLOW_inequalityOper_in_predicateInequalityOper1191_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_inequalityOper_in_predicateInequalityOper1191 = { FOLLOW_inequalityOper_in_predicateInequalityOper1191_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_predicateExpr_in_predicateInequalityOper1195 */
static ANTLR3_BITWORD FOLLOW_predicateExpr_in_predicateInequalityOper1195_bits[] = { ANTLR3_UINT64_LIT(0x039E03FFFFDFE630) };
static ANTLR3_BITSET_LIST FOLLOW_predicateExpr_in_predicateInequalityOper1195 = { FOLLOW_predicateExpr_in_predicateInequalityOper1195_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_predicateExpr_in_predicateInequalityOper1199 */
static ANTLR3_BITWORD FOLLOW_predicateExpr_in_predicateInequalityOper1199_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_predicateExpr_in_predicateInequalityOper1199 = { FOLLOW_predicateExpr_in_predicateInequalityOper1199_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_andOper_in_predicateAndOper1223 */
static ANTLR3_BITWORD FOLLOW_andOper_in_predicateAndOper1223_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_andOper_in_predicateAndOper1223 = { FOLLOW_andOper_in_predicateAndOper1223_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_predicateExpr_in_predicateAndOper1227 */
static ANTLR3_BITWORD FOLLOW_predicateExpr_in_predicateAndOper1227_bits[] = { ANTLR3_UINT64_LIT(0x039E03FFFFDFE630) };
static ANTLR3_BITSET_LIST FOLLOW_predicateExpr_in_predicateAndOper1227 = { FOLLOW_predicateExpr_in_predicateAndOper1227_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_predicateExpr_in_predicateAndOper1231 */
static ANTLR3_BITWORD FOLLOW_predicateExpr_in_predicateAndOper1231_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_predicateExpr_in_predicateAndOper1231 = { FOLLOW_predicateExpr_in_predicateAndOper1231_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_orOper_in_predicateOrOper1255 */
static ANTLR3_BITWORD FOLLOW_orOper_in_predicateOrOper1255_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_orOper_in_predicateOrOper1255 = { FOLLOW_orOper_in_predicateOrOper1255_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_predicateExpr_in_predicateOrOper1259 */
static ANTLR3_BITWORD FOLLOW_predicateExpr_in_predicateOrOper1259_bits[] = { ANTLR3_UINT64_LIT(0x039E03FFFFDFE630) };
static ANTLR3_BITSET_LIST FOLLOW_predicateExpr_in_predicateOrOper1259 = { FOLLOW_predicateExpr_in_predicateOrOper1259_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_predicateExpr_in_predicateOrOper1263 */
static ANTLR3_BITWORD FOLLOW_predicateExpr_in_predicateOrOper1263_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_predicateExpr_in_predicateOrOper1263 = { FOLLOW_predicateExpr_in_predicateOrOper1263_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_comparisonOper_in_predicateComparisonOper1287 */
static ANTLR3_BITWORD FOLLOW_comparisonOper_in_predicateComparisonOper1287_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_comparisonOper_in_predicateComparisonOper1287 = { FOLLOW_comparisonOper_in_predicateComparisonOper1287_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_predicateExpr_in_predicateComparisonOper1291 */
static ANTLR3_BITWORD FOLLOW_predicateExpr_in_predicateComparisonOper1291_bits[] = { ANTLR3_UINT64_LIT(0x039E03FFFFDFE630) };
static ANTLR3_BITSET_LIST FOLLOW_predicateExpr_in_predicateComparisonOper1291 = { FOLLOW_predicateExpr_in_predicateComparisonOper1291_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_predicateExpr_in_predicateComparisonOper1295 */
static ANTLR3_BITWORD FOLLOW_predicateExpr_in_predicateComparisonOper1295_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_predicateExpr_in_predicateComparisonOper1295 = { FOLLOW_predicateExpr_in_predicateComparisonOper1295_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_COLON_in_predicateRangeOper1319 */
static ANTLR3_BITWORD FOLLOW_COLON_in_predicateRangeOper1319_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_COLON_in_predicateRangeOper1319 = { FOLLOW_COLON_in_predicateRangeOper1319_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_predicateExpr_in_predicateRangeOper1323 */
static ANTLR3_BITWORD FOLLOW_predicateExpr_in_predicateRangeOper1323_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000020) };
static ANTLR3_BITSET_LIST FOLLOW_predicateExpr_in_predicateRangeOper1323 = { FOLLOW_predicateExpr_in_predicateRangeOper1323_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_rangeFunction_in_predicateRangeOper1327 */
static ANTLR3_BITWORD FOLLOW_rangeFunction_in_predicateRangeOper1327_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_rangeFunction_in_predicateRangeOper1327 = { FOLLOW_rangeFunction_in_predicateRangeOper1327_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_NODE_FUNCTION_in_rangeFunction1350 */
static ANTLR3_BITWORD FOLLOW_NODE_FUNCTION_in_rangeFunction1350_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_NODE_FUNCTION_in_rangeFunction1350 = { FOLLOW_NODE_FUNCTION_in_rangeFunction1350_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_FUNCTION_in_rangeFunction1352 */
static ANTLR3_BITWORD FOLLOW_FUNCTION_in_rangeFunction1352_bits[] = { ANTLR3_UINT64_LIT(0x039E81FFFFDFAD38) };
static ANTLR3_BITSET_LIST FOLLOW_FUNCTION_in_rangeFunction1352 = { FOLLOW_FUNCTION_in_rangeFunction1352_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expressionList_in_rangeFunction1367 */
static ANTLR3_BITWORD FOLLOW_expressionList_in_rangeFunction1367_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_expressionList_in_rangeFunction1367 = { FOLLOW_expressionList_in_rangeFunction1367_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_oper_in_rootExpr1395 */
static ANTLR3_BITWORD FOLLOW_oper_in_rootExpr1395_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_oper_in_rootExpr1395 = { FOLLOW_oper_in_rootExpr1395_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_value_in_rootExpr1407 */
static ANTLR3_BITWORD FOLLOW_value_in_rootExpr1407_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_value_in_rootExpr1407 = { FOLLOW_value_in_rootExpr1407_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_NODE_SQL_in_rootPath1433 */
static ANTLR3_BITWORD FOLLOW_NODE_SQL_in_rootPath1433_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_NODE_SQL_in_rootPath1433 = { FOLLOW_NODE_SQL_in_rootPath1433_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_path_in_rootPath1435 */
static ANTLR3_BITWORD FOLLOW_path_in_rootPath1435_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_path_in_rootPath1435 = { FOLLOW_path_in_rootPath1435_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_NODE_PATH_in_rootPath1449 */
static ANTLR3_BITWORD FOLLOW_NODE_PATH_in_rootPath1449_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_NODE_PATH_in_rootPath1449 = { FOLLOW_NODE_PATH_in_rootPath1449_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_path_in_rootPath1451 */
static ANTLR3_BITWORD FOLLOW_path_in_rootPath1451_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_path_in_rootPath1451 = { FOLLOW_path_in_rootPath1451_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_NODE_ABSOLUTE_in_slash1481 */
static ANTLR3_BITWORD FOLLOW_NODE_ABSOLUTE_in_slash1481_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_NODE_ABSOLUTE_in_slash1481 = { FOLLOW_NODE_ABSOLUTE_in_slash1481_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_path_in_slash1485 */
static ANTLR3_BITWORD FOLLOW_path_in_slash1485_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_path_in_slash1485 = { FOLLOW_path_in_slash1485_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SLASH_in_slash1499 */
static ANTLR3_BITWORD FOLLOW_SLASH_in_slash1499_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_SLASH_in_slash1499 = { FOLLOW_SLASH_in_slash1499_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_path_in_slash1503 */
static ANTLR3_BITWORD FOLLOW_path_in_slash1503_bits[] = { ANTLR3_UINT64_LIT(0x001E008000D9A430) };
static ANTLR3_BITSET_LIST FOLLOW_path_in_slash1503 = { FOLLOW_path_in_slash1503_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_path_in_slash1507 */
static ANTLR3_BITWORD FOLLOW_path_in_slash1507_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_path_in_slash1507 = { FOLLOW_path_in_slash1507_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_NODE_VALUE_in_value1533 */
static ANTLR3_BITWORD FOLLOW_NODE_VALUE_in_value1533_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_NODE_VALUE_in_value1533 = { FOLLOW_NODE_VALUE_in_value1533_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_STRING_in_value1535 */
static ANTLR3_BITWORD FOLLOW_STRING_in_value1535_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_STRING_in_value1535 = { FOLLOW_STRING_in_value1535_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_NODE_VALUE_in_value1549 */
static ANTLR3_BITWORD FOLLOW_NODE_VALUE_in_value1549_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_NODE_VALUE_in_value1549 = { FOLLOW_NODE_VALUE_in_value1549_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_FLOAT_in_value1551 */
static ANTLR3_BITWORD FOLLOW_FLOAT_in_value1551_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_FLOAT_in_value1551 = { FOLLOW_FLOAT_in_value1551_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_NODE_VALUE_in_value1565 */
static ANTLR3_BITWORD FOLLOW_NODE_VALUE_in_value1565_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_NODE_VALUE_in_value1565 = { FOLLOW_NODE_VALUE_in_value1565_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_INT_in_value1567 */
static ANTLR3_BITWORD FOLLOW_INT_in_value1567_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_INT_in_value1567 = { FOLLOW_INT_in_value1567_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_variable_in_value1579 */
static ANTLR3_BITWORD FOLLOW_variable_in_value1579_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_variable_in_value1579 = { FOLLOW_variable_in_value1579_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_function_in_value1589 */
static ANTLR3_BITWORD FOLLOW_function_in_value1589_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_function_in_value1589 = { FOLLOW_function_in_value1589_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_NODE_VALUE_in_variable1613 */
static ANTLR3_BITWORD FOLLOW_NODE_VALUE_in_variable1613_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_NODE_VALUE_in_variable1613 = { FOLLOW_NODE_VALUE_in_variable1613_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_VARIABLE_in_variable1615 */
static ANTLR3_BITWORD FOLLOW_VARIABLE_in_variable1615_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_VARIABLE_in_variable1615 = { FOLLOW_VARIABLE_in_variable1615_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_NODE_PATH_in_xpathExpr1642 */
static ANTLR3_BITWORD FOLLOW_NODE_PATH_in_xpathExpr1642_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000004) };
static ANTLR3_BITSET_LIST FOLLOW_NODE_PATH_in_xpathExpr1642 = { FOLLOW_NODE_PATH_in_xpathExpr1642_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_predicatePath_in_xpathExpr1644 */
static ANTLR3_BITWORD FOLLOW_predicatePath_in_xpathExpr1644_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000008) };
static ANTLR3_BITSET_LIST FOLLOW_predicatePath_in_xpathExpr1644 = { FOLLOW_predicatePath_in_xpathExpr1644_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_xpathFunction_in_xpathExpr1657 */
static ANTLR3_BITWORD FOLLOW_xpathFunction_in_xpathExpr1657_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_xpathFunction_in_xpathExpr1657 = { FOLLOW_xpathFunction_in_xpathExpr1657_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_value_in_xpathExpr1668 */