-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyatgParser.cpp
21044 lines (17843 loc) · 803 KB
/
yatgParser.cpp
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 : C:\\Zlang\\src\\Zzparser\\Grammar\\yatg.g
* - On : 2010-07-07 17:24:01
* - for the parser : yatgParserParser *
* 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 "yatgParser.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) pyatgParser_##scope##_SCOPE
#define SCOPE_STACK(scope) pyatgParser_##scope##Stack
#define SCOPE_TOP(scope) ctx->pyatgParser_##scope##Top
#define SCOPE_SIZE(scope) ctx->pyatgParser_##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 yatgParserTokenNames[167+4]
= {
(pANTLR3_UINT8) "<invalid>", /* String to print to indicate an invalid token */
(pANTLR3_UINT8) "<EOR>",
(pANTLR3_UINT8) "<DOWN>",
(pANTLR3_UINT8) "<UP>",
(pANTLR3_UINT8) "VDECL",
(pANTLR3_UINT8) "VDEF",
(pANTLR3_UINT8) "VVAL",
(pANTLR3_UINT8) "ESEQ",
(pANTLR3_UINT8) "EIF",
(pANTLR3_UINT8) "EIF_COND",
(pANTLR3_UINT8) "EIF_THEN",
(pANTLR3_UINT8) "EIF_ELSE",
(pANTLR3_UINT8) "EIF_END",
(pANTLR3_UINT8) "EWHILE",
(pANTLR3_UINT8) "EWHILE_CON",
(pANTLR3_UINT8) "EWHILE_EXP",
(pANTLR3_UINT8) "EWHILE_END",
(pANTLR3_UINT8) "EDO",
(pANTLR3_UINT8) "EDO_CON",
(pANTLR3_UINT8) "EDO_EXP",
(pANTLR3_UINT8) "EDO_END",
(pANTLR3_UINT8) "EFOR",
(pANTLR3_UINT8) "EFOR_SRC",
(pANTLR3_UINT8) "EFOR_EXP",
(pANTLR3_UINT8) "EFOR_END",
(pANTLR3_UINT8) "ESRC_START",
(pANTLR3_UINT8) "ESRC_TO",
(pANTLR3_UINT8) "ESRC_BY",
(pANTLR3_UINT8) "ESRC_WHERE",
(pANTLR3_UINT8) "P_BOX2",
(pANTLR3_UINT8) "P_P2",
(pANTLR3_UINT8) "P_P3",
(pANTLR3_UINT8) "ARR_A",
(pANTLR3_UINT8) "ARR_BIT",
(pANTLR3_UINT8) "ARR_BIT_RANGE",
(pANTLR3_UINT8) "ARR_IND",
(pANTLR3_UINT8) "LP_EXIT",
(pANTLR3_UINT8) "LP_EXIT_WITH",
(pANTLR3_UINT8) "LP_CONT",
(pANTLR3_UINT8) "CASE",
(pANTLR3_UINT8) "CASE_Exp",
(pANTLR3_UINT8) "CASE_Item",
(pANTLR3_UINT8) "DEFAULT",
(pANTLR3_UINT8) "ECASE_END",
(pANTLR3_UINT8) "STRUCT",
(pANTLR3_UINT8) "MEMBER",
(pANTLR3_UINT8) "ETRY",
(pANTLR3_UINT8) "ETRY_EXP",
(pANTLR3_UINT8) "ECATCH_EXP",
(pANTLR3_UINT8) "RETURN",
(pANTLR3_UINT8) "FUN_DEF",
(pANTLR3_UINT8) "FUN_NAME",
(pANTLR3_UINT8) "BODY",
(pANTLR3_UINT8) "FUN",
(pANTLR3_UINT8) "MAPPED",
(pANTLR3_UINT8) "FUN_DEF_END",
(pANTLR3_UINT8) "STRING",
(pANTLR3_UINT8) "CONTEXT",
(pANTLR3_UINT8) "COORDSYS",
(pANTLR3_UINT8) "SELECTION",
(pANTLR3_UINT8) "PIVOT",
(pANTLR3_UINT8) "ABOUT",
(pANTLR3_UINT8) "LOCAL",
(pANTLR3_UINT8) "WORLD",
(pANTLR3_UINT8) "PARENT",
(pANTLR3_UINT8) "LEVEL",
(pANTLR3_UINT8) "ANIMATE",
(pANTLR3_UINT8) "TIME",
(pANTLR3_UINT8) "WITH",
(pANTLR3_UINT8) "UNDO",
(pANTLR3_UINT8) "EIN",
(pANTLR3_UINT8) "AT",
(pANTLR3_UINT8) "OPERAND",
(pANTLR3_UINT8) "DOT",
(pANTLR3_UINT8) "ARG_EXPR_L",
(pANTLR3_UINT8) "ID_MORE",
(pANTLR3_UINT8) "SET",
(pANTLR3_UINT8) "PRIM_EXP",
(pANTLR3_UINT8) "NUMBER",
(pANTLR3_UINT8) "MATRIX",
(pANTLR3_UINT8) "ROW",
(pANTLR3_UINT8) "SS_COMMA",
(pANTLR3_UINT8) "KW_LOCAL",
(pANTLR3_UINT8) "KW_GLOBAL",
(pANTLR3_UINT8) "IDENTIFIER",
(pANTLR3_UINT8) "SS_EQUAL",
(pANTLR3_UINT8) "KW_IF",
(pANTLR3_UINT8) "KW_THEN",
(pANTLR3_UINT8) "KW_DO",
(pANTLR3_UINT8) "KW_ELSE",
(pANTLR3_UINT8) "KW_WHILE",
(pANTLR3_UINT8) "KW_FOR",
(pANTLR3_UINT8) "KW_IN",
(pANTLR3_UINT8) "KW_COLLECT",
(pANTLR3_UINT8) "KW_TO",
(pANTLR3_UINT8) "KW_BY",
(pANTLR3_UINT8) "KW_WHERE",
(pANTLR3_UINT8) "KW_EXIT",
(pANTLR3_UINT8) "KW_WITH",
(pANTLR3_UINT8) "KW_CONTINUE",
(pANTLR3_UINT8) "KW_CASE",
(pANTLR3_UINT8) "KW_OF",
(pANTLR3_UINT8) "SS_OPAREN",
(pANTLR3_UINT8) "SS_CPAREN",
(pANTLR3_UINT8) "SS_COLON",
(pANTLR3_UINT8) "KW_DEFAULT",
(pANTLR3_UINT8) "KW_STRUCT",
(pANTLR3_UINT8) "KW_TRY",
(pANTLR3_UINT8) "KW_CATCH",
(pANTLR3_UINT8) "KW_MAPPED",
(pANTLR3_UINT8) "KW_FUNCTION",
(pANTLR3_UINT8) "KW_FN",
(pANTLR3_UINT8) "KW_RETURN",
(pANTLR3_UINT8) "KW_ANIMATE",
(pANTLR3_UINT8) "KW_AT",
(pANTLR3_UINT8) "KW_LEVEL",
(pANTLR3_UINT8) "KW_TIME",
(pANTLR3_UINT8) "KW_COORDSYS",
(pANTLR3_UINT8) "KW_WORLD",
(pANTLR3_UINT8) "KW_PARENT",
(pANTLR3_UINT8) "KW_ABOUT",
(pANTLR3_UINT8) "KW_PIVOT",
(pANTLR3_UINT8) "KW_SELECTION",
(pANTLR3_UINT8) "KW_UNDO",
(pANTLR3_UINT8) "KW_SET",
(pANTLR3_UINT8) "SS_PLUS",
(pANTLR3_UINT8) "SS_MINUS",
(pANTLR3_UINT8) "SS_STAR",
(pANTLR3_UINT8) "SS_FSLASH",
(pANTLR3_UINT8) "SS_PERCENT",
(pANTLR3_UINT8) "SS_DOT",
(pANTLR3_UINT8) "SS_OBRACKET",
(pANTLR3_UINT8) "SS_CBRACKET",
(pANTLR3_UINT8) "HEX_LITERAL",
(pANTLR3_UINT8) "STRING_LITERIAL",
(pANTLR3_UINT8) "SS_HASH",
(pANTLR3_UINT8) "KW_TRUE",
(pANTLR3_UINT8) "KW_FALSE",
(pANTLR3_UINT8) "KW_ON",
(pANTLR3_UINT8) "KW_OFF",
(pANTLR3_UINT8) "KW_OK",
(pANTLR3_UINT8) "KW_UNDEFINED",
(pANTLR3_UINT8) "KW_UNSUPPLIED",
(pANTLR3_UINT8) "DIGIT",
(pANTLR3_UINT8) "DIGIT1",
(pANTLR3_UINT8) "SS_STAR_EQUAL",
(pANTLR3_UINT8) "SS_FSLASH_EQUAL",
(pANTLR3_UINT8) "SS_PERCENT_EQUAL",
(pANTLR3_UINT8) "SS_PLUS_EQUAL",
(pANTLR3_UINT8) "SS_MINUS_EQUAL",
(pANTLR3_UINT8) "SS_D_BAR",
(pANTLR3_UINT8) "SS_D_AMP",
(pANTLR3_UINT8) "SS_D_EQUAL",
(pANTLR3_UINT8) "SS_EXC_EQUAL",
(pANTLR3_UINT8) "SS_LT",
(pANTLR3_UINT8) "SS_GT",
(pANTLR3_UINT8) "SS_LT_EQUAL",
(pANTLR3_UINT8) "SS_GT_EQUAL",
(pANTLR3_UINT8) "SS_OCBRACKET",
(pANTLR3_UINT8) "SS_CCBRACKET",
(pANTLR3_UINT8) "SS_D_DOT",
(pANTLR3_UINT8) "EscapeSequence",
(pANTLR3_UINT8) "SS_DQUOTE",
(pANTLR3_UINT8) "ESQ_FSLASH_SQUOTE",
(pANTLR3_UINT8) "LETTER",
(pANTLR3_UINT8) "HexDigit",
(pANTLR3_UINT8) "WS",
(pANTLR3_UINT8) "EOL",
(pANTLR3_UINT8) "COMMENT",
(pANTLR3_UINT8) "LINE_COMMENT",
(pANTLR3_UINT8) "REF_OP"
};
// Forward declare the locally static matching functions we have generated.
//
static yatgParser_program_return program (pyatgParser ctx);
static yatgParser_expr_return expr (pyatgParser ctx);
static yatgParser_variable_decls_return variable_decls (pyatgParser ctx);
static yatgParser_type_decl_return type_decl (pyatgParser ctx);
static yatgParser_decl_return decl (pyatgParser ctx);
static yatgParser_if_expr_return if_expr (pyatgParser ctx);
static yatgParser_while_loop_return while_loop (pyatgParser ctx);
static yatgParser_do_loop_return do_loop (pyatgParser ctx);
static yatgParser_for_loop_return for_loop (pyatgParser ctx);
static yatgParser_source_return source (pyatgParser ctx);
static yatgParser_loop_exit_return loop_exit (pyatgParser ctx);
static yatgParser_loop_continue_return loop_continue (pyatgParser ctx);
static yatgParser_case_expr_return case_expr (pyatgParser ctx);
static yatgParser_case_item_return case_item (pyatgParser ctx);
static yatgParser_struct_def_return struct_def (pyatgParser ctx);
static yatgParser_member_return member (pyatgParser ctx);
static yatgParser_try_expr_return try_expr (pyatgParser ctx);
static yatgParser_function_def_return function_def (pyatgParser ctx);
static yatgParser_fun_return fun (pyatgParser ctx);
static yatgParser_function_return_return function_return (pyatgParser ctx);
static yatgParser_context_expr_return context_expr (pyatgParser ctx);
static yatgParser_context_return context (pyatgParser ctx);
static yatgParser_set_context_return set_context (pyatgParser ctx);
static yatgParser_math_expression_return math_expression (pyatgParser ctx);
static yatgParser_additive_expression_return additive_expression (pyatgParser ctx);
static yatgParser_multiplicative_expression_return multiplicative_expression (pyatgParser ctx);
static yatgParser_argT_return argT (pyatgParser ctx);
static yatgParser_argument_decl_list_return argument_decl_list (pyatgParser ctx);
static yatgParser_argument_expression_list_return argument_expression_list (pyatgParser ctx);
static yatgParser_unary_expression_return unary_expression (pyatgParser ctx);
static yatgParser_operand_return operand (pyatgParser ctx);
static yatgParser_operand_op_return operand_op (pyatgParser ctx);
static yatgParser_constant_return constant (pyatgParser ctx);
static yatgParser_number_return number (pyatgParser ctx);
static yatgParser_constant_expression_return constant_expression (pyatgParser ctx);
static yatgParser_assignment_expression_return assignment_expression (pyatgParser ctx);
static yatgParser_lvalue_return lvalue (pyatgParser ctx);
static yatgParser_assignment_operator_return assignment_operator (pyatgParser ctx);
static yatgParser_logical_expression_return logical_expression (pyatgParser ctx);
static yatgParser_logical_or_expression_return logical_or_expression (pyatgParser ctx);
static yatgParser_logical_and_expression_return logical_and_expression (pyatgParser ctx);
static yatgParser_equality_expression_return equality_expression (pyatgParser ctx);
static yatgParser_relational_expression_return relational_expression (pyatgParser ctx);
static yatgParser_expr_seq_return expr_seq (pyatgParser ctx);
static yatgParser_expr_g_return expr_g (pyatgParser ctx);
static yatgParser_box2_return box2 (pyatgParser ctx);
static yatgParser_point3_return point3 (pyatgParser ctx);
static yatgParser_point2_return point2 (pyatgParser ctx);
static yatgParser_array_return array (pyatgParser ctx);
static yatgParser_matrix_return matrix (pyatgParser ctx);
static yatgParser_bitarray_return bitarray (pyatgParser ctx);
static yatgParser_arrrange_return arrrange (pyatgParser ctx);
static ANTLR3_BOOLEAN synpred2_yatg (pyatgParser ctx);
static ANTLR3_BOOLEAN synpred16_yatg (pyatgParser ctx);
static ANTLR3_BOOLEAN synpred20_yatg (pyatgParser ctx);
static ANTLR3_BOOLEAN synpred26_yatg (pyatgParser ctx);
static ANTLR3_BOOLEAN synpred53_yatg (pyatgParser ctx);
static ANTLR3_BOOLEAN synpred60_yatg (pyatgParser ctx);
static ANTLR3_BOOLEAN synpred69_yatg (pyatgParser ctx);
static ANTLR3_BOOLEAN synpred72_yatg (pyatgParser ctx);
static ANTLR3_BOOLEAN synpred73_yatg (pyatgParser ctx);
static ANTLR3_BOOLEAN synpred74_yatg (pyatgParser ctx);
static ANTLR3_BOOLEAN synpred86_yatg (pyatgParser ctx);
static ANTLR3_BOOLEAN synpred101_yatg (pyatgParser ctx);
static ANTLR3_BOOLEAN synpred106_yatg (pyatgParser ctx);
static void yatgParserFree(pyatgParser 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[] = "C:\\Zlang\\src\\Zzparser\\Grammar\\yatg.g";
/** \brief Return the name of the grammar file that generated this code.
*/
static const char * getGrammarFileName()
{
return fileName;
}
/** \brief Create a new yatgParser 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 pyatgParser
yatgParserNew (pANTLR3_COMMON_TOKEN_STREAM instream)
{
// See if we can create a new parser with the standard constructor
//
return yatgParserNewSSD(instream, NULL);
}
/** \brief Create a new yatgParser 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 pyatgParser
yatgParserNewSSD (pANTLR3_COMMON_TOKEN_STREAM instream, pANTLR3_RECOGNIZER_SHARED_STATE state)
{
pyatgParser ctx; /* Context structure we will build and return */
ctx = (pyatgParser) ANTLR3_CALLOC(1, sizeof(yatgParser));
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 yatgParser.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 yatgParser interface
*/
ctx->program = program;
ctx->expr = expr;
ctx->variable_decls = variable_decls;
ctx->type_decl = type_decl;
ctx->decl = decl;
ctx->if_expr = if_expr;
ctx->while_loop = while_loop;
ctx->do_loop = do_loop;
ctx->for_loop = for_loop;
ctx->source = source;
ctx->loop_exit = loop_exit;
ctx->loop_continue = loop_continue;
ctx->case_expr = case_expr;
ctx->case_item = case_item;
ctx->struct_def = struct_def;
ctx->member = member;
ctx->try_expr = try_expr;
ctx->function_def = function_def;
ctx->fun = fun;
ctx->function_return = function_return;
ctx->context_expr = context_expr;
ctx->context = context;
ctx->set_context = set_context;
ctx->math_expression = math_expression;
ctx->additive_expression = additive_expression;
ctx->multiplicative_expression = multiplicative_expression;
ctx->argT = argT;
ctx->argument_decl_list = argument_decl_list;
ctx->argument_expression_list = argument_expression_list;
ctx->unary_expression = unary_expression;
ctx->operand = operand;
ctx->operand_op = operand_op;
ctx->constant = constant;
ctx->number = number;
ctx->constant_expression = constant_expression;
ctx->assignment_expression = assignment_expression;
ctx->lvalue = lvalue;
ctx->assignment_operator = assignment_operator;
ctx->logical_expression = logical_expression;
ctx->logical_or_expression = logical_or_expression;
ctx->logical_and_expression = logical_and_expression;
ctx->equality_expression = equality_expression;
ctx->relational_expression = relational_expression;
ctx->expr_seq = expr_seq;
ctx->expr_g = expr_g;
ctx->box2 = box2;
ctx->point3 = point3;
ctx->point2 = point2;
ctx->array = array;
ctx->matrix = matrix;
ctx->bitarray = bitarray;
ctx->arrrange = arrrange;
ctx->synpred2_yatg = synpred2_yatg;
ctx->synpred16_yatg = synpred16_yatg;
ctx->synpred20_yatg = synpred20_yatg;
ctx->synpred26_yatg = synpred26_yatg;
ctx->synpred53_yatg = synpred53_yatg;
ctx->synpred60_yatg = synpred60_yatg;
ctx->synpred69_yatg = synpred69_yatg;
ctx->synpred72_yatg = synpred72_yatg;
ctx->synpred73_yatg = synpred73_yatg;
ctx->synpred74_yatg = synpred74_yatg;
ctx->synpred86_yatg = synpred86_yatg;
ctx->synpred101_yatg = synpred101_yatg;
ctx->synpred106_yatg = synpred106_yatg;
ctx->free = yatgParserFree;
ctx->getGrammarFileName = getGrammarFileName;
/* Install the scope pushing methods.
*/
ADAPTOR = ANTLR3_TREE_ADAPTORNew(instream->tstream->tokenSource->strFactory);
ctx->vectors = antlr3VectorFactoryNew(0);
/* Create a LIST for recording rule memos.
*/
RULEMEMO = antlr3IntTrieNew(15); /* 16 bit depth is enough for 32768 rules! */
/* Install the token table
*/
PSRSTATE->tokenNames = yatgParserTokenNames;
/* Return the newly built parser to the caller
*/
return ctx;
}
/** Free the parser resources
*/
static void
yatgParserFree(pyatgParser ctx)
{
/* Free any scope memory
*/
ctx->vectors->close(ctx->vectors);
/* We created the adaptor so we must free it
*/
ADAPTOR->free(ADAPTOR);
if (RULEMEMO != NULL)
{
RULEMEMO->free(RULEMEMO);
RULEMEMO = NULL;
} // 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 yatgParserTokenNames;
}
/* Declare the bitsets
*/
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_in_program430 */
static ANTLR3_BITWORD FOLLOW_expr_in_program430_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002), ANTLR3_UINT64_LIT(0x4927EC5E1D5C0000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_expr_in_program430 = { FOLLOW_expr_in_program430_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_assignment_expression_in_expr445 */
static ANTLR3_BITWORD FOLLOW_assignment_expression_in_expr445_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_assignment_expression_in_expr445 = { FOLLOW_assignment_expression_in_expr445_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_variable_decls_in_expr450 */
static ANTLR3_BITWORD FOLLOW_variable_decls_in_expr450_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_variable_decls_in_expr450 = { FOLLOW_variable_decls_in_expr450_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_if_expr_in_expr459 */
static ANTLR3_BITWORD FOLLOW_if_expr_in_expr459_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_if_expr_in_expr459 = { FOLLOW_if_expr_in_expr459_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_while_loop_in_expr468 */
static ANTLR3_BITWORD FOLLOW_while_loop_in_expr468_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_while_loop_in_expr468 = { FOLLOW_while_loop_in_expr468_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_do_loop_in_expr477 */
static ANTLR3_BITWORD FOLLOW_do_loop_in_expr477_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_do_loop_in_expr477 = { FOLLOW_do_loop_in_expr477_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_for_loop_in_expr486 */
static ANTLR3_BITWORD FOLLOW_for_loop_in_expr486_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_for_loop_in_expr486 = { FOLLOW_for_loop_in_expr486_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_loop_exit_in_expr495 */
static ANTLR3_BITWORD FOLLOW_loop_exit_in_expr495_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_loop_exit_in_expr495 = { FOLLOW_loop_exit_in_expr495_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_loop_continue_in_expr504 */
static ANTLR3_BITWORD FOLLOW_loop_continue_in_expr504_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_loop_continue_in_expr504 = { FOLLOW_loop_continue_in_expr504_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_case_expr_in_expr513 */
static ANTLR3_BITWORD FOLLOW_case_expr_in_expr513_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_case_expr_in_expr513 = { FOLLOW_case_expr_in_expr513_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_struct_def_in_expr522 */
static ANTLR3_BITWORD FOLLOW_struct_def_in_expr522_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_struct_def_in_expr522 = { FOLLOW_struct_def_in_expr522_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_try_expr_in_expr531 */
static ANTLR3_BITWORD FOLLOW_try_expr_in_expr531_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_try_expr_in_expr531 = { FOLLOW_try_expr_in_expr531_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_function_def_in_expr540 */
static ANTLR3_BITWORD FOLLOW_function_def_in_expr540_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_function_def_in_expr540 = { FOLLOW_function_def_in_expr540_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_function_return_in_expr549 */
static ANTLR3_BITWORD FOLLOW_function_return_in_expr549_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_function_return_in_expr549 = { FOLLOW_function_return_in_expr549_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_context_expr_in_expr558 */
static ANTLR3_BITWORD FOLLOW_context_expr_in_expr558_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_context_expr_in_expr558 = { FOLLOW_context_expr_in_expr558_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_seq_in_expr567 */
static ANTLR3_BITWORD FOLLOW_expr_seq_in_expr567_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_expr_seq_in_expr567 = { FOLLOW_expr_seq_in_expr567_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_type_decl_in_variable_decls588 */
static ANTLR3_BITWORD FOLLOW_type_decl_in_variable_decls588_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000100000) };
static ANTLR3_BITSET_LIST FOLLOW_type_decl_in_variable_decls588 = { FOLLOW_type_decl_in_variable_decls588_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_decl_in_variable_decls591 */
static ANTLR3_BITWORD FOLLOW_decl_in_variable_decls591_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002), ANTLR3_UINT64_LIT(0x0000000000020000) };
static ANTLR3_BITSET_LIST FOLLOW_decl_in_variable_decls591 = { FOLLOW_decl_in_variable_decls591_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SS_COMMA_in_variable_decls594 */
static ANTLR3_BITWORD FOLLOW_SS_COMMA_in_variable_decls594_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000100000) };
static ANTLR3_BITSET_LIST FOLLOW_SS_COMMA_in_variable_decls594 = { FOLLOW_SS_COMMA_in_variable_decls594_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_decl_in_variable_decls596 */
static ANTLR3_BITWORD FOLLOW_decl_in_variable_decls596_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002), ANTLR3_UINT64_LIT(0x0000000000020000) };
static ANTLR3_BITSET_LIST FOLLOW_decl_in_variable_decls596 = { FOLLOW_decl_in_variable_decls596_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_set_in_type_decl0 */
static ANTLR3_BITWORD FOLLOW_set_in_type_decl0_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_set_in_type_decl0 = { FOLLOW_set_in_type_decl0_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_IDENTIFIER_in_decl643 */
static ANTLR3_BITWORD FOLLOW_IDENTIFIER_in_decl643_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002), ANTLR3_UINT64_LIT(0x0000000000200000) };
static ANTLR3_BITSET_LIST FOLLOW_IDENTIFIER_in_decl643 = { FOLLOW_IDENTIFIER_in_decl643_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SS_EQUAL_in_decl647 */
static ANTLR3_BITWORD FOLLOW_SS_EQUAL_in_decl647_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4927EC5E1D5C0000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_SS_EQUAL_in_decl647 = { FOLLOW_SS_EQUAL_in_decl647_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_g_in_decl649 */
static ANTLR3_BITWORD FOLLOW_expr_g_in_decl649_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_expr_g_in_decl649 = { FOLLOW_expr_g_in_decl649_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_IF_in_if_expr682 */
static ANTLR3_BITWORD FOLLOW_KW_IF_in_if_expr682_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4927EC5E1D5C0000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_KW_IF_in_if_expr682 = { FOLLOW_KW_IF_in_if_expr682_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_g_in_if_expr686 */
static ANTLR3_BITWORD FOLLOW_expr_g_in_if_expr686_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000001800000) };
static ANTLR3_BITSET_LIST FOLLOW_expr_g_in_if_expr686 = { FOLLOW_expr_g_in_if_expr686_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_THEN_in_if_expr691 */
static ANTLR3_BITWORD FOLLOW_KW_THEN_in_if_expr691_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4927EC5E1D5C0000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_KW_THEN_in_if_expr691 = { FOLLOW_KW_THEN_in_if_expr691_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_DO_in_if_expr695 */
static ANTLR3_BITWORD FOLLOW_KW_DO_in_if_expr695_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4927EC5E1D5C0000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_KW_DO_in_if_expr695 = { FOLLOW_KW_DO_in_if_expr695_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_g_in_if_expr702 */
static ANTLR3_BITWORD FOLLOW_expr_g_in_if_expr702_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002), ANTLR3_UINT64_LIT(0x0000000002000000) };
static ANTLR3_BITSET_LIST FOLLOW_expr_g_in_if_expr702 = { FOLLOW_expr_g_in_if_expr702_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_ELSE_in_if_expr706 */
static ANTLR3_BITWORD FOLLOW_KW_ELSE_in_if_expr706_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4927EC5E1D5C0000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_KW_ELSE_in_if_expr706 = { FOLLOW_KW_ELSE_in_if_expr706_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_g_in_if_expr710 */
static ANTLR3_BITWORD FOLLOW_expr_g_in_if_expr710_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_expr_g_in_if_expr710 = { FOLLOW_expr_g_in_if_expr710_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_WHILE_in_while_loop762 */
static ANTLR3_BITWORD FOLLOW_KW_WHILE_in_while_loop762_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4927EC5E1D5C0000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_KW_WHILE_in_while_loop762 = { FOLLOW_KW_WHILE_in_while_loop762_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_g_in_while_loop766 */
static ANTLR3_BITWORD FOLLOW_expr_g_in_while_loop766_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000001000000) };
static ANTLR3_BITSET_LIST FOLLOW_expr_g_in_while_loop766 = { FOLLOW_expr_g_in_while_loop766_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_DO_in_while_loop768 */
static ANTLR3_BITWORD FOLLOW_KW_DO_in_while_loop768_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4927EC5E1D5C0000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_KW_DO_in_while_loop768 = { FOLLOW_KW_DO_in_while_loop768_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_g_in_while_loop772 */
static ANTLR3_BITWORD FOLLOW_expr_g_in_while_loop772_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_expr_g_in_while_loop772 = { FOLLOW_expr_g_in_while_loop772_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_DO_in_do_loop809 */
static ANTLR3_BITWORD FOLLOW_KW_DO_in_do_loop809_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4927EC5E1D5C0000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_KW_DO_in_do_loop809 = { FOLLOW_KW_DO_in_do_loop809_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_g_in_do_loop813 */
static ANTLR3_BITWORD FOLLOW_expr_g_in_do_loop813_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000004000000) };
static ANTLR3_BITSET_LIST FOLLOW_expr_g_in_do_loop813 = { FOLLOW_expr_g_in_do_loop813_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_WHILE_in_do_loop815 */
static ANTLR3_BITWORD FOLLOW_KW_WHILE_in_do_loop815_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4927EC5E1D5C0000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_KW_WHILE_in_do_loop815 = { FOLLOW_KW_WHILE_in_do_loop815_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_g_in_do_loop819 */
static ANTLR3_BITWORD FOLLOW_expr_g_in_do_loop819_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_expr_g_in_do_loop819 = { FOLLOW_expr_g_in_do_loop819_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_FOR_in_for_loop857 */
static ANTLR3_BITWORD FOLLOW_KW_FOR_in_for_loop857_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000100000) };
static ANTLR3_BITSET_LIST FOLLOW_KW_FOR_in_for_loop857 = { FOLLOW_KW_FOR_in_for_loop857_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_IDENTIFIER_in_for_loop860 */
static ANTLR3_BITWORD FOLLOW_IDENTIFIER_in_for_loop860_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000010200000) };
static ANTLR3_BITSET_LIST FOLLOW_IDENTIFIER_in_for_loop860 = { FOLLOW_IDENTIFIER_in_for_loop860_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_IN_in_for_loop865 */
static ANTLR3_BITWORD FOLLOW_KW_IN_in_for_loop865_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4927EC5E1D5C0000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_KW_IN_in_for_loop865 = { FOLLOW_KW_IN_in_for_loop865_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SS_EQUAL_in_for_loop869 */
static ANTLR3_BITWORD FOLLOW_SS_EQUAL_in_for_loop869_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4927EC5E1D5C0000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_SS_EQUAL_in_for_loop869 = { FOLLOW_SS_EQUAL_in_for_loop869_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_source_in_for_loop873 */
static ANTLR3_BITWORD FOLLOW_source_in_for_loop873_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000021000000) };
static ANTLR3_BITSET_LIST FOLLOW_source_in_for_loop873 = { FOLLOW_source_in_for_loop873_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_DO_in_for_loop876 */
static ANTLR3_BITWORD FOLLOW_KW_DO_in_for_loop876_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4927EC5E1D5C0000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_KW_DO_in_for_loop876 = { FOLLOW_KW_DO_in_for_loop876_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_COLLECT_in_for_loop880 */
static ANTLR3_BITWORD FOLLOW_KW_COLLECT_in_for_loop880_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4927EC5E1D5C0000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_KW_COLLECT_in_for_loop880 = { FOLLOW_KW_COLLECT_in_for_loop880_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_g_in_for_loop883 */
static ANTLR3_BITWORD FOLLOW_expr_g_in_for_loop883_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_expr_g_in_for_loop883 = { FOLLOW_expr_g_in_for_loop883_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_g_in_source924 */
static ANTLR3_BITWORD FOLLOW_expr_g_in_source924_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002), ANTLR3_UINT64_LIT(0x0000000140000000) };
static ANTLR3_BITSET_LIST FOLLOW_expr_g_in_source924 = { FOLLOW_expr_g_in_source924_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_TO_in_source927 */
static ANTLR3_BITWORD FOLLOW_KW_TO_in_source927_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4927EC5E1D5C0000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_KW_TO_in_source927 = { FOLLOW_KW_TO_in_source927_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_g_in_source931 */
static ANTLR3_BITWORD FOLLOW_expr_g_in_source931_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002), ANTLR3_UINT64_LIT(0x0000000180000000) };
static ANTLR3_BITSET_LIST FOLLOW_expr_g_in_source931 = { FOLLOW_expr_g_in_source931_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_BY_in_source935 */
static ANTLR3_BITWORD FOLLOW_KW_BY_in_source935_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4927EC5E1D5C0000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_KW_BY_in_source935 = { FOLLOW_KW_BY_in_source935_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_g_in_source939 */
static ANTLR3_BITWORD FOLLOW_expr_g_in_source939_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002), ANTLR3_UINT64_LIT(0x0000000100000000) };
static ANTLR3_BITSET_LIST FOLLOW_expr_g_in_source939 = { FOLLOW_expr_g_in_source939_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_WHERE_in_source948 */
static ANTLR3_BITWORD FOLLOW_KW_WHERE_in_source948_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4927EC5E1D5C0000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_KW_WHERE_in_source948 = { FOLLOW_KW_WHERE_in_source948_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_g_in_source952 */
static ANTLR3_BITWORD FOLLOW_expr_g_in_source952_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_expr_g_in_source952 = { FOLLOW_expr_g_in_source952_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_EXIT_in_loop_exit1002 */
static ANTLR3_BITWORD FOLLOW_KW_EXIT_in_loop_exit1002_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002), ANTLR3_UINT64_LIT(0x0000000400000000) };
static ANTLR3_BITSET_LIST FOLLOW_KW_EXIT_in_loop_exit1002 = { FOLLOW_KW_EXIT_in_loop_exit1002_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_WITH_in_loop_exit1013 */
static ANTLR3_BITWORD FOLLOW_KW_WITH_in_loop_exit1013_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4927EC5E1D5C0000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_KW_WITH_in_loop_exit1013 = { FOLLOW_KW_WITH_in_loop_exit1013_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_g_in_loop_exit1015 */
static ANTLR3_BITWORD FOLLOW_expr_g_in_loop_exit1015_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_expr_g_in_loop_exit1015 = { FOLLOW_expr_g_in_loop_exit1015_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_CONTINUE_in_loop_continue1044 */
static ANTLR3_BITWORD FOLLOW_KW_CONTINUE_in_loop_continue1044_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_KW_CONTINUE_in_loop_continue1044 = { FOLLOW_KW_CONTINUE_in_loop_continue1044_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_CASE_in_case_expr1065 */
static ANTLR3_BITWORD FOLLOW_KW_CASE_in_case_expr1065_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4927EC7E1D5C0000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_KW_CASE_in_case_expr1065 = { FOLLOW_KW_CASE_in_case_expr1065_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_g_in_case_expr1069 */
static ANTLR3_BITWORD FOLLOW_expr_g_in_case_expr1069_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000002000000000) };
static ANTLR3_BITSET_LIST FOLLOW_expr_g_in_case_expr1069 = { FOLLOW_expr_g_in_case_expr1069_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_OF_in_case_expr1074 */
static ANTLR3_BITWORD FOLLOW_KW_OF_in_case_expr1074_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000004000000000) };
static ANTLR3_BITSET_LIST FOLLOW_KW_OF_in_case_expr1074 = { FOLLOW_KW_OF_in_case_expr1074_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SS_OPAREN_in_case_expr1076 */
static ANTLR3_BITWORD FOLLOW_SS_OPAREN_in_case_expr1076_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4927EEDE1D5C0000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_SS_OPAREN_in_case_expr1076 = { FOLLOW_SS_OPAREN_in_case_expr1076_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_case_item_in_case_expr1080 */
static ANTLR3_BITWORD FOLLOW_case_item_in_case_expr1080_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4927EEDE1D5C0000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_case_item_in_case_expr1080 = { FOLLOW_case_item_in_case_expr1080_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SS_CPAREN_in_case_expr1085 */
static ANTLR3_BITWORD FOLLOW_SS_CPAREN_in_case_expr1085_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_SS_CPAREN_in_case_expr1085 = { FOLLOW_SS_CPAREN_in_case_expr1085_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_g_in_case_item1122 */
static ANTLR3_BITWORD FOLLOW_expr_g_in_case_item1122_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000010000000000) };
static ANTLR3_BITSET_LIST FOLLOW_expr_g_in_case_item1122 = { FOLLOW_expr_g_in_case_item1122_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SS_COLON_in_case_item1124 */
static ANTLR3_BITWORD FOLLOW_SS_COLON_in_case_item1124_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4927EC5E1D5C0000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_SS_COLON_in_case_item1124 = { FOLLOW_SS_COLON_in_case_item1124_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_g_in_case_item1126 */
static ANTLR3_BITWORD FOLLOW_expr_g_in_case_item1126_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_expr_g_in_case_item1126 = { FOLLOW_expr_g_in_case_item1126_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_DEFAULT_in_case_item1141 */
static ANTLR3_BITWORD FOLLOW_KW_DEFAULT_in_case_item1141_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000010000000000) };
static ANTLR3_BITSET_LIST FOLLOW_KW_DEFAULT_in_case_item1141 = { FOLLOW_KW_DEFAULT_in_case_item1141_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SS_COLON_in_case_item1143 */
static ANTLR3_BITWORD FOLLOW_SS_COLON_in_case_item1143_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4927EC5E1D5C0000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_SS_COLON_in_case_item1143 = { FOLLOW_SS_COLON_in_case_item1143_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_g_in_case_item1145 */
static ANTLR3_BITWORD FOLLOW_expr_g_in_case_item1145_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_expr_g_in_case_item1145 = { FOLLOW_expr_g_in_case_item1145_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_STRUCT_in_struct_def1168 */
static ANTLR3_BITWORD FOLLOW_KW_STRUCT_in_struct_def1168_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000004000000000) };
static ANTLR3_BITSET_LIST FOLLOW_KW_STRUCT_in_struct_def1168 = { FOLLOW_KW_STRUCT_in_struct_def1168_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SS_OPAREN_in_struct_def1170 */
static ANTLR3_BITWORD FOLLOW_SS_OPAREN_in_struct_def1170_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000E00000100000) };
static ANTLR3_BITSET_LIST FOLLOW_SS_OPAREN_in_struct_def1170 = { FOLLOW_SS_OPAREN_in_struct_def1170_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_member_in_struct_def1172 */
static ANTLR3_BITWORD FOLLOW_member_in_struct_def1172_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000008000020000) };
static ANTLR3_BITSET_LIST FOLLOW_member_in_struct_def1172 = { FOLLOW_member_in_struct_def1172_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SS_COMMA_in_struct_def1176 */
static ANTLR3_BITWORD FOLLOW_SS_COMMA_in_struct_def1176_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000E00000100000) };
static ANTLR3_BITSET_LIST FOLLOW_SS_COMMA_in_struct_def1176 = { FOLLOW_SS_COMMA_in_struct_def1176_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_member_in_struct_def1178 */
static ANTLR3_BITWORD FOLLOW_member_in_struct_def1178_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000008000020000) };
static ANTLR3_BITSET_LIST FOLLOW_member_in_struct_def1178 = { FOLLOW_member_in_struct_def1178_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SS_CPAREN_in_struct_def1183 */
static ANTLR3_BITWORD FOLLOW_SS_CPAREN_in_struct_def1183_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_SS_CPAREN_in_struct_def1183 = { FOLLOW_SS_CPAREN_in_struct_def1183_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_IDENTIFIER_in_member1204 */
static ANTLR3_BITWORD FOLLOW_IDENTIFIER_in_member1204_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002), ANTLR3_UINT64_LIT(0x0000000000200000) };
static ANTLR3_BITSET_LIST FOLLOW_IDENTIFIER_in_member1204 = { FOLLOW_IDENTIFIER_in_member1204_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SS_EQUAL_in_member1208 */
static ANTLR3_BITWORD FOLLOW_SS_EQUAL_in_member1208_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4927EC5E1D5C0000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_SS_EQUAL_in_member1208 = { FOLLOW_SS_EQUAL_in_member1208_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_g_in_member1210 */
static ANTLR3_BITWORD FOLLOW_expr_g_in_member1210_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_expr_g_in_member1210 = { FOLLOW_expr_g_in_member1210_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_function_def_in_member1229 */
static ANTLR3_BITWORD FOLLOW_function_def_in_member1229_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_function_def_in_member1229 = { FOLLOW_function_def_in_member1229_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_TRY_in_try_expr1247 */
static ANTLR3_BITWORD FOLLOW_KW_TRY_in_try_expr1247_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4927EC5E1D5C0000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_KW_TRY_in_try_expr1247 = { FOLLOW_KW_TRY_in_try_expr1247_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_g_in_try_expr1251 */
static ANTLR3_BITWORD FOLLOW_expr_g_in_try_expr1251_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000100000000000) };
static ANTLR3_BITSET_LIST FOLLOW_expr_g_in_try_expr1251 = { FOLLOW_expr_g_in_try_expr1251_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_CATCH_in_try_expr1253 */
static ANTLR3_BITWORD FOLLOW_KW_CATCH_in_try_expr1253_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4927EC5E1D5C0000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_KW_CATCH_in_try_expr1253 = { FOLLOW_KW_CATCH_in_try_expr1253_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_g_in_try_expr1258 */
static ANTLR3_BITWORD FOLLOW_expr_g_in_try_expr1258_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_expr_g_in_try_expr1258 = { FOLLOW_expr_g_in_try_expr1258_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_MAPPED_in_function_def1290 */
static ANTLR3_BITWORD FOLLOW_KW_MAPPED_in_function_def1290_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000E00000000000) };
static ANTLR3_BITSET_LIST FOLLOW_KW_MAPPED_in_function_def1290 = { FOLLOW_KW_MAPPED_in_function_def1290_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_fun_in_function_def1295 */
static ANTLR3_BITWORD FOLLOW_fun_in_function_def1295_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000100000) };
static ANTLR3_BITSET_LIST FOLLOW_fun_in_function_def1295 = { FOLLOW_fun_in_function_def1295_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_IDENTIFIER_in_function_def1297 */
static ANTLR3_BITWORD FOLLOW_IDENTIFIER_in_function_def1297_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000300000) };
static ANTLR3_BITSET_LIST FOLLOW_IDENTIFIER_in_function_def1297 = { FOLLOW_IDENTIFIER_in_function_def1297_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_argument_decl_list_in_function_def1301 */
static ANTLR3_BITWORD FOLLOW_argument_decl_list_in_function_def1301_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000300000) };
static ANTLR3_BITSET_LIST FOLLOW_argument_decl_list_in_function_def1301 = { FOLLOW_argument_decl_list_in_function_def1301_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SS_EQUAL_in_function_def1307 */
static ANTLR3_BITWORD FOLLOW_SS_EQUAL_in_function_def1307_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4927EC5E1D5C0000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_SS_EQUAL_in_function_def1307 = { FOLLOW_SS_EQUAL_in_function_def1307_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_g_in_function_def1309 */
static ANTLR3_BITWORD FOLLOW_expr_g_in_function_def1309_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_expr_g_in_function_def1309 = { FOLLOW_expr_g_in_function_def1309_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_set_in_fun0 */
static ANTLR3_BITWORD FOLLOW_set_in_fun0_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_set_in_fun0 = { FOLLOW_set_in_fun0_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_RETURN_in_function_return1374 */
static ANTLR3_BITWORD FOLLOW_KW_RETURN_in_function_return1374_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4927EC5E1D5C0000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_KW_RETURN_in_function_return1374 = { FOLLOW_KW_RETURN_in_function_return1374_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_g_in_function_return1376 */
static ANTLR3_BITWORD FOLLOW_expr_g_in_function_return1376_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_expr_g_in_function_return1376 = { FOLLOW_expr_g_in_function_return1376_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_context_in_context_expr1396 */
static ANTLR3_BITWORD FOLLOW_context_in_context_expr1396_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4927EC5E1D5E0000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_context_in_context_expr1396 = { FOLLOW_context_in_context_expr1396_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SS_COMMA_in_context_expr1400 */
static ANTLR3_BITWORD FOLLOW_SS_COMMA_in_context_expr1400_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0926000410000000) };
static ANTLR3_BITSET_LIST FOLLOW_SS_COMMA_in_context_expr1400 = { FOLLOW_SS_COMMA_in_context_expr1400_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_context_in_context_expr1402 */
static ANTLR3_BITWORD FOLLOW_context_in_context_expr1402_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4927EC5E1D5E0000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_context_in_context_expr1402 = { FOLLOW_context_in_context_expr1402_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_expr_g_in_context_expr1407 */
static ANTLR3_BITWORD FOLLOW_expr_g_in_context_expr1407_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_expr_g_in_context_expr1407 = { FOLLOW_expr_g_in_context_expr1407_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_WITH_in_context1431 */
static ANTLR3_BITWORD FOLLOW_KW_WITH_in_context1431_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0002000000000000) };
static ANTLR3_BITSET_LIST FOLLOW_KW_WITH_in_context1431 = { FOLLOW_KW_WITH_in_context1431_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_ANIMATE_in_context1435 */
static ANTLR3_BITWORD FOLLOW_KW_ANIMATE_in_context1435_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4000004000100000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_KW_ANIMATE_in_context1435 = { FOLLOW_KW_ANIMATE_in_context1435_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_logical_expression_in_context1437 */
static ANTLR3_BITWORD FOLLOW_logical_expression_in_context1437_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_logical_expression_in_context1437 = { FOLLOW_logical_expression_in_context1437_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_AT_in_context1452 */
static ANTLR3_BITWORD FOLLOW_KW_AT_in_context1452_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0008000000000000) };
static ANTLR3_BITSET_LIST FOLLOW_KW_AT_in_context1452 = { FOLLOW_KW_AT_in_context1452_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_LEVEL_in_context1454 */
static ANTLR3_BITWORD FOLLOW_KW_LEVEL_in_context1454_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4000004000100000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_KW_LEVEL_in_context1454 = { FOLLOW_KW_LEVEL_in_context1454_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_operand_in_context1456 */
static ANTLR3_BITWORD FOLLOW_operand_in_context1456_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_operand_in_context1456 = { FOLLOW_operand_in_context1456_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_AT_in_context1472 */
static ANTLR3_BITWORD FOLLOW_KW_AT_in_context1472_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0010000000000000) };
static ANTLR3_BITSET_LIST FOLLOW_KW_AT_in_context1472 = { FOLLOW_KW_AT_in_context1472_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_TIME_in_context1474 */
static ANTLR3_BITWORD FOLLOW_KW_TIME_in_context1474_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4000004000100000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_KW_TIME_in_context1474 = { FOLLOW_KW_TIME_in_context1474_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_operand_in_context1476 */
static ANTLR3_BITWORD FOLLOW_operand_in_context1476_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_operand_in_context1476 = { FOLLOW_operand_in_context1476_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_IN_in_context1492 */
static ANTLR3_BITWORD FOLLOW_KW_IN_in_context1492_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4000004000100000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_KW_IN_in_context1492 = { FOLLOW_KW_IN_in_context1492_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_operand_in_context1494 */
static ANTLR3_BITWORD FOLLOW_operand_in_context1494_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_operand_in_context1494 = { FOLLOW_operand_in_context1494_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_IN_in_context1509 */
static ANTLR3_BITWORD FOLLOW_KW_IN_in_context1509_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0020000000000000) };
static ANTLR3_BITSET_LIST FOLLOW_KW_IN_in_context1509 = { FOLLOW_KW_IN_in_context1509_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_COORDSYS_in_context1513 */
static ANTLR3_BITWORD FOLLOW_KW_COORDSYS_in_context1513_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x40C0004000140000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_KW_COORDSYS_in_context1513 = { FOLLOW_KW_COORDSYS_in_context1513_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_LOCAL_in_context1523 */
static ANTLR3_BITWORD FOLLOW_KW_LOCAL_in_context1523_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_KW_LOCAL_in_context1523 = { FOLLOW_KW_LOCAL_in_context1523_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_WORLD_in_context1541 */
static ANTLR3_BITWORD FOLLOW_KW_WORLD_in_context1541_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_KW_WORLD_in_context1541 = { FOLLOW_KW_WORLD_in_context1541_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_PARENT_in_context1558 */
static ANTLR3_BITWORD FOLLOW_KW_PARENT_in_context1558_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_KW_PARENT_in_context1558 = { FOLLOW_KW_PARENT_in_context1558_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_operand_in_context1575 */
static ANTLR3_BITWORD FOLLOW_operand_in_context1575_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_operand_in_context1575 = { FOLLOW_operand_in_context1575_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_ABOUT_in_context1596 */
static ANTLR3_BITWORD FOLLOW_KW_ABOUT_in_context1596_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4620004000100000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_KW_ABOUT_in_context1596 = { FOLLOW_KW_ABOUT_in_context1596_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_PIVOT_in_context1603 */
static ANTLR3_BITWORD FOLLOW_KW_PIVOT_in_context1603_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_KW_PIVOT_in_context1603 = { FOLLOW_KW_PIVOT_in_context1603_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_SELECTION_in_context1619 */
static ANTLR3_BITWORD FOLLOW_KW_SELECTION_in_context1619_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_KW_SELECTION_in_context1619 = { FOLLOW_KW_SELECTION_in_context1619_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_COORDSYS_in_context1635 */
static ANTLR3_BITWORD FOLLOW_KW_COORDSYS_in_context1635_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_KW_COORDSYS_in_context1635 = { FOLLOW_KW_COORDSYS_in_context1635_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_operand_in_context1651 */
static ANTLR3_BITWORD FOLLOW_operand_in_context1651_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_operand_in_context1651 = { FOLLOW_operand_in_context1651_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_WITH_in_context1672 */
static ANTLR3_BITWORD FOLLOW_KW_WITH_in_context1672_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0800000000000000) };
static ANTLR3_BITSET_LIST FOLLOW_KW_WITH_in_context1672 = { FOLLOW_KW_WITH_in_context1672_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_UNDO_in_context1677 */
static ANTLR3_BITWORD FOLLOW_KW_UNDO_in_context1677_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x4000004000100000), ANTLR3_UINT64_LIT(0x000000004001FFE8) };
static ANTLR3_BITSET_LIST FOLLOW_KW_UNDO_in_context1677 = { FOLLOW_KW_UNDO_in_context1677_bits, 3 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_logical_expression_in_context1679 */
static ANTLR3_BITWORD FOLLOW_logical_expression_in_context1679_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_logical_expression_in_context1679 = { FOLLOW_logical_expression_in_context1679_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KW_SET_in_set_context1702 */
static ANTLR3_BITWORD FOLLOW_KW_SET_in_set_context1702_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0926000410000000) };
static ANTLR3_BITSET_LIST FOLLOW_KW_SET_in_set_context1702 = { FOLLOW_KW_SET_in_set_context1702_bits, 2 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_context_in_set_context1704 */
static ANTLR3_BITWORD FOLLOW_context_in_set_context1704_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_context_in_set_context1704 = { FOLLOW_context_in_set_context1704_bits, 1 };
/** Bitset defining follow set for error recovery in rule state: FOLLOW_additive_expression_in_math_expression1727 */
static ANTLR3_BITWORD FOLLOW_additive_expression_in_math_expression1727_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) };
static ANTLR3_BITSET_LIST FOLLOW_additive_expression_in_math_expression1727 = { FOLLOW_additive_expression_in_math_expression1727_bits, 1 };