-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVaeQueryLanguageParser.c
8123 lines (6379 loc) · 283 KB
/
VaeQueryLanguageParser.c
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 : VaeQueryLanguage.g
* - On : 2016-03-04 14:33:11
* - for the parser : VaeQueryLanguageParserParser *
* 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.
/* -----------------------------------------
* Include the ANTLR3 generated header file.
*/
#include "VaeQueryLanguageParser.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) pVaeQueryLanguageParser_##scope##_SCOPE
#define SCOPE_STACK(scope) pVaeQueryLanguageParser_##scope##Stack
#define SCOPE_TOP(scope) ctx->pVaeQueryLanguageParser_##scope##Top
#define SCOPE_SIZE(scope) ctx->pVaeQueryLanguageParser_##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 MEMOIZE
#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 INDEX
#undef ADAPTOR
#undef SEEK
#undef RULEMEMO
#undef DBG
#define PARSER ctx->pParser
#define RECOGNIZER PARSER->rec
#define PSRSTATE RECOGNIZER->state
#define HAVEPARSEDRULE(r) RECOGNIZER->alreadyParsedRule(RECOGNIZER, r)
#define MEMOIZE(ri,si) RECOGNIZER->memoize(RECOGNIZER, ri, si)
#define INPUT PARSER->tstream
#define STRSTREAM INPUT
#define ISTREAM INPUT->istream
#define INDEX() ISTREAM->index(INPUT->istream)
#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) INPUT->istream->_LA(ISTREAM, n)
#define LT(n) INPUT->_LT(INPUT, 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 SEEK(n) ISTREAM->seek(ISTREAM, n)
#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 ctx->adaptor
#define RULEMEMO PSRSTATE->ruleMemo
#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 VaeQueryLanguageParserTokenNames[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 VaeQueryLanguageParser_start_return start (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_expr_return expr (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_orExpr_return orExpr (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_xorExpr_return xorExpr (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_andExpr_return andExpr (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_comparisonExpr_return comparisonExpr (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_addSubExpr_return addSubExpr (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_multExpr_return multExpr (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_ifExpr_return ifExpr (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_notExpr_return notExpr (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_valueExpr_return valueExpr (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_function_return function (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_expressionList_return expressionList (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_functionNoArgs_return functionNoArgs (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_path_return path (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_rootPath_return rootPath (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_permalink_return permalink (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_absolutePath_return absolutePath (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_idPath_return idPath (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_relativePath_return relativePath (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_relativePathWithoutPredicates_return relativePathWithoutPredicates (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_unionPath_return unionPath (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_pathStep_return pathStep (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_pathStepInternal_return pathStepInternal (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_axisSpecifier_return axisSpecifier (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_predicate_return predicate (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_predicateExpr_return predicateExpr (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_predicateAndExpr_return predicateAndExpr (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_predicateComparisonExpr_return predicateComparisonExpr (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_predicatePathExpr_return predicatePathExpr (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_filterExpr_return filterExpr (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_primaryExpr_return primaryExpr (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_xpathFunction_return xpathFunction (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_andOper_return andOper (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_orOper_return orOper (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_xorOper_return xorOper (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_value_return value (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_variable_return variable (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_comparisonOper_return comparisonOper (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_addSubOper_return addSubOper (pVaeQueryLanguageParser ctx);
static VaeQueryLanguageParser_multOper_return multOper (pVaeQueryLanguageParser ctx);
static void VaeQueryLanguageParserFree(pVaeQueryLanguageParser 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[] = "VaeQueryLanguage.g";
/** \brief Return the name of the grammar file that generated this code.
*/
static const char * getGrammarFileName()
{
return fileName;
}
/** \brief Create a new VaeQueryLanguageParser 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 pVaeQueryLanguageParser
VaeQueryLanguageParserNew (pANTLR3_COMMON_TOKEN_STREAM instream)
{
// See if we can create a new parser with the standard constructor
//
return VaeQueryLanguageParserNewSSD(instream, NULL);
}
/** \brief Create a new VaeQueryLanguageParser 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 pVaeQueryLanguageParser
VaeQueryLanguageParserNewSSD (pANTLR3_COMMON_TOKEN_STREAM instream, pANTLR3_RECOGNIZER_SHARED_STATE state)
{
pVaeQueryLanguageParser ctx; /* Context structure we will build and return */
ctx = (pVaeQueryLanguageParser) ANTLR3_CALLOC(1, sizeof(VaeQueryLanguageParser));
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 VaeQueryLanguageParser.h here, in order that you can get a sense
* of what goes where.
*/
/* Create a base parser/recognizer, using the supplied token stream
*/
ctx->pParser = antlr3ParserNewStream(ANTLR3_SIZE_HINT, instream->tstream, state);
/* Install the implementation of our VaeQueryLanguageParser interface
*/
ctx->start = start;
ctx->expr = expr;
ctx->orExpr = orExpr;
ctx->xorExpr = xorExpr;
ctx->andExpr = andExpr;
ctx->comparisonExpr = comparisonExpr;
ctx->addSubExpr = addSubExpr;
ctx->multExpr = multExpr;
ctx->ifExpr = ifExpr;
ctx->notExpr = notExpr;
ctx->valueExpr = valueExpr;
ctx->function = function;
ctx->expressionList = expressionList;
ctx->functionNoArgs = functionNoArgs;
ctx->path = path;
ctx->rootPath = rootPath;
ctx->permalink = permalink;
ctx->absolutePath = absolutePath;
ctx->idPath = idPath;
ctx->relativePath = relativePath;
ctx->relativePathWithoutPredicates = relativePathWithoutPredicates;
ctx->unionPath = unionPath;
ctx->pathStep = pathStep;
ctx->pathStepInternal = pathStepInternal;
ctx->axisSpecifier = axisSpecifier;
ctx->predicate = predicate;
ctx->predicateExpr = predicateExpr;
ctx->predicateAndExpr = predicateAndExpr;
ctx->predicateComparisonExpr = predicateComparisonExpr;
ctx->predicatePathExpr = predicatePathExpr;
ctx->filterExpr = filterExpr;
ctx->primaryExpr = primaryExpr;
ctx->xpathFunction = xpathFunction;
ctx->andOper = andOper;
ctx->orOper = orOper;
ctx->xorOper = xorOper;
ctx->value = value;
ctx->variable = variable;
ctx->comparisonOper = comparisonOper;
ctx->addSubOper = addSubOper;
ctx->multOper = multOper;
ctx->free = VaeQueryLanguageParserFree;
ctx->getGrammarFileName = getGrammarFileName;
/* Install the scope pushing methods.
*/
ADAPTOR = ANTLR3_TREE_ADAPTORNew(instream->tstream->tokenSource->strFactory);
ctx->vectors = antlr3VectorFactoryNew(0);
/* Install the token table
*/
PSRSTATE->tokenNames = VaeQueryLanguageParserTokenNames;
/* Return the newly built parser to the caller
*/
return ctx;
}
/** Free the parser resources
*/
static void
VaeQueryLanguageParserFree(pVaeQueryLanguageParser ctx)
{
/* Free any scope memory
*/
ctx->vectors->close(ctx->vectors);
/* We created the adaptor so we must free it
*/
ADAPTOR->free(ADAPTOR);
// Free this parser
//
ctx->pParser->free(ctx->pParser);
ANTLR3_FREE(ctx);
/* Everything is released, so we can return
*/
return;
}
/** Return token names used by this 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 VaeQueryLanguageParserTokenNames;
}
/* Declare the bitsets
*/
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_in_start409 */
static ANTLR3_BITWORD FOLLOW_expr_in_start409_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000) };
static ANTLR3_BITSET_LIST FOLLOW_expr_in_start409 = { FOLLOW_expr_in_start409_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_EOF_in_start411 */
static ANTLR3_BITWORD FOLLOW_EOF_in_start411_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_EOF_in_start411 = { FOLLOW_EOF_in_start411_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_orExpr_in_expr430 */
static ANTLR3_BITWORD FOLLOW_orExpr_in_expr430_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_orExpr_in_expr430 = { FOLLOW_orExpr_in_expr430_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_xorExpr_in_orExpr443 */
static ANTLR3_BITWORD FOLLOW_xorExpr_in_orExpr443_bits[] = { ANTLR3_UINT64_LIT(0x0100000200000002) };
static ANTLR3_BITSET_LIST FOLLOW_xorExpr_in_orExpr443 = { FOLLOW_xorExpr_in_orExpr443_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_orOper_in_orExpr446 */
static ANTLR3_BITWORD FOLLOW_orOper_in_orExpr446_bits[] = { ANTLR3_UINT64_LIT(0x1C3F200800798000) };
static ANTLR3_BITSET_LIST FOLLOW_orOper_in_orExpr446 = { FOLLOW_orOper_in_orExpr446_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_xorExpr_in_orExpr449 */
static ANTLR3_BITWORD FOLLOW_xorExpr_in_orExpr449_bits[] = { ANTLR3_UINT64_LIT(0x0100000200000002) };
static ANTLR3_BITSET_LIST FOLLOW_xorExpr_in_orExpr449 = { FOLLOW_xorExpr_in_orExpr449_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_andExpr_in_xorExpr467 */
static ANTLR3_BITWORD FOLLOW_andExpr_in_xorExpr467_bits[] = { ANTLR3_UINT64_LIT(0x0200000400000002) };
static ANTLR3_BITSET_LIST FOLLOW_andExpr_in_xorExpr467 = { FOLLOW_andExpr_in_xorExpr467_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_xorOper_in_xorExpr470 */
static ANTLR3_BITWORD FOLLOW_xorOper_in_xorExpr470_bits[] = { ANTLR3_UINT64_LIT(0x1C3F200800798000) };
static ANTLR3_BITSET_LIST FOLLOW_xorOper_in_xorExpr470 = { FOLLOW_xorOper_in_xorExpr470_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_andExpr_in_xorExpr473 */
static ANTLR3_BITWORD FOLLOW_andExpr_in_xorExpr473_bits[] = { ANTLR3_UINT64_LIT(0x0200000400000002) };
static ANTLR3_BITSET_LIST FOLLOW_andExpr_in_xorExpr473 = { FOLLOW_andExpr_in_xorExpr473_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_comparisonExpr_in_andExpr490 */
static ANTLR3_BITWORD FOLLOW_comparisonExpr_in_andExpr490_bits[] = { ANTLR3_UINT64_LIT(0x0080000100000002) };
static ANTLR3_BITSET_LIST FOLLOW_comparisonExpr_in_andExpr490 = { FOLLOW_comparisonExpr_in_andExpr490_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_andOper_in_andExpr493 */
static ANTLR3_BITWORD FOLLOW_andOper_in_andExpr493_bits[] = { ANTLR3_UINT64_LIT(0x1C3F200800798000) };
static ANTLR3_BITSET_LIST FOLLOW_andOper_in_andExpr493 = { FOLLOW_andOper_in_andExpr493_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_comparisonExpr_in_andExpr496 */
static ANTLR3_BITWORD FOLLOW_comparisonExpr_in_andExpr496_bits[] = { ANTLR3_UINT64_LIT(0x0080000100000002) };
static ANTLR3_BITSET_LIST FOLLOW_comparisonExpr_in_andExpr496 = { FOLLOW_comparisonExpr_in_andExpr496_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_addSubExpr_in_comparisonExpr511 */
static ANTLR3_BITWORD FOLLOW_addSubExpr_in_comparisonExpr511_bits[] = { ANTLR3_UINT64_LIT(0x00000000FF000002) };
static ANTLR3_BITSET_LIST FOLLOW_addSubExpr_in_comparisonExpr511 = { FOLLOW_addSubExpr_in_comparisonExpr511_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_comparisonOper_in_comparisonExpr514 */
static ANTLR3_BITWORD FOLLOW_comparisonOper_in_comparisonExpr514_bits[] = { ANTLR3_UINT64_LIT(0x1C3F200800798000) };
static ANTLR3_BITSET_LIST FOLLOW_comparisonOper_in_comparisonExpr514 = { FOLLOW_comparisonOper_in_comparisonExpr514_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_addSubExpr_in_comparisonExpr517 */
static ANTLR3_BITWORD FOLLOW_addSubExpr_in_comparisonExpr517_bits[] = { ANTLR3_UINT64_LIT(0x00000000FF000002) };
static ANTLR3_BITSET_LIST FOLLOW_addSubExpr_in_comparisonExpr517 = { FOLLOW_addSubExpr_in_comparisonExpr517_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_multExpr_in_addSubExpr532 */
static ANTLR3_BITWORD FOLLOW_multExpr_in_addSubExpr532_bits[] = { ANTLR3_UINT64_LIT(0x0000003000000002) };
static ANTLR3_BITSET_LIST FOLLOW_multExpr_in_addSubExpr532 = { FOLLOW_multExpr_in_addSubExpr532_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_addSubOper_in_addSubExpr535 */
static ANTLR3_BITWORD FOLLOW_addSubOper_in_addSubExpr535_bits[] = { ANTLR3_UINT64_LIT(0x1C3F200800798000) };
static ANTLR3_BITSET_LIST FOLLOW_addSubOper_in_addSubExpr535 = { FOLLOW_addSubOper_in_addSubExpr535_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_multExpr_in_addSubExpr538 */
static ANTLR3_BITWORD FOLLOW_multExpr_in_addSubExpr538_bits[] = { ANTLR3_UINT64_LIT(0x0000003000000002) };
static ANTLR3_BITSET_LIST FOLLOW_multExpr_in_addSubExpr538 = { FOLLOW_multExpr_in_addSubExpr538_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_ifExpr_in_multExpr553 */
static ANTLR3_BITWORD FOLLOW_ifExpr_in_multExpr553_bits[] = { ANTLR3_UINT64_LIT(0x0000004000060002) };
static ANTLR3_BITSET_LIST FOLLOW_ifExpr_in_multExpr553 = { FOLLOW_ifExpr_in_multExpr553_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_multOper_in_multExpr556 */
static ANTLR3_BITWORD FOLLOW_multOper_in_multExpr556_bits[] = { ANTLR3_UINT64_LIT(0x1C3F200800798000) };
static ANTLR3_BITSET_LIST FOLLOW_multOper_in_multExpr556 = { FOLLOW_multOper_in_multExpr556_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_ifExpr_in_multExpr559 */
static ANTLR3_BITWORD FOLLOW_ifExpr_in_multExpr559_bits[] = { ANTLR3_UINT64_LIT(0x0000004000060002) };
static ANTLR3_BITSET_LIST FOLLOW_ifExpr_in_multExpr559 = { FOLLOW_ifExpr_in_multExpr559_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_notExpr_in_ifExpr575 */
static ANTLR3_BITWORD FOLLOW_notExpr_in_ifExpr575_bits[] = { ANTLR3_UINT64_LIT(0x0000010000000002) };
static ANTLR3_BITSET_LIST FOLLOW_notExpr_in_ifExpr575 = { FOLLOW_notExpr_in_ifExpr575_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_IFTRUE_in_ifExpr578 */
static ANTLR3_BITWORD FOLLOW_IFTRUE_in_ifExpr578_bits[] = { ANTLR3_UINT64_LIT(0x1C3F200800798000) };
static ANTLR3_BITSET_LIST FOLLOW_IFTRUE_in_ifExpr578 = { FOLLOW_IFTRUE_in_ifExpr578_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_notExpr_in_ifExpr581 */
static ANTLR3_BITWORD FOLLOW_notExpr_in_ifExpr581_bits[] = { ANTLR3_UINT64_LIT(0x0000020000000000) };
static ANTLR3_BITSET_LIST FOLLOW_notExpr_in_ifExpr581 = { FOLLOW_notExpr_in_ifExpr581_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_COLON_in_ifExpr583 */
static ANTLR3_BITWORD FOLLOW_COLON_in_ifExpr583_bits[] = { ANTLR3_UINT64_LIT(0x1C3F200800798000) };
static ANTLR3_BITSET_LIST FOLLOW_COLON_in_ifExpr583 = { FOLLOW_COLON_in_ifExpr583_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_notExpr_in_ifExpr586 */
static ANTLR3_BITWORD FOLLOW_notExpr_in_ifExpr586_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_notExpr_in_ifExpr586 = { FOLLOW_notExpr_in_ifExpr586_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_NOT_in_notExpr600 */
static ANTLR3_BITWORD FOLLOW_NOT_in_notExpr600_bits[] = { ANTLR3_UINT64_LIT(0x1C3F200800798000) };
static ANTLR3_BITSET_LIST FOLLOW_NOT_in_notExpr600 = { FOLLOW_NOT_in_notExpr600_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_valueExpr_in_notExpr602 */
static ANTLR3_BITWORD FOLLOW_valueExpr_in_notExpr602_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_valueExpr_in_notExpr602 = { FOLLOW_valueExpr_in_notExpr602_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_valueExpr_in_notExpr616 */
static ANTLR3_BITWORD FOLLOW_valueExpr_in_notExpr616_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_valueExpr_in_notExpr616 = { FOLLOW_valueExpr_in_notExpr616_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_in_valueExpr628 */
static ANTLR3_BITWORD FOLLOW_LPAREN_in_valueExpr628_bits[] = { ANTLR3_UINT64_LIT(0x1C3F200800798000) };
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_in_valueExpr628 = { FOLLOW_LPAREN_in_valueExpr628_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_in_valueExpr630 */
static ANTLR3_BITWORD FOLLOW_expr_in_valueExpr630_bits[] = { ANTLR3_UINT64_LIT(0x0000400000000000) };
static ANTLR3_BITSET_LIST FOLLOW_expr_in_valueExpr630 = { FOLLOW_expr_in_valueExpr630_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_in_valueExpr632 */
static ANTLR3_BITWORD FOLLOW_RPAREN_in_valueExpr632_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_in_valueExpr632 = { FOLLOW_RPAREN_in_valueExpr632_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_path_in_valueExpr645 */
static ANTLR3_BITWORD FOLLOW_path_in_valueExpr645_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_path_in_valueExpr645 = { FOLLOW_path_in_valueExpr645_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_value_in_valueExpr649 */
static ANTLR3_BITWORD FOLLOW_value_in_valueExpr649_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_value_in_valueExpr649 = { FOLLOW_value_in_valueExpr649_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_function_in_valueExpr653 */
static ANTLR3_BITWORD FOLLOW_function_in_valueExpr653_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_function_in_valueExpr653 = { FOLLOW_function_in_valueExpr653_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_FUNCTION_in_function666 */
static ANTLR3_BITWORD FOLLOW_FUNCTION_in_function666_bits[] = { ANTLR3_UINT64_LIT(0x1C3FE00800798000) };
static ANTLR3_BITSET_LIST FOLLOW_FUNCTION_in_function666 = { FOLLOW_FUNCTION_in_function666_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expressionList_in_function668 */
static ANTLR3_BITWORD FOLLOW_expressionList_in_function668_bits[] = { ANTLR3_UINT64_LIT(0x0000400000000000) };
static ANTLR3_BITSET_LIST FOLLOW_expressionList_in_function668 = { FOLLOW_expressionList_in_function668_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_in_function670 */
static ANTLR3_BITWORD FOLLOW_RPAREN_in_function670_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_in_function670 = { FOLLOW_RPAREN_in_function670_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_in_expressionList693 */
static ANTLR3_BITWORD FOLLOW_expr_in_expressionList693_bits[] = { ANTLR3_UINT64_LIT(0x0000800000000002) };
static ANTLR3_BITSET_LIST FOLLOW_expr_in_expressionList693 = { FOLLOW_expr_in_expressionList693_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_COMMA_in_expressionList698 */
static ANTLR3_BITWORD FOLLOW_COMMA_in_expressionList698_bits[] = { ANTLR3_UINT64_LIT(0x1C3F200800798000) };
static ANTLR3_BITSET_LIST FOLLOW_COMMA_in_expressionList698 = { FOLLOW_COMMA_in_expressionList698_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_in_expressionList701 */
static ANTLR3_BITWORD FOLLOW_expr_in_expressionList701_bits[] = { ANTLR3_UINT64_LIT(0x0000800000000002) };
static ANTLR3_BITSET_LIST FOLLOW_expr_in_expressionList701 = { FOLLOW_expr_in_expressionList701_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_FUNCTION_in_functionNoArgs718 */
static ANTLR3_BITWORD FOLLOW_FUNCTION_in_functionNoArgs718_bits[] = { ANTLR3_UINT64_LIT(0x0000400000000000) };
static ANTLR3_BITSET_LIST FOLLOW_FUNCTION_in_functionNoArgs718 = { FOLLOW_FUNCTION_in_functionNoArgs718_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_in_functionNoArgs720 */
static ANTLR3_BITWORD FOLLOW_RPAREN_in_functionNoArgs720_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_in_functionNoArgs720 = { FOLLOW_RPAREN_in_functionNoArgs720_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_rootPath_in_path742 */
static ANTLR3_BITWORD FOLLOW_rootPath_in_path742_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_rootPath_in_path742 = { FOLLOW_rootPath_in_path742_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SQL_in_path755 */
static ANTLR3_BITWORD FOLLOW_SQL_in_path755_bits[] = { ANTLR3_UINT64_LIT(0x0038000000500000) };
static ANTLR3_BITSET_LIST FOLLOW_SQL_in_path755 = { FOLLOW_SQL_in_path755_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_pathStep_in_path757 */
static ANTLR3_BITWORD FOLLOW_pathStep_in_path757_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_pathStep_in_path757 = { FOLLOW_pathStep_in_path757_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SPECIAL_PREV_in_path770 */
static ANTLR3_BITWORD FOLLOW_SPECIAL_PREV_in_path770_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_SPECIAL_PREV_in_path770 = { FOLLOW_SPECIAL_PREV_in_path770_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SPECIAL_NEXT_in_path783 */
static ANTLR3_BITWORD FOLLOW_SPECIAL_NEXT_in_path783_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_SPECIAL_NEXT_in_path783 = { FOLLOW_SPECIAL_NEXT_in_path783_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_unionPath_in_rootPath806 */
static ANTLR3_BITWORD FOLLOW_unionPath_in_rootPath806_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_unionPath_in_rootPath806 = { FOLLOW_unionPath_in_rootPath806_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_idPath_in_rootPath812 */
static ANTLR3_BITWORD FOLLOW_idPath_in_rootPath812_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_idPath_in_rootPath812 = { FOLLOW_idPath_in_rootPath812_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_absolutePath_in_rootPath818 */
static ANTLR3_BITWORD FOLLOW_absolutePath_in_rootPath818_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_absolutePath_in_rootPath818 = { FOLLOW_absolutePath_in_rootPath818_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_permalink_in_rootPath824 */
static ANTLR3_BITWORD FOLLOW_permalink_in_rootPath824_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_permalink_in_rootPath824 = { FOLLOW_permalink_in_rootPath824_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_AT_in_permalink839 */
static ANTLR3_BITWORD FOLLOW_AT_in_permalink839_bits[] = { ANTLR3_UINT64_LIT(0x0002000000000000) };
static ANTLR3_BITSET_LIST FOLLOW_AT_in_permalink839 = { FOLLOW_AT_in_permalink839_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_PERMALINK_in_permalink841 */
static ANTLR3_BITWORD FOLLOW_PERMALINK_in_permalink841_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_PERMALINK_in_permalink841 = { FOLLOW_PERMALINK_in_permalink841_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_PERMALINK_in_permalink855 */
static ANTLR3_BITWORD FOLLOW_PERMALINK_in_permalink855_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_PERMALINK_in_permalink855 = { FOLLOW_PERMALINK_in_permalink855_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_AT_in_absolutePath873 */
static ANTLR3_BITWORD FOLLOW_AT_in_absolutePath873_bits[] = { ANTLR3_UINT64_LIT(0x0000000000080000) };
static ANTLR3_BITSET_LIST FOLLOW_AT_in_absolutePath873 = { FOLLOW_AT_in_absolutePath873_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SLASH_in_absolutePath875 */
static ANTLR3_BITWORD FOLLOW_SLASH_in_absolutePath875_bits[] = { ANTLR3_UINT64_LIT(0x0038000000500002) };
static ANTLR3_BITSET_LIST FOLLOW_SLASH_in_absolutePath875 = { FOLLOW_SLASH_in_absolutePath875_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_unionPath_in_absolutePath877 */
static ANTLR3_BITWORD FOLLOW_unionPath_in_absolutePath877_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_unionPath_in_absolutePath877 = { FOLLOW_unionPath_in_absolutePath877_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SLASH_in_absolutePath896 */
static ANTLR3_BITWORD FOLLOW_SLASH_in_absolutePath896_bits[] = { ANTLR3_UINT64_LIT(0x0038000000500002) };
static ANTLR3_BITSET_LIST FOLLOW_SLASH_in_absolutePath896 = { FOLLOW_SLASH_in_absolutePath896_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_unionPath_in_absolutePath898 */
static ANTLR3_BITWORD FOLLOW_unionPath_in_absolutePath898_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_unionPath_in_absolutePath898 = { FOLLOW_unionPath_in_absolutePath898_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_AT_in_idPath920 */
static ANTLR3_BITWORD FOLLOW_AT_in_idPath920_bits[] = { ANTLR3_UINT64_LIT(0x1005000000400000) };
static ANTLR3_BITSET_LIST FOLLOW_AT_in_idPath920 = { FOLLOW_AT_in_idPath920_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_INT_in_idPath925 */
static ANTLR3_BITWORD FOLLOW_INT_in_idPath925_bits[] = { ANTLR3_UINT64_LIT(0x0000000000080000) };
static ANTLR3_BITSET_LIST FOLLOW_INT_in_idPath925 = { FOLLOW_INT_in_idPath925_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_variable_in_idPath929 */
static ANTLR3_BITWORD FOLLOW_variable_in_idPath929_bits[] = { ANTLR3_UINT64_LIT(0x0000000000080000) };
static ANTLR3_BITSET_LIST FOLLOW_variable_in_idPath929 = { FOLLOW_variable_in_idPath929_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_functionNoArgs_in_idPath933 */
static ANTLR3_BITWORD FOLLOW_functionNoArgs_in_idPath933_bits[] = { ANTLR3_UINT64_LIT(0x0000000000080000) };
static ANTLR3_BITSET_LIST FOLLOW_functionNoArgs_in_idPath933 = { FOLLOW_functionNoArgs_in_idPath933_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SLASH_in_idPath936 */
static ANTLR3_BITWORD FOLLOW_SLASH_in_idPath936_bits[] = { ANTLR3_UINT64_LIT(0x0038000000500000) };
static ANTLR3_BITSET_LIST FOLLOW_SLASH_in_idPath936 = { FOLLOW_SLASH_in_idPath936_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_relativePath_in_idPath939 */
static ANTLR3_BITWORD FOLLOW_relativePath_in_idPath939_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_relativePath_in_idPath939 = { FOLLOW_relativePath_in_idPath939_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_AT_in_idPath944 */
static ANTLR3_BITWORD FOLLOW_AT_in_idPath944_bits[] = { ANTLR3_UINT64_LIT(0x1005000000400000) };
static ANTLR3_BITSET_LIST FOLLOW_AT_in_idPath944 = { FOLLOW_AT_in_idPath944_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_INT_in_idPath948 */
static ANTLR3_BITWORD FOLLOW_INT_in_idPath948_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_INT_in_idPath948 = { FOLLOW_INT_in_idPath948_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_variable_in_idPath952 */
static ANTLR3_BITWORD FOLLOW_variable_in_idPath952_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_variable_in_idPath952 = { FOLLOW_variable_in_idPath952_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_functionNoArgs_in_idPath956 */
static ANTLR3_BITWORD FOLLOW_functionNoArgs_in_idPath956_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_functionNoArgs_in_idPath956 = { FOLLOW_functionNoArgs_in_idPath956_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_pathStep_in_relativePath972 */
static ANTLR3_BITWORD FOLLOW_pathStep_in_relativePath972_bits[] = { ANTLR3_UINT64_LIT(0x0000000000080002) };
static ANTLR3_BITSET_LIST FOLLOW_pathStep_in_relativePath972 = { FOLLOW_pathStep_in_relativePath972_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SLASH_in_relativePath975 */
static ANTLR3_BITWORD FOLLOW_SLASH_in_relativePath975_bits[] = { ANTLR3_UINT64_LIT(0x1C3F200800798000) };
static ANTLR3_BITSET_LIST FOLLOW_SLASH_in_relativePath975 = { FOLLOW_SLASH_in_relativePath975_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_pathStepInternal_in_relativePath978 */
static ANTLR3_BITWORD FOLLOW_pathStepInternal_in_relativePath978_bits[] = { ANTLR3_UINT64_LIT(0x0000000000080002) };
static ANTLR3_BITSET_LIST FOLLOW_pathStepInternal_in_relativePath978 = { FOLLOW_pathStepInternal_in_relativePath978_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_set_in_relativePathWithoutPredicates995 */
static ANTLR3_BITWORD FOLLOW_set_in_relativePathWithoutPredicates995_bits[] = { ANTLR3_UINT64_LIT(0x0000000000080002) };
static ANTLR3_BITSET_LIST FOLLOW_set_in_relativePathWithoutPredicates995 = { FOLLOW_set_in_relativePathWithoutPredicates995_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SLASH_in_relativePathWithoutPredicates1004 */
static ANTLR3_BITWORD FOLLOW_SLASH_in_relativePathWithoutPredicates1004_bits[] = { ANTLR3_UINT64_LIT(0x0018000000000000) };
static ANTLR3_BITSET_LIST FOLLOW_SLASH_in_relativePathWithoutPredicates1004 = { FOLLOW_SLASH_in_relativePathWithoutPredicates1004_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_set_in_relativePathWithoutPredicates1007 */
static ANTLR3_BITWORD FOLLOW_set_in_relativePathWithoutPredicates1007_bits[] = { ANTLR3_UINT64_LIT(0x0000000000080002) };
static ANTLR3_BITSET_LIST FOLLOW_set_in_relativePathWithoutPredicates1007 = { FOLLOW_set_in_relativePathWithoutPredicates1007_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_relativePath_in_unionPath1030 */
static ANTLR3_BITWORD FOLLOW_relativePath_in_unionPath1030_bits[] = { ANTLR3_UINT64_LIT(0x0000008000000002) };
static ANTLR3_BITSET_LIST FOLLOW_relativePath_in_unionPath1030 = { FOLLOW_relativePath_in_unionPath1030_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_PIPE_in_unionPath1033 */
static ANTLR3_BITWORD FOLLOW_PIPE_in_unionPath1033_bits[] = { ANTLR3_UINT64_LIT(0x0038000000500000) };
static ANTLR3_BITSET_LIST FOLLOW_PIPE_in_unionPath1033 = { FOLLOW_PIPE_in_unionPath1033_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_relativePath_in_unionPath1036 */
static ANTLR3_BITWORD FOLLOW_relativePath_in_unionPath1036_bits[] = { ANTLR3_UINT64_LIT(0x0000008000000002) };
static ANTLR3_BITSET_LIST FOLLOW_relativePath_in_unionPath1036 = { FOLLOW_relativePath_in_unionPath1036_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_axisSpecifier_in_pathStep1053 */
static ANTLR3_BITWORD FOLLOW_axisSpecifier_in_pathStep1053_bits[] = { ANTLR3_UINT64_LIT(0x0018000000100000) };
static ANTLR3_BITSET_LIST FOLLOW_axisSpecifier_in_pathStep1053 = { FOLLOW_axisSpecifier_in_pathStep1053_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_set_in_pathStep1057 */
static ANTLR3_BITWORD FOLLOW_set_in_pathStep1057_bits[] = { ANTLR3_UINT64_LIT(0x0000080000000002) };
static ANTLR3_BITSET_LIST FOLLOW_set_in_pathStep1057 = { FOLLOW_set_in_pathStep1057_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_predicate_in_pathStep1071 */
static ANTLR3_BITWORD FOLLOW_predicate_in_pathStep1071_bits[] = { ANTLR3_UINT64_LIT(0x0000080000000002) };
static ANTLR3_BITSET_LIST FOLLOW_predicate_in_pathStep1071 = { FOLLOW_predicate_in_pathStep1071_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_INT_in_pathStepInternal1086 */
static ANTLR3_BITWORD FOLLOW_INT_in_pathStepInternal1086_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_INT_in_pathStepInternal1086 = { FOLLOW_INT_in_pathStepInternal1086_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_variable_in_pathStepInternal1092 */
static ANTLR3_BITWORD FOLLOW_variable_in_pathStepInternal1092_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_variable_in_pathStepInternal1092 = { FOLLOW_variable_in_pathStepInternal1092_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_function_in_pathStepInternal1098 */
static ANTLR3_BITWORD FOLLOW_function_in_pathStepInternal1098_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_function_in_pathStepInternal1098 = { FOLLOW_function_in_pathStepInternal1098_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_pathStep_in_pathStepInternal1104 */
static ANTLR3_BITWORD FOLLOW_pathStep_in_pathStepInternal1104_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_pathStep_in_pathStepInternal1104 = { FOLLOW_pathStep_in_pathStepInternal1104_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_XPATH_AXES_in_axisSpecifier1117 */
static ANTLR3_BITWORD FOLLOW_XPATH_AXES_in_axisSpecifier1117_bits[] = { ANTLR3_UINT64_LIT(0x0000000000800000) };
static ANTLR3_BITSET_LIST FOLLOW_XPATH_AXES_in_axisSpecifier1117 = { FOLLOW_XPATH_AXES_in_axisSpecifier1117_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_XPATH_AXIS_SEP_in_axisSpecifier1119 */
static ANTLR3_BITWORD FOLLOW_XPATH_AXIS_SEP_in_axisSpecifier1119_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_XPATH_AXIS_SEP_in_axisSpecifier1119 = { FOLLOW_XPATH_AXIS_SEP_in_axisSpecifier1119_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_AT_in_axisSpecifier1126 */
static ANTLR3_BITWORD FOLLOW_AT_in_axisSpecifier1126_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_AT_in_axisSpecifier1126 = { FOLLOW_AT_in_axisSpecifier1126_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LBRACKET_in_predicate1140 */
static ANTLR3_BITWORD FOLLOW_LBRACKET_in_predicate1140_bits[] = { ANTLR3_UINT64_LIT(0x1C7F240800798000) };
static ANTLR3_BITSET_LIST FOLLOW_LBRACKET_in_predicate1140 = { FOLLOW_LBRACKET_in_predicate1140_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_predicateExpr_in_predicate1142 */
static ANTLR3_BITWORD FOLLOW_predicateExpr_in_predicate1142_bits[] = { ANTLR3_UINT64_LIT(0x0000100000000000) };
static ANTLR3_BITSET_LIST FOLLOW_predicateExpr_in_predicate1142 = { FOLLOW_predicateExpr_in_predicate1142_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RBRACKET_in_predicate1144 */
static ANTLR3_BITWORD FOLLOW_RBRACKET_in_predicate1144_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_RBRACKET_in_predicate1144 = { FOLLOW_RBRACKET_in_predicate1144_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_predicateAndExpr_in_predicateExpr1165 */
static ANTLR3_BITWORD FOLLOW_predicateAndExpr_in_predicateExpr1165_bits[] = { ANTLR3_UINT64_LIT(0x0100000200000002) };
static ANTLR3_BITSET_LIST FOLLOW_predicateAndExpr_in_predicateExpr1165 = { FOLLOW_predicateAndExpr_in_predicateExpr1165_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_orOper_in_predicateExpr1168 */
static ANTLR3_BITWORD FOLLOW_orOper_in_predicateExpr1168_bits[] = { ANTLR3_UINT64_LIT(0x1C7F240800798000) };
static ANTLR3_BITSET_LIST FOLLOW_orOper_in_predicateExpr1168 = { FOLLOW_orOper_in_predicateExpr1168_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_predicateAndExpr_in_predicateExpr1171 */
static ANTLR3_BITWORD FOLLOW_predicateAndExpr_in_predicateExpr1171_bits[] = { ANTLR3_UINT64_LIT(0x0100000200000002) };
static ANTLR3_BITSET_LIST FOLLOW_predicateAndExpr_in_predicateExpr1171 = { FOLLOW_predicateAndExpr_in_predicateExpr1171_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_relativePathWithoutPredicates_in_predicateExpr1179 */
static ANTLR3_BITWORD FOLLOW_relativePathWithoutPredicates_in_predicateExpr1179_bits[] = { ANTLR3_UINT64_LIT(0x0000020000000000) };
static ANTLR3_BITSET_LIST FOLLOW_relativePathWithoutPredicates_in_predicateExpr1179 = { FOLLOW_relativePathWithoutPredicates_in_predicateExpr1179_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_COLON_in_predicateExpr1181 */
static ANTLR3_BITWORD FOLLOW_COLON_in_predicateExpr1181_bits[] = { ANTLR3_UINT64_LIT(0x1C3F200800798000) };
static ANTLR3_BITSET_LIST FOLLOW_COLON_in_predicateExpr1181 = { FOLLOW_COLON_in_predicateExpr1181_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_function_in_predicateExpr1184 */
static ANTLR3_BITWORD FOLLOW_function_in_predicateExpr1184_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_function_in_predicateExpr1184 = { FOLLOW_function_in_predicateExpr1184_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_INT_in_predicateExpr1190 */
static ANTLR3_BITWORD FOLLOW_INT_in_predicateExpr1190_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_INT_in_predicateExpr1190 = { FOLLOW_INT_in_predicateExpr1190_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_predicateComparisonExpr_in_predicateAndExpr1205 */
static ANTLR3_BITWORD FOLLOW_predicateComparisonExpr_in_predicateAndExpr1205_bits[] = { ANTLR3_UINT64_LIT(0x0080000100000002) };
static ANTLR3_BITSET_LIST FOLLOW_predicateComparisonExpr_in_predicateAndExpr1205 = { FOLLOW_predicateComparisonExpr_in_predicateAndExpr1205_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_andOper_in_predicateAndExpr1208 */
static ANTLR3_BITWORD FOLLOW_andOper_in_predicateAndExpr1208_bits[] = { ANTLR3_UINT64_LIT(0x1C7F240800798000) };
static ANTLR3_BITSET_LIST FOLLOW_andOper_in_predicateAndExpr1208 = { FOLLOW_andOper_in_predicateAndExpr1208_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_predicateComparisonExpr_in_predicateAndExpr1211 */
static ANTLR3_BITWORD FOLLOW_predicateComparisonExpr_in_predicateAndExpr1211_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_predicateComparisonExpr_in_predicateAndExpr1211 = { FOLLOW_predicateComparisonExpr_in_predicateAndExpr1211_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_predicatePathExpr_in_predicateComparisonExpr1226 */
static ANTLR3_BITWORD FOLLOW_predicatePathExpr_in_predicateComparisonExpr1226_bits[] = { ANTLR3_UINT64_LIT(0x00000000FF000000) };
static ANTLR3_BITSET_LIST FOLLOW_predicatePathExpr_in_predicateComparisonExpr1226 = { FOLLOW_predicatePathExpr_in_predicateComparisonExpr1226_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_comparisonOper_in_predicateComparisonExpr1228 */
static ANTLR3_BITWORD FOLLOW_comparisonOper_in_predicateComparisonExpr1228_bits[] = { ANTLR3_UINT64_LIT(0x1C7F240800798000) };
static ANTLR3_BITSET_LIST FOLLOW_comparisonOper_in_predicateComparisonExpr1228 = { FOLLOW_comparisonOper_in_predicateComparisonExpr1228_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_predicatePathExpr_in_predicateComparisonExpr1231 */
static ANTLR3_BITWORD FOLLOW_predicatePathExpr_in_predicateComparisonExpr1231_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_predicatePathExpr_in_predicateComparisonExpr1231 = { FOLLOW_predicatePathExpr_in_predicateComparisonExpr1231_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_unionPath_in_predicatePathExpr1244 */
static ANTLR3_BITWORD FOLLOW_unionPath_in_predicatePathExpr1244_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_unionPath_in_predicatePathExpr1244 = { FOLLOW_unionPath_in_predicatePathExpr1244_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_PATHREF_in_predicatePathExpr1250 */
static ANTLR3_BITWORD FOLLOW_PATHREF_in_predicatePathExpr1250_bits[] = { ANTLR3_UINT64_LIT(0x0038000000500000) };
static ANTLR3_BITSET_LIST FOLLOW_PATHREF_in_predicatePathExpr1250 = { FOLLOW_PATHREF_in_predicatePathExpr1250_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_unionPath_in_predicatePathExpr1252 */
static ANTLR3_BITWORD FOLLOW_unionPath_in_predicatePathExpr1252_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_unionPath_in_predicatePathExpr1252 = { FOLLOW_unionPath_in_predicatePathExpr1252_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_filterExpr_in_predicatePathExpr1270 */
static ANTLR3_BITWORD FOLLOW_filterExpr_in_predicatePathExpr1270_bits[] = { ANTLR3_UINT64_LIT(0x0000000000080002) };
static ANTLR3_BITSET_LIST FOLLOW_filterExpr_in_predicatePathExpr1270 = { FOLLOW_filterExpr_in_predicatePathExpr1270_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SLASH_in_predicatePathExpr1273 */
static ANTLR3_BITWORD FOLLOW_SLASH_in_predicatePathExpr1273_bits[] = { ANTLR3_UINT64_LIT(0x0038000000500000) };
static ANTLR3_BITSET_LIST FOLLOW_SLASH_in_predicatePathExpr1273 = { FOLLOW_SLASH_in_predicatePathExpr1273_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_relativePath_in_predicatePathExpr1276 */
static ANTLR3_BITWORD FOLLOW_relativePath_in_predicatePathExpr1276_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_relativePath_in_predicatePathExpr1276 = { FOLLOW_relativePath_in_predicatePathExpr1276_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_primaryExpr_in_filterExpr1291 */
static ANTLR3_BITWORD FOLLOW_primaryExpr_in_filterExpr1291_bits[] = { ANTLR3_UINT64_LIT(0x0000080000000002) };
static ANTLR3_BITSET_LIST FOLLOW_primaryExpr_in_filterExpr1291 = { FOLLOW_primaryExpr_in_filterExpr1291_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_predicate_in_filterExpr1293 */
static ANTLR3_BITWORD FOLLOW_predicate_in_filterExpr1293_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_predicate_in_filterExpr1293 = { FOLLOW_predicate_in_filterExpr1293_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_in_primaryExpr1307 */
static ANTLR3_BITWORD FOLLOW_LPAREN_in_primaryExpr1307_bits[] = { ANTLR3_UINT64_LIT(0x1C7F240800798000) };
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_in_primaryExpr1307 = { FOLLOW_LPAREN_in_primaryExpr1307_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_predicateExpr_in_primaryExpr1309 */
static ANTLR3_BITWORD FOLLOW_predicateExpr_in_primaryExpr1309_bits[] = { ANTLR3_UINT64_LIT(0x0000400000000000) };
static ANTLR3_BITSET_LIST FOLLOW_predicateExpr_in_primaryExpr1309 = { FOLLOW_predicateExpr_in_primaryExpr1309_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_in_primaryExpr1311 */
static ANTLR3_BITWORD FOLLOW_RPAREN_in_primaryExpr1311_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_in_primaryExpr1311 = { FOLLOW_RPAREN_in_primaryExpr1311_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_value_in_primaryExpr1325 */
static ANTLR3_BITWORD FOLLOW_value_in_primaryExpr1325_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_value_in_primaryExpr1325 = { FOLLOW_value_in_primaryExpr1325_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_function_in_primaryExpr1332 */
static ANTLR3_BITWORD FOLLOW_function_in_primaryExpr1332_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_function_in_primaryExpr1332 = { FOLLOW_function_in_primaryExpr1332_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_xpathFunction_in_primaryExpr1338 */
static ANTLR3_BITWORD FOLLOW_xpathFunction_in_primaryExpr1338_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_xpathFunction_in_primaryExpr1338 = { FOLLOW_xpathFunction_in_primaryExpr1338_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_XPATH_FUNCTION_in_xpathFunction1352 */
static ANTLR3_BITWORD FOLLOW_XPATH_FUNCTION_in_xpathFunction1352_bits[] = { ANTLR3_UINT64_LIT(0x1C3FE00800798000) };
static ANTLR3_BITSET_LIST FOLLOW_XPATH_FUNCTION_in_xpathFunction1352 = { FOLLOW_XPATH_FUNCTION_in_xpathFunction1352_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expressionList_in_xpathFunction1354 */
static ANTLR3_BITWORD FOLLOW_expressionList_in_xpathFunction1354_bits[] = { ANTLR3_UINT64_LIT(0x0000400000000000) };
static ANTLR3_BITSET_LIST FOLLOW_expressionList_in_xpathFunction1354 = { FOLLOW_expressionList_in_xpathFunction1354_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_in_xpathFunction1356 */
static ANTLR3_BITWORD FOLLOW_RPAREN_in_xpathFunction1356_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_in_xpathFunction1356 = { FOLLOW_RPAREN_in_xpathFunction1356_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_set_in_andOper0 */
static ANTLR3_BITWORD FOLLOW_set_in_andOper0_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_set_in_andOper0 = { FOLLOW_set_in_andOper0_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_set_in_orOper0 */
static ANTLR3_BITWORD FOLLOW_set_in_orOper0_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_set_in_orOper0 = { FOLLOW_set_in_orOper0_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_set_in_xorOper0 */
static ANTLR3_BITWORD FOLLOW_set_in_xorOper0_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_set_in_xorOper0 = { FOLLOW_set_in_xorOper0_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_variable_in_value1435 */
static ANTLR3_BITWORD FOLLOW_variable_in_value1435_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_variable_in_value1435 = { FOLLOW_variable_in_value1435_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_STRING_in_value1440 */
static ANTLR3_BITWORD FOLLOW_STRING_in_value1440_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_STRING_in_value1440 = { FOLLOW_STRING_in_value1440_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_INT_in_value1453 */
static ANTLR3_BITWORD FOLLOW_INT_in_value1453_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_INT_in_value1453 = { FOLLOW_INT_in_value1453_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_FLOAT_in_value1466 */
static ANTLR3_BITWORD FOLLOW_FLOAT_in_value1466_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_FLOAT_in_value1466 = { FOLLOW_FLOAT_in_value1466_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_VARIABLE_in_variable1487 */
static ANTLR3_BITWORD FOLLOW_VARIABLE_in_variable1487_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_VARIABLE_in_variable1487 = { FOLLOW_VARIABLE_in_variable1487_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_set_in_comparisonOper0 */
static ANTLR3_BITWORD FOLLOW_set_in_comparisonOper0_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_set_in_comparisonOper0 = { FOLLOW_set_in_comparisonOper0_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_set_in_addSubOper0 */
static ANTLR3_BITWORD FOLLOW_set_in_addSubOper0_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_set_in_addSubOper0 = { FOLLOW_set_in_addSubOper0_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_set_in_multOper0 */
static ANTLR3_BITWORD FOLLOW_set_in_multOper0_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_set_in_multOper0 = { FOLLOW_set_in_multOper0_bits, 1 };
/* =========================================================================
* DFA tables for the parser
*/
/** Static dfa state tables for Cyclic dfa:
* 183:1: predicateExpr : ( predicateAndExpr ( orOper predicateAndExpr )* | relativePathWithoutPredicates COLON function | INT );
*/
static const ANTLR3_INT32 dfa31_eot[8] =
{
-1, -1, -1, -1, -1, -1, -1, -1
};
static const ANTLR3_INT32 dfa31_eof[8] =
{
-1, -1, -1, -1, -1, -1, -1, -1
};
static const ANTLR3_INT32 dfa31_min[8] =
{
20, -1, 19, 19, 20, -1, -1, 19
};
static const ANTLR3_INT32 dfa31_max[8] =
{
60, -1, 43, 46, 60, -1, -1, 43
};
static const ANTLR3_INT32 dfa31_accept[8] =
{
-1, 1, -1, -1, -1, 2, 3, -1
};
static const ANTLR3_INT32 dfa31_special[8] =
{
-1, -1, -1, -1, -1, -1, -1, -1
};
/** Used when there is no transition table entry for a particular state */
#define dfa31_T_empty NULL
static const ANTLR3_INT32 dfa31_T0[] =
{
1, -1, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, 1, -1, -1, 1, -1, -1, 1, -1, 3, 2, 2, 1, 1, -1, -1, -1, 1,
1, 1
};static const ANTLR3_INT32 dfa31_T1[] =
{
1, -1, -1, -1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 1, 6, -1, 6
};static const ANTLR3_INT32 dfa31_T2[] =
{
4, -1, -1, -1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, -1, -1, -1, -1, -1, -1,
1, -1, 5, -1, 1
};static const ANTLR3_INT32 dfa31_T3[] =
{
1, -1, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, 1, 7, 7, 1, -1, -1, -1, -1,
-1, -1, 1
};
/* Transition tables are a table of sub tables, with some tables
* reused for efficiency.
*/
static const ANTLR3_INT32 * const dfa31_transitions[] =
{
dfa31_T0, dfa31_T_empty, dfa31_T2, dfa31_T1, dfa31_T3, dfa31_T_empty,
dfa31_T_empty, dfa31_T2
};
/* Declare tracking structure for Cyclic DFA 31
*/
static
ANTLR3_CYCLIC_DFA cdfa31
= {
31, /* Decision number of this dfa */
/* Which decision this represents: */
(const pANTLR3_UCHAR)"183:1: predicateExpr : ( predicateAndExpr ( orOper predicateAndExpr )* | relativePathWithoutPredicates COLON function | INT );",
(CDFA_SPECIAL_FUNC) antlr3dfaspecialStateTransition, /* Default special state transition function */
antlr3dfaspecialTransition, /* DFA specialTransition is currently just a default function in the runtime */
antlr3dfapredict, /* DFA simulator function is in the runtime */
dfa31_eot, /* EOT table */
dfa31_eof, /* EOF table */
dfa31_min, /* Minimum tokens for each state */
dfa31_max, /* Maximum tokens for each state */
dfa31_accept, /* Accept table */
dfa31_special, /* Special transition states */
dfa31_transitions /* Table of transition tables */
};
/* End of Cyclic DFA 31
* ---------------------
*/
/* =========================================================================
* End of DFA tables for the parser
*/
/* ==============================================
* Parsing rules
*/
/**
* $ANTLR start start
* VaeQueryLanguage.g:64:1: start : expr EOF -> ^( expr ) ;
*/
static VaeQueryLanguageParser_start_return
start(pVaeQueryLanguageParser ctx)
{
VaeQueryLanguageParser_start_return retval;
pANTLR3_BASE_TREE root_0;
pANTLR3_COMMON_TOKEN EOF2;
VaeQueryLanguageParser_expr_return expr1;
#undef RETURN_TYPE_expr1
#define RETURN_TYPE_expr1 VaeQueryLanguageParser_expr_return
pANTLR3_BASE_TREE EOF2_tree;
pANTLR3_REWRITE_RULE_TOKEN_STREAM stream_EOF;
pANTLR3_REWRITE_RULE_SUBTREE_STREAM stream_expr;
/* Initialize rule variables
*/
root_0 = NULL;
EOF2 = NULL;
expr1.tree = NULL;
retval.start = LT(1); retval.stop = retval.start;
EOF2_tree = NULL;
stream_EOF = NULL;
#define CREATE_stream_EOF if (stream_EOF == NULL) {stream_EOF = antlr3RewriteRuleTOKENStreamNewAE(ADAPTOR, RECOGNIZER, (pANTLR3_UINT8)"token EOF"); }
stream_expr = NULL;
#define CREATE_stream_expr if (stream_expr == NULL) {stream_expr = antlr3RewriteRuleSubtreeStreamNewAE(ADAPTOR, RECOGNIZER, (pANTLR3_UINT8)"rule expr"); }
retval.tree = NULL;
{
// VaeQueryLanguage.g:65:2: ( expr EOF -> ^( expr ) )
// VaeQueryLanguage.g:65:4: expr EOF
{