-
Notifications
You must be signed in to change notification settings - Fork 692
Expand file tree
/
Copy pathalasqlparser.js
More file actions
executable file
·3108 lines (2932 loc) · 324 KB
/
alasqlparser.js
File metadata and controls
executable file
·3108 lines (2932 loc) · 324 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* parser generated by jison 0.4.18 */
/*
Returns a Parser object of the following structure:
Parser: {
yy: {}
}
Parser.prototype: {
yy: {},
trace: function(),
symbols_: {associative list: name ==> number},
terminals_: {associative list: number ==> name},
productions_: [...],
performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),
table: [...],
defaultActions: {...},
parseError: function(str, hash),
parse: function(input),
lexer: {
EOF: 1,
parseError: function(str, hash),
setInput: function(input),
input: function(),
unput: function(str),
more: function(),
less: function(n),
pastInput: function(),
upcomingInput: function(),
showPosition: function(),
test_match: function(regex_match_array, rule_index),
next: function(),
lex: function(),
begin: function(condition),
popState: function(),
_currentRules: function(),
topState: function(),
pushState: function(condition),
options: {
ranges: boolean (optional: true ==> token location info will include a .range[] member)
flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)
backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)
},
performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),
rules: [...],
conditions: {associative list: name ==> set},
}
}
token location info (@$, _$, etc.): {
first_line: n,
last_line: n,
first_column: n,
last_column: n,
range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)
}
the parseError function receives a 'hash' object with these members for lexer and parser errors: {
text: (matched text)
token: (the produced terminal token, if any)
line: (yylineno)
}
while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {
loc: (yylloc)
expected: (string describing the set of expected tokens)
recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)
}
*/
var alasqlparser = (function(){
var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[2,13],$V1=[1,106],$V2=[1,104],$V3=[1,105],$V4=[1,6],$V5=[1,42],$V6=[1,79],$V7=[1,76],$V8=[1,96],$V9=[1,95],$Va=[1,69],$Vb=[1,103],$Vc=[1,85],$Vd=[1,64],$Ve=[1,71],$Vf=[1,84],$Vg=[1,66],$Vh=[1,70],$Vi=[1,68],$Vj=[1,61],$Vk=[1,74],$Vl=[1,62],$Vm=[1,67],$Vn=[1,83],$Vo=[1,77],$Vp=[1,86],$Vq=[1,87],$Vr=[1,81],$Vs=[1,82],$Vt=[1,80],$Vu=[1,88],$Vv=[1,89],$Vw=[1,90],$Vx=[1,91],$Vy=[1,92],$Vz=[1,93],$VA=[1,94],$VB=[1,100],$VC=[1,65],$VD=[1,78],$VE=[1,72],$VF=[1,98],$VG=[1,99],$VH=[1,63],$VI=[1,73],$VJ=[1,110],$VK=[1,109],$VL=[10,316,614,775],$VM=[10,316,320,614,775],$VN=[1,117],$VO=[1,119],$VP=[1,118],$VQ=[1,120],$VR=[1,121],$VS=[1,122],$VT=[1,123],$VU=[134,364,421],$VV=[1,131],$VW=[1,130],$VX=[1,138],$VY=[1,168],$VZ=[1,182],$V_=[1,185],$V$=[1,178],$V01=[1,188],$V11=[1,192],$V21=[1,164],$V31=[1,189],$V41=[1,174],$V51=[1,176],$V61=[1,181],$V71=[1,190],$V81=[1,179],$V91=[1,207],$Va1=[1,208],$Vb1=[1,180],$Vc1=[1,170],$Vd1=[1,171],$Ve1=[1,200],$Vf1=[1,195],$Vg1=[1,196],$Vh1=[1,201],$Vi1=[1,202],$Vj1=[1,203],$Vk1=[1,204],$Vl1=[1,205],$Vm1=[1,206],$Vn1=[1,209],$Vo1=[1,210],$Vp1=[1,183],$Vq1=[1,184],$Vr1=[1,186],$Vs1=[1,187],$Vt1=[1,193],$Vu1=[1,199],$Vv1=[1,191],$Vw1=[1,194],$Vx1=[1,177],$Vy1=[1,175],$Vz1=[1,198],$VA1=[1,211],$VB1=[2,4,5],$VC1=[2,491],$VD1=[1,214],$VE1=[1,219],$VF1=[1,228],$VG1=[1,224],$VH1=[10,72,79,98,103,122,132,166,172,173,187,202,236,253,255,316,320,476,614,775],$VI1=[1,233],$VJ1=[2,4,5,10,72,77,78,79,116,119,120,122,126,127,128,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,149,150,152,153,154,156,158,160,166,168,170,172,173,174,175,176,177,179,187,189,191,202,248,249,290,291,292,293,294,295,296,297,316,320,431,435,476,614,775],$VK1=[2,4,5,10,53,72,74,77,78,79,91,98,100,103,104,111,116,119,120,122,126,127,128,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,149,150,152,153,154,156,158,160,166,168,170,172,173,174,175,176,177,179,183,184,185,187,189,191,193,202,210,212,226,227,228,229,230,231,232,233,236,243,248,249,250,251,253,255,276,277,290,291,292,293,294,295,296,297,299,306,310,316,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,340,341,342,343,345,349,350,407,411,412,415,417,419,420,428,429,431,435,445,447,448,450,451,452,453,454,455,456,460,461,464,465,476,482,517,519,520,529,614,775],$VL1=[1,258],$VM1=[1,265],$VN1=[1,266],$VO1=[1,275],$VP1=[1,280],$VQ1=[1,279],$VR1=[2,4,5,10,72,78,79,98,103,111,122,132,135,136,141,147,149,153,156,158,160,166,172,173,183,184,185,187,202,217,236,248,249,253,255,263,274,275,276,280,281,283,290,291,292,293,294,295,296,297,299,300,301,302,303,304,305,306,307,308,309,312,313,316,320,322,327,431,435,476,614,775],$VS1=[2,166],$VT1=[1,291],$VU1=[10,74,79,316,320,517,614,775],$VV1=[2,4,5,10,53,72,74,77,78,79,91,98,100,103,104,111,116,119,120,122,126,127,128,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,149,150,152,153,154,156,158,160,166,168,170,172,173,174,175,176,177,179,183,184,185,187,189,191,193,197,202,210,212,226,227,228,229,230,231,232,233,234,235,236,243,248,249,250,251,253,255,276,277,290,291,292,293,294,295,296,297,299,306,307,310,312,316,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,340,341,342,343,345,349,350,354,355,367,379,380,381,384,385,397,400,407,411,412,413,414,415,416,417,419,420,428,429,431,435,437,444,445,447,448,450,451,452,453,454,455,456,460,461,464,465,476,482,517,519,520,526,527,528,529,614,775],$VW1=[2,4,5,10,53,72,91,128,150,160,193,276,277,299,316,345,349,350,407,411,412,415,417,419,420,428,429,445,447,448,450,451,452,453,454,455,456,460,461,464,465,517,519,520,529,614,775],$VX1=[1,572],$VY1=[1,574],$VZ1=[1,575],$V_1=[2,523],$V$1=[1,581],$V02=[1,592],$V12=[1,595],$V22=[1,596],$V32=[10,79,91,136,141,150,193,306,316,320,482,614,775],$V42=[10,74,316,320,614,775],$V52=[2,587],$V62=[1,614],$V72=[2,4,5,160],$V82=[1,652],$V92=[1,624],$Va2=[1,658],$Vb2=[1,659],$Vc2=[1,632],$Vd2=[1,643],$Ve2=[1,630],$Vf2=[1,638],$Vg2=[1,631],$Vh2=[1,639],$Vi2=[1,641],$Vj2=[1,633],$Vk2=[1,634],$Vl2=[1,653],$Vm2=[1,650],$Vn2=[1,651],$Vo2=[1,627],$Vp2=[1,629],$Vq2=[1,621],$Vr2=[1,622],$Vs2=[1,623],$Vt2=[1,625],$Vu2=[1,626],$Vv2=[1,628],$Vw2=[1,635],$Vx2=[1,636],$Vy2=[1,640],$Vz2=[1,642],$VA2=[1,644],$VB2=[1,645],$VC2=[1,646],$VD2=[1,647],$VE2=[1,648],$VF2=[1,654],$VG2=[1,655],$VH2=[1,656],$VI2=[1,657],$VJ2=[2,4,5,10,53,72,74,77,79,91,98,100,103,104,111,116,119,120,122,126,127,128,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,149,150,152,153,154,156,158,160,166,168,170,172,173,174,175,176,177,179,183,184,185,187,189,191,193,202,210,212,226,227,228,229,230,231,232,233,236,243,248,249,250,251,253,255,276,277,290,291,292,293,294,295,296,297,299,306,310,316,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,340,341,342,343,345,349,350,407,411,412,415,417,419,420,428,429,431,435,445,447,448,450,451,452,453,454,455,456,460,461,464,465,476,482,517,519,520,529,614,775],$VK2=[2,302],$VL2=[2,4,5,10,53,72,74,77,78,79,91,98,100,103,104,111,116,119,120,122,126,127,128,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,149,150,152,153,154,156,158,160,166,168,170,172,173,174,175,176,177,179,183,184,185,187,189,191,193,202,210,212,226,227,228,229,230,231,232,233,234,235,236,243,248,249,250,251,253,255,276,277,290,291,292,293,294,295,296,297,299,306,307,310,316,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,340,341,342,343,345,349,350,354,367,379,380,384,385,407,411,412,415,417,419,420,428,429,431,435,437,445,447,448,450,451,452,453,454,455,456,460,461,464,465,476,482,517,519,520,529,614,775],$VM2=[2,379],$VN2=[1,682],$VO2=[1,692],$VP2=[2,4,5,10,53,72,74,77,78,79,91,98,100,103,104,111,116,119,120,122,126,127,128,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,149,150,152,153,154,156,158,160,166,168,170,172,173,174,175,176,177,179,183,184,185,187,189,191,193,202,210,212,226,227,228,229,230,231,232,233,234,235,236,243,248,249,250,251,253,255,276,277,290,291,292,293,294,295,296,297,299,306,310,316,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,340,341,342,343,345,349,350,407,411,412,415,417,419,420,428,429,431,435,437,445,447,448,450,451,452,453,454,455,456,460,461,464,465,476,482,517,519,520,529,614,775],$VQ2=[1,708],$VR2=[1,710],$VS2=[1,711],$VT2=[1,719],$VU2=[1,718],$VV2=[2,4,5,10,72,74,79,98,103,122,132,166,172,173,210,212,226,227,228,229,230,231,232,233,234,235,236,253,255,316,320,476,614,775],$VW2=[10,72,74,79,98,103,122,132,166,172,173,210,212,226,227,228,229,230,231,232,233,234,235,236,253,255,316,320,476,614,775],$VX2=[2,206],$VY2=[1,741],$VZ2=[10,72,79,98,103,122,132,166,172,173,187,236,253,255,316,320,476,614,775],$V_2=[2,167],$V$2=[1,744],$V03=[2,4,5,116,217,263],$V13=[1,757],$V23=[1,776],$V33=[1,756],$V43=[1,755],$V53=[1,750],$V63=[1,751],$V73=[1,753],$V83=[1,754],$V93=[1,758],$Va3=[1,759],$Vb3=[1,760],$Vc3=[1,761],$Vd3=[1,762],$Ve3=[1,763],$Vf3=[1,764],$Vg3=[1,765],$Vh3=[1,766],$Vi3=[1,767],$Vj3=[1,768],$Vk3=[1,769],$Vl3=[1,770],$Vm3=[1,771],$Vn3=[1,772],$Vo3=[1,773],$Vp3=[1,775],$Vq3=[1,777],$Vr3=[1,778],$Vs3=[1,779],$Vt3=[1,780],$Vu3=[1,781],$Vv3=[1,782],$Vw3=[1,783],$Vx3=[1,786],$Vy3=[1,787],$Vz3=[1,788],$VA3=[1,789],$VB3=[1,790],$VC3=[1,791],$VD3=[1,792],$VE3=[1,793],$VF3=[1,794],$VG3=[1,795],$VH3=[1,796],$VI3=[1,797],$VJ3=[74,91,193],$VK3=[10,74,79,158,191,234,307,316,320,354,367,379,380,384,385,614,775],$VL3=[1,816],$VM3=[10,74,79,310,316,320,614,775],$VN3=[1,817],$VO3=[1,823],$VP3=[1,824],$VQ3=[1,828],$VR3=[10,74,79,316,320,614,775],$VS3=[2,4,5,78,135,136,141,147,149,153,156,158,160,183,184,185,217,248,249,263,274,275,276,280,281,283,290,291,292,293,294,295,296,297,299,300,301,302,303,304,305,306,307,308,309,312,313,322,327,431,435],$VT3=[10,72,79,98,103,111,122,132,166,172,173,187,202,236,253,255,316,320,476,614,775],$VU3=[2,4,5,10,72,78,79,98,103,111,122,132,135,136,141,147,149,153,156,158,160,166,168,172,173,183,184,185,187,189,191,199,202,217,236,248,249,253,255,263,274,275,276,280,281,283,290,291,292,293,294,295,296,297,299,300,301,302,303,304,305,306,307,308,309,312,313,316,320,322,327,431,435,476,614,775],$VV3=[2,4,5,136,306],$VW3=[1,864],$VX3=[10,74,77,79,316,320,614,775],$VY3=[2,761],$VZ3=[10,74,77,79,136,143,145,149,156,316,320,431,435,614,775],$V_3=[2,1188],$V$3=[10,74,77,79,143,145,149,156,316,320,431,435,614,775],$V04=[10,74,77,79,143,145,149,316,320,431,435,614,775],$V14=[10,74,79,143,145,316,320,614,775],$V24=[10,79,91,136,150,193,306,316,320,482,614,775],$V34=[345,349,350],$V44=[2,787],$V54=[1,889],$V64=[1,890],$V74=[1,891],$V84=[1,892],$V94=[1,901],$Va4=[1,900],$Vb4=[2,740],$Vc4=[1,904],$Vd4=[168,170,344],$Ve4=[2,464],$Vf4=[1,958],$Vg4=[2,4,5,78,135,160,275,299,300,301,302,303],$Vh4=[1,974],$Vi4=[1,973],$Vj4=[2,4,5,10,53,72,74,77,78,79,91,98,100,103,104,111,116,122,126,128,132,133,134,135,136,138,139,141,143,144,145,146,147,149,150,152,153,154,156,158,160,166,168,170,172,173,174,175,176,177,179,183,185,187,189,191,193,202,210,212,226,227,228,229,230,231,232,233,236,243,248,249,250,251,253,255,276,277,290,291,292,293,294,295,296,297,299,306,310,316,318,319,320,321,323,324,325,327,328,329,330,331,332,333,334,335,336,340,341,342,343,345,349,350,407,411,412,415,417,419,420,428,429,431,435,445,447,448,450,451,452,453,454,455,456,460,461,464,465,476,482,517,519,520,529,614,775],$Vk4=[2,4,5,10,53,72,74,77,78,79,91,98,100,103,104,111,116,119,120,122,126,127,128,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,149,150,152,153,154,156,158,160,166,168,170,172,173,174,175,176,177,179,183,184,185,187,189,191,193,202,210,212,226,227,228,229,230,231,232,233,236,243,248,249,250,251,253,255,276,277,290,291,292,293,294,295,296,297,299,306,310,316,318,319,320,321,322,323,324,325,327,328,329,330,331,332,333,334,335,336,340,341,342,343,345,349,350,407,411,412,415,417,419,420,428,429,431,435,445,447,448,450,451,452,453,454,455,456,460,461,464,465,476,482,517,519,520,529,614,775],$Vl4=[2,395],$Vm4=[1,985],$Vn4=[316,318,320],$Vo4=[74,310],$Vp4=[74,310,437],$Vq4=[1,992],$Vr4=[74,437],$Vs4=[1,1007],$Vt4=[1,1006],$Vu4=[1,1013],$Vv4=[10,72,79,98,103,122,132,166,172,173,236,253,255,316,320,476,614,775],$Vw4=[2,176],$Vx4=[1,1030],$Vy4=[1,1040],$Vz4=[10,72,79,316,320,476,614,775],$VA4=[1,1046],$VB4=[1,1047],$VC4=[1,1048],$VD4=[2,4,5,10,72,74,77,78,79,116,119,120,122,126,127,128,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,149,150,152,153,154,156,158,160,166,168,170,172,173,174,175,176,177,179,183,184,185,187,189,191,202,248,249,290,291,292,293,294,295,296,297,316,320,431,435,476,614,775],$VE4=[1,1101],$VF4=[1,1100],$VG4=[1,1114],$VH4=[1,1113],$VI4=[1,1121],$VJ4=[10,72,74,79,98,103,111,122,132,166,172,173,187,202,236,253,255,316,320,476,614,775],$VK4=[2,347],$VL4=[1,1139],$VM4=[1,1155],$VN4=[10,79,91,150,193,316,320,482,614,775],$VO4=[1,1175],$VP4=[1,1174],$VQ4=[1,1173],$VR4=[2,4,5,10,53,72,74,77,78,79,91,98,100,103,104,111,116,119,120,122,126,127,128,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,149,150,152,153,154,156,158,160,166,168,170,172,173,174,175,176,177,179,183,184,185,187,189,191,193,202,210,212,226,227,228,229,230,231,232,233,234,236,243,248,249,250,251,253,255,276,277,290,291,292,293,294,295,296,297,299,306,307,310,316,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,340,341,342,343,345,349,350,354,367,379,380,384,385,407,411,412,415,417,419,420,428,429,431,435,445,447,448,450,451,452,453,454,455,456,460,461,464,465,476,482,517,519,520,529,614,775],$VS4=[1,1190],$VT4=[2,4,5,10,53,72,74,77,78,79,91,98,100,103,104,111,116,122,126,128,132,133,134,135,136,138,139,141,143,144,147,149,150,152,153,154,156,158,160,166,168,170,172,173,174,175,176,177,179,185,187,189,191,193,202,210,212,226,227,228,229,230,231,232,233,236,243,248,249,250,251,253,255,276,277,290,291,292,293,294,295,296,297,299,306,310,316,318,319,320,321,323,324,325,330,331,332,333,334,335,336,340,341,342,343,345,349,350,407,411,412,415,417,419,420,428,429,431,435,445,447,448,450,451,452,453,454,455,456,460,461,464,465,476,482,517,519,520,529,614,775],$VU4=[2,4,5,10,53,72,74,77,78,79,91,98,100,103,104,111,116,122,126,128,132,133,134,135,136,138,139,141,143,144,147,149,150,152,153,154,156,158,160,166,168,170,172,173,174,175,176,177,179,185,187,189,191,193,202,210,212,226,227,228,229,230,231,232,233,236,243,248,249,250,251,253,255,276,277,290,291,292,293,294,295,296,297,299,306,310,316,318,319,320,321,323,325,330,331,332,333,334,335,336,340,341,342,343,345,349,350,407,411,412,415,417,419,420,428,429,431,435,445,447,448,450,451,452,453,454,455,456,460,461,464,465,476,482,517,519,520,529,614,775],$VV4=[2,4,5,10,53,72,74,77,78,79,91,98,100,103,104,111,116,122,126,128,132,133,134,135,136,137,138,139,141,142,143,144,145,146,147,149,150,152,153,154,156,158,160,166,168,170,172,173,174,175,176,177,179,183,184,185,187,189,191,193,202,210,212,226,227,228,229,230,231,232,233,236,243,248,249,250,251,253,255,276,277,290,291,292,293,294,295,296,297,299,306,310,316,318,319,320,321,323,324,325,327,328,329,330,331,332,333,334,335,336,340,341,342,343,345,349,350,407,411,412,415,417,419,420,428,429,431,435,445,447,448,450,451,452,453,454,455,456,460,461,464,465,476,482,517,519,520,529,614,775],$VW4=[2,4,5,10,53,72,74,77,78,79,91,98,100,103,104,111,116,122,126,128,132,133,134,135,136,138,139,141,143,144,145,146,147,149,150,152,153,154,156,158,160,166,168,170,172,173,174,175,176,177,179,185,187,189,191,193,202,210,212,226,227,228,229,230,231,232,233,236,243,248,249,250,251,253,255,276,277,290,291,292,293,294,295,296,297,299,306,310,316,318,319,320,321,323,324,325,328,329,330,331,332,333,334,335,336,340,341,342,343,345,349,350,407,411,412,415,417,419,420,428,429,431,435,445,447,448,450,451,452,453,454,455,456,460,461,464,465,476,482,517,519,520,529,614,775],$VX4=[2,4,5,10,53,72,74,77,78,79,91,98,100,103,104,111,122,126,128,132,133,134,135,136,138,139,141,143,144,147,149,150,152,153,154,156,158,160,166,168,170,172,173,174,175,176,177,179,185,187,189,191,193,202,210,212,226,227,228,229,230,231,232,233,236,243,248,249,250,251,253,255,276,277,290,291,292,293,294,295,296,297,299,306,310,316,318,319,320,324,330,331,332,333,334,335,336,340,341,343,345,349,350,407,411,412,415,417,419,420,428,429,431,435,445,447,448,450,451,452,453,454,455,456,460,461,464,465,476,482,517,519,520,529,614,775],$VY4=[2,426],$VZ4=[2,4,5,10,53,72,74,77,78,79,91,98,100,103,111,122,126,132,133,134,135,136,138,139,141,147,149,150,152,153,154,156,160,166,168,170,172,173,174,175,176,177,179,185,187,189,191,193,202,210,212,226,227,228,229,230,231,232,233,236,243,248,249,250,251,253,255,276,277,290,291,292,293,294,295,296,297,299,306,310,316,318,319,320,324,340,341,343,345,349,350,407,411,412,415,417,419,420,428,429,431,435,445,447,448,450,451,452,453,454,455,456,460,461,464,465,476,482,517,519,520,529,614,775],$V_4=[2,297],$V$4=[2,4,5,10,53,72,74,77,78,79,91,98,100,103,104,111,116,119,120,122,126,127,128,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,149,150,152,153,154,156,158,160,166,168,170,172,173,174,175,176,177,179,183,184,185,187,189,191,193,202,210,212,226,227,228,229,230,231,232,233,236,243,248,249,250,251,253,255,276,277,290,291,292,293,294,295,296,297,299,306,310,316,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,340,341,342,343,345,349,350,407,411,412,415,417,419,420,428,429,431,435,437,445,447,448,450,451,452,453,454,455,456,460,461,464,465,476,482,517,519,520,529,614,775],$V05=[10,79,316,320,614,775],$V15=[1,1228],$V25=[10,78,79,147,149,156,185,312,316,320,431,435,476,614,775],$V35=[10,74,79,316,318,320,476,614,775],$V45=[1,1241],$V55=[10,72,79,122,132,166,172,173,236,253,255,316,320,476,614,775],$V65=[1,1249],$V75=[1,1250],$V85=[10,72,74,79,98,103,122,132,166,172,173,187,202,236,253,255,316,320,476,614,775],$V95=[2,4,5,72,77,78,79,116,119,120,122,126,127,128,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,149,150,152,153,154,156,158,160,166,168,170,172,173,174,175,176,177,179,189,191,248,249,290,291,292,293,294,295,296,297,431,435],$Va5=[2,4,5,72,74,77,78,79,116,119,120,122,126,127,128,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,149,150,152,153,154,156,158,160,166,168,170,172,173,174,175,176,177,179,189,191,248,249,290,291,292,293,294,295,296,297,431,435],$Vb5=[2,1112],$Vc5=[2,4,5,72,74,77,78,116,119,120,122,126,127,128,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,149,150,152,153,154,156,158,160,166,168,170,172,173,174,175,176,177,179,189,191,248,249,290,291,292,293,294,295,296,297,431,435],$Vd5=[1,1295],$Ve5=[10,72,74,79,98,103,122,132,166,172,173,210,212,226,227,228,229,230,231,232,233,236,253,255,316,320,476,614,775],$Vf5=[2,507],$Vg5=[1,1298],$Vh5=[10,74,79,132,316,318,320,476,614,775],$Vi5=[119,120,128],$Vj5=[2,604],$Vk5=[1,1328],$Vl5=[77,143],$Vm5=[2,747],$Vn5=[1,1345],$Vo5=[1,1346],$Vp5=[2,4,5,10,53,72,77,91,128,150,160,193,234,276,277,299,316,320,345,349,350,407,411,412,415,417,419,420,428,429,445,447,448,450,451,452,453,454,455,456,460,461,464,465,517,519,520,529,614,775],$Vq5=[1,1388],$Vr5=[74,79],$Vs5=[10,316,318,320,476,614,775],$Vt5=[10,72,79,122,166,172,173,236,253,255,316,320,476,614,775],$Vu5=[2,243],$Vv5=[1,1401],$Vw5=[1,1405],$Vx5=[1,1409],$Vy5=[1,1410],$Vz5=[1,1412],$VA5=[1,1413],$VB5=[1,1414],$VC5=[1,1415],$VD5=[1,1416],$VE5=[1,1417],$VF5=[1,1418],$VG5=[1,1419],$VH5=[1,1444],$VI5=[1,1480],$VJ5=[10,72,79,122,166,172,173,253,255,316,320,476,614,775],$VK5=[2,245],$VL5=[1,1534],$VM5=[10,72,79,98,103,122,132,166,172,173,210,212,226,227,228,229,230,231,232,233,236,253,255,316,320,476,614,775],$VN5=[1,1549],$VO5=[1,1551],$VP5=[2,4,5,78,147,149,156,160,185,275,299,300,301,302,303,312,431,435],$VQ5=[1,1565],$VR5=[10,72,74,79,253,255,316,320,476,614,775],$VS5=[1,1585],$VT5=[1,1587],$VU5=[1,1588],$VV5=[1,1584],$VW5=[1,1583],$VX5=[1,1582],$VY5=[1,1589],$VZ5=[1,1579],$V_5=[1,1580],$V$5=[1,1581],$V06=[1,1612],$V16=[2,4,5,10,53,72,91,128,150,160,193,276,277,299,316,320,345,349,350,407,411,412,415,417,419,420,428,429,445,447,448,450,451,452,453,454,455,456,460,461,464,465,517,519,520,529,614,775],$V26=[1,1631],$V36=[1,1630],$V46=[10,72,79,122,253,255,316,320,476,614,775],$V56=[2,257],$V66=[1,1637],$V76=[1,1639],$V86=[1,1638],$V96=[10,72,79,98,103,122,132,166,172,173,210,212,226,227,228,229,230,231,232,233,234,235,236,253,255,316,320,476,614,775],$Va6=[2,4,5,10,72,79,98,103,122,132,166,172,173,210,212,226,227,228,229,230,231,232,233,234,235,236,253,255,316,320,476,614,775],$Vb6=[1,1686],$Vc6=[1,1687],$Vd6=[1,1685],$Ve6=[1,1702],$Vf6=[1,1704],$Vg6=[1,1701],$Vh6=[1,1703],$Vi6=[191,197,379,380,381,384],$Vj6=[2,535],$Vk6=[1,1709],$Vl6=[1,1723],$Vm6=[10,72,79,253,255,316,320,476,614,775],$Vn6=[1,1759],$Vo6=[1,1765],$Vp6=[10,72,74,79,122,166,172,173,243,253,255,316,320,476,614,775],$Vq6=[4,10,251,316,320,354,367,614,775],$Vr6=[2,255],$Vs6=[1,1812],$Vt6=[2,4,5,78],$Vu6=[1,1898],$Vv6=[1,1911],$Vw6=[1,1930],$Vx6=[10,72,79,316,320,426,476,614,775],$Vy6=[10,74,79,234,316,320,614,775];
var parser = {trace: function trace () { },
yy: {},
symbols_: {"error":2,"Literal":3,"LITERAL":4,"BRALITERAL":5,"NonReserved":6,"LiteralWithSpaces":7,"main":8,"Statements":9,"EOF":10,"Statements_group0":11,"AStatement":12,"ExplainStatement":13,"EXPLAIN":14,"QUERY":15,"PLAN":16,"Statement":17,"AlterTable":18,"AttachDatabase":19,"Call":20,"CreateDatabase":21,"CreateIndex":22,"CreateGraph":23,"CreateTable":24,"CreateView":25,"CreateEdge":26,"CreateVertex":27,"Declare":28,"Delete":29,"DetachDatabase":30,"DropDatabase":31,"DropIndex":32,"DropTable":33,"DropView":34,"If":35,"Insert":36,"Merge":37,"Reindex":38,"RenameTable":39,"Select":40,"ShowCreateTable":41,"ShowColumns":42,"ShowDatabases":43,"ShowIndex":44,"ShowTables":45,"TruncateTable":46,"WithSelect":47,"CreateTrigger":48,"DropTrigger":49,"BeginTransaction":50,"CommitTransaction":51,"RollbackTransaction":52,"EndTransaction":53,"UseDatabase":54,"Update":55,"JavaScript":56,"Source":57,"Assert":58,"While":59,"Continue":60,"Break":61,"BeginEnd":62,"Print":63,"Require":64,"SetVariable":65,"ExpressionStatement":66,"AddRule":67,"Query":68,"Echo":69,"CreateFunction":70,"CreateAggregate":71,"WITH":72,"WithTablesList":73,"COMMA":74,"WithTable":75,"RECURSIVE":76,"AS":77,"LPAR":78,"RPAR":79,"ColumnsList":80,"SelectClause":81,"Select_option0":82,"IntoClause":83,"FromClause":84,"Select_option1":85,"WhereClause":86,"GroupClause":87,"UnionClause":88,"OrderClause":89,"LimitClause":90,"SEARCH":91,"Select_repetition0":92,"Select_option2":93,"SelectWithoutOrderOrLimit":94,"SelectWithoutOrderOrLimit_option0":95,"SelectWithoutOrderOrLimit_option1":96,"PivotClause":97,"PIVOT":98,"Expression":99,"FOR":100,"PivotClause_option0":101,"PivotClause_option1":102,"UNPIVOT":103,"IN":104,"PivotClause_option2":105,"PivotClause2":106,"AsList":107,"AsLiteral":108,"AsPart":109,"RemoveClause":110,"REMOVE":111,"RemoveClause_option0":112,"RemoveColumnsList":113,"RemoveColumn":114,"Column":115,"LIKE":116,"StringValue":117,"ArrowDot":118,"ARROW":119,"DOT":120,"SearchSelector":121,"ORDER":122,"BY":123,"OrderExpressionsList":124,"SearchSelector_option0":125,"DOTDOT":126,"CARET":127,"EQ":128,"SearchSelector_repetition_plus0":129,"SearchSelector_repetition_plus1":130,"SearchSelector_option1":131,"WHERE":132,"OF":133,"CLASS":134,"NUMBER":135,"STRING":136,"SLASH":137,"VERTEX":138,"EDGE":139,"EXCLAMATION":140,"SHARP":141,"MODULO":142,"GT":143,"LT":144,"GTGT":145,"LTLT":146,"DOLLAR":147,"Json":148,"AT":149,"SET":150,"SetColumnsList":151,"TO":152,"VALUE":153,"ROW":154,"ExprList":155,"COLON":156,"PlusStar":157,"NOT":158,"SearchSelector_repetition2":159,"IF":160,"SearchSelector_repetition3":161,"Aggregator":162,"SearchSelector_repetition4":163,"SearchSelector_group0":164,"SearchSelector_repetition5":165,"UNION":166,"SearchSelectorList":167,"ALL":168,"SearchSelector_repetition6":169,"ANY":170,"SearchSelector_repetition7":171,"INTERSECT":172,"EXCEPT":173,"AND":174,"OR":175,"PATH":176,"RETURN":177,"ResultColumns":178,"REPEAT":179,"SearchSelector_repetition8":180,"SearchSelectorList_repetition0":181,"SearchSelectorList_repetition1":182,"PLUS":183,"STAR":184,"QUESTION":185,"SearchFrom":186,"FROM":187,"SelectModifier":188,"DISTINCT":189,"TopClause":190,"UNIQUE":191,"SelectClause_option0":192,"SELECT":193,"COLUMN":194,"MATRIX":195,"TEXTSTRING":196,"INDEX":197,"RECORDSET":198,"TOP":199,"NumValue":200,"TopClause_option0":201,"INTO":202,"Table":203,"FuncValue":204,"ParamValue":205,"VarValue":206,"FromTablesList":207,"JoinTablesList":208,"ApplyClause":209,"CROSS":210,"APPLY":211,"OUTER":212,"FromTable":213,"FromTable_option0":214,"FromTable_option1":215,"INDEXED":216,"INSERTED":217,"FromString":218,"JoinTable":219,"JoinMode":220,"JoinTableAs":221,"OnClause":222,"JoinTableAs_option0":223,"JoinTableAs_option1":224,"JoinModeMode":225,"NATURAL":226,"JOIN":227,"INNER":228,"LEFT":229,"RIGHT":230,"FULL":231,"SEMI":232,"ANTI":233,"ON":234,"USING":235,"GROUP":236,"GroupExpressionsList":237,"HavingClause":238,"ROLLUP":239,"CUBE":240,"GroupExpression":241,"GROUPING":242,"HAVING":243,"CORRESPONDING":244,"OrderExpression":245,"NullsOrder":246,"NULLS":247,"FIRST":248,"LAST":249,"DIRECTION":250,"COLLATE":251,"NOCASE":252,"LIMIT":253,"OffsetClause":254,"OFFSET":255,"LimitClause_option0":256,"FETCH":257,"LimitClause_option1":258,"LimitClause_option2":259,"LimitClause_option3":260,"ResultColumn":261,"Star":262,"DELETED":263,"AggrValue":264,"Op":265,"LogicValue":266,"NullValue":267,"ExistsValue":268,"CaseValue":269,"CastClause":270,"ArrayValue":271,"NewClause":272,"Expression_group0":273,"CURRENT_TIMESTAMP":274,"CURRENT_DATE":275,"JAVASCRIPT":276,"CREATE":277,"FUNCTION":278,"AGGREGATE":279,"NEW":280,"CAST":281,"ColumnType":282,"CONVERT":283,"PrimitiveValue":284,"OverClause":285,"OVER":286,"OverPartitionClause":287,"OverOrderByClause":288,"PARTITION":289,"SUM":290,"TOTAL":291,"COUNT":292,"MIN":293,"MAX":294,"AVG":295,"AGGR":296,"ARRAY":297,"FuncValue_option0":298,"REPLACE":299,"DATEADD":300,"DATEDIFF":301,"TIMESTAMPDIFF":302,"INTERVAL":303,"TRUE":304,"FALSE":305,"NSTRING":306,"NULL":307,"EXISTS":308,"ARRAYLBRA":309,"RBRA":310,"ParamValue_group0":311,"BRAQUESTION":312,"CASE":313,"WhensList":314,"ElseClause":315,"END":316,"When":317,"WHEN":318,"THEN":319,"ELSE":320,"REGEXP":321,"TILDA":322,"GLOB":323,"ESCAPE":324,"NOT_LIKE":325,"BARBAR":326,"MINUS":327,"AMPERSAND":328,"BAR":329,"GE":330,"LE":331,"EQEQ":332,"EQEQEQ":333,"NE":334,"NEEQEQ":335,"NEEQEQEQ":336,"CondOp":337,"AllSome":338,"ColFunc":339,"BETWEEN":340,"NOT_BETWEEN":341,"IS":342,"DOUBLECOLON":343,"SOME":344,"UPDATE":345,"OutputClause":346,"SetColumn":347,"SetColumn_group0":348,"DELETE":349,"INSERT":350,"Into":351,"Values":352,"ValuesListsList":353,"DEFAULT":354,"VALUES":355,"ValuesList":356,"Value":357,"DateValue":358,"TemporaryClause":359,"TableClass":360,"IfNotExists":361,"CreateTableDefClause":362,"CreateTableOptionsClause":363,"TABLE":364,"CreateTableOptions":365,"CreateTableOption":366,"IDENTITY":367,"TEMP":368,"ColumnDefsList":369,"ConstraintsList":370,"Constraint":371,"ConstraintName":372,"PrimaryKey":373,"ForeignKey":374,"UniqueKey":375,"IndexKey":376,"Check":377,"CONSTRAINT":378,"CHECK":379,"PRIMARY":380,"KEY":381,"PrimaryKey_option0":382,"ColsList":383,"FOREIGN":384,"REFERENCES":385,"ForeignKey_option0":386,"OnForeignKeyClause":387,"ParColsList":388,"OnDeleteClause":389,"OnUpdateClause":390,"NO":391,"ACTION":392,"UniqueKey_option0":393,"UniqueKey_option1":394,"ColumnDef":395,"ColumnConstraintsClause":396,"ColumnConstraints":397,"SingularColumnType":398,"NumberMax":399,"ENUM":400,"MAXNUM":401,"ColumnConstraintsList":402,"ColumnConstraint":403,"ParLiteral":404,"ColumnConstraint_option0":405,"ColumnConstraint_option1":406,"DROP":407,"DropTable_group0":408,"IfExists":409,"TablesList":410,"ALTER":411,"RENAME":412,"ADD":413,"MODIFY":414,"ATTACH":415,"DATABASE":416,"DETACH":417,"AsClause":418,"USE":419,"SHOW":420,"VIEW":421,"CreateView_option0":422,"CreateView_option1":423,"SubqueryRestriction":424,"READ":425,"ONLY":426,"OPTION":427,"SOURCE":428,"ASSERT":429,"JsonObject":430,"ATLBRA":431,"JsonArray":432,"JsonValue":433,"JsonPrimitiveValue":434,"LCUR":435,"JsonPropertiesList":436,"RCUR":437,"JsonElementsList":438,"JsonProperty":439,"OnOff":440,"SetPropsList":441,"AtDollar":442,"SetProp":443,"OFF":444,"COMMIT":445,"TRANSACTION":446,"ROLLBACK":447,"BEGIN":448,"ElseStatement":449,"WHILE":450,"CONTINUE":451,"ITERATE":452,"BREAK":453,"LEAVE":454,"PRINT":455,"REQUIRE":456,"StringValuesList":457,"PluginsList":458,"Plugin":459,"ECHO":460,"DECLARE":461,"DeclaresList":462,"DeclareItem":463,"TRUNCATE":464,"MERGE":465,"MergeInto":466,"MergeUsing":467,"MergeOn":468,"MergeMatchedList":469,"MergeMatched":470,"MergeNotMatched":471,"MATCHED":472,"MergeMatchedAction":473,"MergeNotMatchedAction":474,"TARGET":475,"OUTPUT":476,"CreateVertex_option0":477,"CreateVertex_option1":478,"CreateVertex_option2":479,"CreateVertexSet":480,"SharpValue":481,"CONTENT":482,"CreateEdge_option0":483,"GRAPH":484,"GraphList":485,"GraphVertexEdge":486,"GraphElement":487,"GraphVertexEdge_option0":488,"GraphVertexEdge_option1":489,"GraphElementVar":490,"GraphVertexEdge_option2":491,"GraphVertexEdge_option3":492,"GraphVertexEdge_option4":493,"GraphVar":494,"GraphAsClause":495,"GraphAtClause":496,"GraphElement2":497,"GraphElement2_option0":498,"GraphElement2_option1":499,"GraphElement2_option2":500,"GraphElement2_option3":501,"GraphElement_option0":502,"GraphElement_option1":503,"GraphElement_option2":504,"SharpLiteral":505,"GraphElement_option3":506,"GraphElement_option4":507,"GraphElement_option5":508,"ColonLiteral":509,"DeleteVertex":510,"DeleteVertex_option0":511,"DeleteEdge":512,"DeleteEdge_option0":513,"DeleteEdge_option1":514,"DeleteEdge_option2":515,"Term":516,"COLONDASH":517,"TermsList":518,"QUESTIONDASH":519,"CALL":520,"TRIGGER":521,"BeforeAfter":522,"InsertDeleteUpdate":523,"CreateTrigger_option0":524,"CreateTrigger_option1":525,"BEFORE":526,"AFTER":527,"INSTEAD":528,"REINDEX":529,"A":530,"ABSENT":531,"ABSOLUTE":532,"ACCORDING":533,"ADA":534,"ADMIN":535,"ALWAYS":536,"ASC":537,"ASSERTION":538,"ASSIGNMENT":539,"ATTRIBUTE":540,"ATTRIBUTES":541,"BASE64":542,"BERNOULLI":543,"BLOCKED":544,"BOM":545,"BREADTH":546,"C":547,"CASCADE":548,"CATALOG":549,"CATALOG_NAME":550,"CHAIN":551,"CHARACTERISTICS":552,"CHARACTERS":553,"CHARACTER_SET_CATALOG":554,"CHARACTER_SET_NAME":555,"CHARACTER_SET_SCHEMA":556,"CLASS_ORIGIN":557,"COBOL":558,"COLLATION":559,"COLLATION_CATALOG":560,"COLLATION_NAME":561,"COLLATION_SCHEMA":562,"COLUMNS":563,"COLUMN_NAME":564,"COMMAND_FUNCTION":565,"COMMAND_FUNCTION_CODE":566,"COMMITTED":567,"CONDITION_NUMBER":568,"CONNECTION":569,"CONNECTION_NAME":570,"CONSTRAINTS":571,"CONSTRAINT_CATALOG":572,"CONSTRAINT_NAME":573,"CONSTRAINT_SCHEMA":574,"CONSTRUCTOR":575,"CONTROL":576,"CURSOR_NAME":577,"DATA":578,"DATETIME_INTERVAL_CODE":579,"DATETIME_INTERVAL_PRECISION":580,"DB":581,"DEFAULTS":582,"DEFERRABLE":583,"DEFERRED":584,"DEFINED":585,"DEFINER":586,"DEGREE":587,"DEPTH":588,"DERIVED":589,"DESC":590,"DESCRIPTOR":591,"DIAGNOSTICS":592,"DISPATCH":593,"DOCUMENT":594,"DOMAIN":595,"DYNAMIC_FUNCTION":596,"DYNAMIC_FUNCTION_CODE":597,"EMPTY":598,"ENCODING":599,"ENFORCED":600,"EXCLUDE":601,"EXCLUDING":602,"EXPRESSION":603,"FILE":604,"FINAL":605,"FLAG":606,"FOLLOWING":607,"FORTRAN":608,"FOUND":609,"FS":610,"G":611,"GENERAL":612,"GENERATED":613,"GO":614,"GOTO":615,"GRANTED":616,"HEX":617,"HIERARCHY":618,"ID":619,"IGNORE":620,"IMMEDIATE":621,"IMMEDIATELY":622,"IMPLEMENTATION":623,"INCLUDING":624,"INCREMENT":625,"INDENT":626,"INITIALLY":627,"INPUT":628,"INSTANCE":629,"INSTANTIABLE":630,"INTEGRITY":631,"INVOKER":632,"ISOLATION":633,"K":634,"KEY_MEMBER":635,"KEY_TYPE":636,"LENGTH":637,"LEVEL":638,"LIBRARY":639,"LINK":640,"LOCATION":641,"LOCATOR":642,"M":643,"MAP":644,"MAPPING":645,"MAXVALUE":646,"MESSAGE_LENGTH":647,"MESSAGE_OCTET_LENGTH":648,"MESSAGE_TEXT":649,"MINVALUE":650,"MORE":651,"MUMPS":652,"NAME":653,"NAMES":654,"NAMESPACE":655,"NESTING":656,"NEXT":657,"NFC":658,"NFD":659,"NFKC":660,"NFKD":661,"NIL":662,"NORMALIZED":663,"NULLABLE":664,"OBJECT":665,"OCTETS":666,"OPTIONS":667,"ORDERING":668,"ORDINALITY":669,"OTHERS":670,"OVERRIDING":671,"P":672,"PAD":673,"PARAMETER_MODE":674,"PARAMETER_NAME":675,"PARAMETER_ORDINAL_POSITION":676,"PARAMETER_SPECIFIC_CATALOG":677,"PARAMETER_SPECIFIC_NAME":678,"PARAMETER_SPECIFIC_SCHEMA":679,"PARTIAL":680,"PASCAL":681,"PASSING":682,"PASSTHROUGH":683,"PERMISSION":684,"PLACING":685,"PLI":686,"PRECEDING":687,"PRESERVE":688,"PRIOR":689,"PRIVILEGES":690,"PUBLIC":691,"RECOVERY":692,"RELATIVE":693,"REPEATABLE":694,"REQUIRING":695,"RESPECT":696,"RESTART":697,"RESTORE":698,"RESTRICT":699,"RETURNED_CARDINALITY":700,"RETURNED_LENGTH":701,"RETURNED_OCTET_LENGTH":702,"RETURNED_SQLSTATE":703,"RETURNING":704,"ROLE":705,"ROUTINE":706,"ROUTINE_CATALOG":707,"ROUTINE_NAME":708,"ROUTINE_SCHEMA":709,"ROW_COUNT":710,"SCALE":711,"SCHEMA":712,"SCHEMA_NAME":713,"SCOPE_CATALOG":714,"SCOPE_NAME":715,"SCOPE_SCHEMA":716,"SECTION":717,"SECURITY":718,"SELECTIVE":719,"SELF":720,"SEQUENCE":721,"SERIALIZABLE":722,"SERVER":723,"SERVER_NAME":724,"SESSION":725,"SETS":726,"SIMPLE":727,"SIZE":728,"SPACE":729,"SPECIFIC_NAME":730,"STANDALONE":731,"STATE":732,"STATEMENT":733,"STRIP":734,"STRUCTURE":735,"STYLE":736,"SUBCLASS_ORIGIN":737,"T":738,"TABLE_NAME":739,"TEMPORARY":740,"TIES":741,"TOKEN":742,"TOP_LEVEL_COUNT":743,"TRANSACTIONS_COMMITTED":744,"TRANSACTIONS_ROLLED_BACK":745,"TRANSACTION_ACTIVE":746,"TRANSFORM":747,"TRANSFORMS":748,"TRIGGER_CATALOG":749,"TRIGGER_NAME":750,"TRIGGER_SCHEMA":751,"TYPE":752,"UNBOUNDED":753,"UNCOMMITTED":754,"UNDER":755,"UNLINK":756,"UNNAMED":757,"UNTYPED":758,"URI":759,"USAGE":760,"USER_DEFINED_TYPE_CATALOG":761,"USER_DEFINED_TYPE_CODE":762,"USER_DEFINED_TYPE_NAME":763,"USER_DEFINED_TYPE_SCHEMA":764,"VALID":765,"VERSION":766,"WHITESPACE":767,"WORK":768,"WRAPPER":769,"WRITE":770,"XMLDECLARATION":771,"XMLSCHEMA":772,"YES":773,"ZONE":774,"SEMICOLON":775,"PERCENT":776,"ROWS":777,"FuncValue_option0_group0":778,"$accept":0,"$end":1},
terminals_: {2:"error",4:"LITERAL",5:"BRALITERAL",10:"EOF",14:"EXPLAIN",15:"QUERY",16:"PLAN",53:"EndTransaction",72:"WITH",74:"COMMA",76:"RECURSIVE",77:"AS",78:"LPAR",79:"RPAR",91:"SEARCH",98:"PIVOT",100:"FOR",103:"UNPIVOT",104:"IN",111:"REMOVE",116:"LIKE",119:"ARROW",120:"DOT",122:"ORDER",123:"BY",126:"DOTDOT",127:"CARET",128:"EQ",132:"WHERE",133:"OF",134:"CLASS",135:"NUMBER",136:"STRING",137:"SLASH",138:"VERTEX",139:"EDGE",140:"EXCLAMATION",141:"SHARP",142:"MODULO",143:"GT",144:"LT",145:"GTGT",146:"LTLT",147:"DOLLAR",149:"AT",150:"SET",152:"TO",153:"VALUE",154:"ROW",156:"COLON",158:"NOT",160:"IF",166:"UNION",168:"ALL",170:"ANY",172:"INTERSECT",173:"EXCEPT",174:"AND",175:"OR",176:"PATH",177:"RETURN",179:"REPEAT",183:"PLUS",184:"STAR",185:"QUESTION",187:"FROM",189:"DISTINCT",191:"UNIQUE",193:"SELECT",194:"COLUMN",195:"MATRIX",196:"TEXTSTRING",197:"INDEX",198:"RECORDSET",199:"TOP",202:"INTO",210:"CROSS",211:"APPLY",212:"OUTER",216:"INDEXED",217:"INSERTED",226:"NATURAL",227:"JOIN",228:"INNER",229:"LEFT",230:"RIGHT",231:"FULL",232:"SEMI",233:"ANTI",234:"ON",235:"USING",236:"GROUP",239:"ROLLUP",240:"CUBE",242:"GROUPING",243:"HAVING",244:"CORRESPONDING",247:"NULLS",248:"FIRST",249:"LAST",250:"DIRECTION",251:"COLLATE",252:"NOCASE",253:"LIMIT",255:"OFFSET",257:"FETCH",263:"DELETED",274:"CURRENT_TIMESTAMP",275:"CURRENT_DATE",276:"JAVASCRIPT",277:"CREATE",278:"FUNCTION",279:"AGGREGATE",280:"NEW",281:"CAST",283:"CONVERT",286:"OVER",289:"PARTITION",290:"SUM",291:"TOTAL",292:"COUNT",293:"MIN",294:"MAX",295:"AVG",296:"AGGR",297:"ARRAY",299:"REPLACE",300:"DATEADD",301:"DATEDIFF",302:"TIMESTAMPDIFF",303:"INTERVAL",304:"TRUE",305:"FALSE",306:"NSTRING",307:"NULL",308:"EXISTS",309:"ARRAYLBRA",310:"RBRA",312:"BRAQUESTION",313:"CASE",316:"END",318:"WHEN",319:"THEN",320:"ELSE",321:"REGEXP",322:"TILDA",323:"GLOB",324:"ESCAPE",325:"NOT_LIKE",326:"BARBAR",327:"MINUS",328:"AMPERSAND",329:"BAR",330:"GE",331:"LE",332:"EQEQ",333:"EQEQEQ",334:"NE",335:"NEEQEQ",336:"NEEQEQEQ",340:"BETWEEN",341:"NOT_BETWEEN",342:"IS",343:"DOUBLECOLON",344:"SOME",345:"UPDATE",349:"DELETE",350:"INSERT",354:"DEFAULT",355:"VALUES",358:"DateValue",364:"TABLE",367:"IDENTITY",368:"TEMP",378:"CONSTRAINT",379:"CHECK",380:"PRIMARY",381:"KEY",384:"FOREIGN",385:"REFERENCES",391:"NO",392:"ACTION",397:"ColumnConstraints",400:"ENUM",401:"MAXNUM",407:"DROP",411:"ALTER",412:"RENAME",413:"ADD",414:"MODIFY",415:"ATTACH",416:"DATABASE",417:"DETACH",419:"USE",420:"SHOW",421:"VIEW",425:"READ",426:"ONLY",427:"OPTION",428:"SOURCE",429:"ASSERT",431:"ATLBRA",435:"LCUR",437:"RCUR",444:"OFF",445:"COMMIT",446:"TRANSACTION",447:"ROLLBACK",448:"BEGIN",450:"WHILE",451:"CONTINUE",452:"ITERATE",453:"BREAK",454:"LEAVE",455:"PRINT",456:"REQUIRE",460:"ECHO",461:"DECLARE",464:"TRUNCATE",465:"MERGE",472:"MATCHED",475:"TARGET",476:"OUTPUT",482:"CONTENT",484:"GRAPH",517:"COLONDASH",519:"QUESTIONDASH",520:"CALL",521:"TRIGGER",526:"BEFORE",527:"AFTER",528:"INSTEAD",529:"REINDEX",530:"A",531:"ABSENT",532:"ABSOLUTE",533:"ACCORDING",534:"ADA",535:"ADMIN",536:"ALWAYS",537:"ASC",538:"ASSERTION",539:"ASSIGNMENT",540:"ATTRIBUTE",541:"ATTRIBUTES",542:"BASE64",543:"BERNOULLI",544:"BLOCKED",545:"BOM",546:"BREADTH",547:"C",548:"CASCADE",549:"CATALOG",550:"CATALOG_NAME",551:"CHAIN",552:"CHARACTERISTICS",553:"CHARACTERS",554:"CHARACTER_SET_CATALOG",555:"CHARACTER_SET_NAME",556:"CHARACTER_SET_SCHEMA",557:"CLASS_ORIGIN",558:"COBOL",559:"COLLATION",560:"COLLATION_CATALOG",561:"COLLATION_NAME",562:"COLLATION_SCHEMA",563:"COLUMNS",564:"COLUMN_NAME",565:"COMMAND_FUNCTION",566:"COMMAND_FUNCTION_CODE",567:"COMMITTED",568:"CONDITION_NUMBER",569:"CONNECTION",570:"CONNECTION_NAME",571:"CONSTRAINTS",572:"CONSTRAINT_CATALOG",573:"CONSTRAINT_NAME",574:"CONSTRAINT_SCHEMA",575:"CONSTRUCTOR",576:"CONTROL",577:"CURSOR_NAME",578:"DATA",579:"DATETIME_INTERVAL_CODE",580:"DATETIME_INTERVAL_PRECISION",581:"DB",582:"DEFAULTS",583:"DEFERRABLE",584:"DEFERRED",585:"DEFINED",586:"DEFINER",587:"DEGREE",588:"DEPTH",589:"DERIVED",590:"DESC",591:"DESCRIPTOR",592:"DIAGNOSTICS",593:"DISPATCH",594:"DOCUMENT",595:"DOMAIN",596:"DYNAMIC_FUNCTION",597:"DYNAMIC_FUNCTION_CODE",598:"EMPTY",599:"ENCODING",600:"ENFORCED",601:"EXCLUDE",602:"EXCLUDING",603:"EXPRESSION",604:"FILE",605:"FINAL",606:"FLAG",607:"FOLLOWING",608:"FORTRAN",609:"FOUND",610:"FS",611:"G",612:"GENERAL",613:"GENERATED",614:"GO",615:"GOTO",616:"GRANTED",617:"HEX",618:"HIERARCHY",619:"ID",620:"IGNORE",621:"IMMEDIATE",622:"IMMEDIATELY",623:"IMPLEMENTATION",624:"INCLUDING",625:"INCREMENT",626:"INDENT",627:"INITIALLY",628:"INPUT",629:"INSTANCE",630:"INSTANTIABLE",631:"INTEGRITY",632:"INVOKER",633:"ISOLATION",634:"K",635:"KEY_MEMBER",636:"KEY_TYPE",637:"LENGTH",638:"LEVEL",639:"LIBRARY",640:"LINK",641:"LOCATION",642:"LOCATOR",643:"M",644:"MAP",645:"MAPPING",646:"MAXVALUE",647:"MESSAGE_LENGTH",648:"MESSAGE_OCTET_LENGTH",649:"MESSAGE_TEXT",650:"MINVALUE",651:"MORE",652:"MUMPS",653:"NAME",654:"NAMES",655:"NAMESPACE",656:"NESTING",657:"NEXT",658:"NFC",659:"NFD",660:"NFKC",661:"NFKD",662:"NIL",663:"NORMALIZED",664:"NULLABLE",665:"OBJECT",666:"OCTETS",667:"OPTIONS",668:"ORDERING",669:"ORDINALITY",670:"OTHERS",671:"OVERRIDING",672:"P",673:"PAD",674:"PARAMETER_MODE",675:"PARAMETER_NAME",676:"PARAMETER_ORDINAL_POSITION",677:"PARAMETER_SPECIFIC_CATALOG",678:"PARAMETER_SPECIFIC_NAME",679:"PARAMETER_SPECIFIC_SCHEMA",680:"PARTIAL",681:"PASCAL",682:"PASSING",683:"PASSTHROUGH",684:"PERMISSION",685:"PLACING",686:"PLI",687:"PRECEDING",688:"PRESERVE",689:"PRIOR",690:"PRIVILEGES",691:"PUBLIC",692:"RECOVERY",693:"RELATIVE",694:"REPEATABLE",695:"REQUIRING",696:"RESPECT",697:"RESTART",698:"RESTORE",699:"RESTRICT",700:"RETURNED_CARDINALITY",701:"RETURNED_LENGTH",702:"RETURNED_OCTET_LENGTH",703:"RETURNED_SQLSTATE",704:"RETURNING",705:"ROLE",706:"ROUTINE",707:"ROUTINE_CATALOG",708:"ROUTINE_NAME",709:"ROUTINE_SCHEMA",710:"ROW_COUNT",711:"SCALE",712:"SCHEMA",713:"SCHEMA_NAME",714:"SCOPE_CATALOG",715:"SCOPE_NAME",716:"SCOPE_SCHEMA",717:"SECTION",718:"SECURITY",719:"SELECTIVE",720:"SELF",721:"SEQUENCE",722:"SERIALIZABLE",723:"SERVER",724:"SERVER_NAME",725:"SESSION",726:"SETS",727:"SIMPLE",728:"SIZE",729:"SPACE",730:"SPECIFIC_NAME",731:"STANDALONE",732:"STATE",733:"STATEMENT",734:"STRIP",735:"STRUCTURE",736:"STYLE",737:"SUBCLASS_ORIGIN",738:"T",739:"TABLE_NAME",740:"TEMPORARY",741:"TIES",742:"TOKEN",743:"TOP_LEVEL_COUNT",744:"TRANSACTIONS_COMMITTED",745:"TRANSACTIONS_ROLLED_BACK",746:"TRANSACTION_ACTIVE",747:"TRANSFORM",748:"TRANSFORMS",749:"TRIGGER_CATALOG",750:"TRIGGER_NAME",751:"TRIGGER_SCHEMA",752:"TYPE",753:"UNBOUNDED",754:"UNCOMMITTED",755:"UNDER",756:"UNLINK",757:"UNNAMED",758:"UNTYPED",759:"URI",760:"USAGE",761:"USER_DEFINED_TYPE_CATALOG",762:"USER_DEFINED_TYPE_CODE",763:"USER_DEFINED_TYPE_NAME",764:"USER_DEFINED_TYPE_SCHEMA",765:"VALID",766:"VERSION",767:"WHITESPACE",768:"WORK",769:"WRAPPER",770:"WRITE",771:"XMLDECLARATION",772:"XMLSCHEMA",773:"YES",774:"ZONE",775:"SEMICOLON",776:"PERCENT",777:"ROWS"},
productions_: [0,[3,1],[3,1],[3,2],[7,1],[7,2],[8,2],[9,3],[9,1],[9,1],[13,2],[13,4],[12,1],[17,0],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[47,3],[73,3],[73,4],[73,1],[73,2],[75,5],[75,8],[40,10],[40,4],[94,8],[97,8],[97,11],[106,4],[108,2],[108,1],[107,3],[107,1],[109,1],[109,3],[110,3],[113,3],[113,1],[114,1],[114,2],[118,1],[118,1],[121,1],[121,5],[121,5],[121,1],[121,2],[121,1],[121,2],[121,2],[121,3],[121,4],[121,4],[121,4],[121,4],[121,4],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,2],[121,2],[121,2],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,2],[121,3],[121,4],[121,3],[121,1],[121,4],[121,2],[121,2],[121,4],[121,4],[121,4],[121,4],[121,4],[121,5],[121,4],[121,4],[121,4],[121,4],[121,4],[121,4],[121,4],[121,4],[121,6],[167,3],[167,1],[157,1],[157,1],[157,1],[186,2],[81,4],[81,4],[81,4],[81,3],[188,1],[188,2],[188,2],[188,2],[188,2],[188,2],[188,2],[188,2],[190,3],[190,4],[190,0],[83,0],[83,2],[83,2],[83,2],[83,2],[83,2],[84,2],[84,3],[84,5],[84,0],[209,6],[209,7],[209,6],[209,7],[207,1],[207,3],[213,4],[213,5],[213,3],[213,3],[213,2],[213,3],[213,1],[213,3],[213,2],[213,3],[213,1],[213,1],[213,2],[213,3],[213,1],[213,1],[213,2],[213,3],[213,1],[213,2],[213,3],[218,1],[203,3],[203,1],[208,2],[208,2],[208,1],[208,1],[219,3],[221,1],[221,2],[221,3],[221,3],[221,2],[221,3],[221,4],[221,5],[221,1],[221,2],[221,3],[221,1],[221,2],[221,3],[220,1],[220,2],[225,1],[225,2],[225,2],[225,3],[225,2],[225,3],[225,2],[225,3],[225,2],[225,2],[225,2],[222,2],[222,2],[222,4],[222,0],[86,0],[86,2],[87,0],[87,4],[87,6],[87,6],[237,1],[237,3],[241,5],[241,4],[241,4],[241,1],[238,0],[238,2],[88,0],[88,2],[88,3],[88,2],[88,2],[88,3],[88,4],[88,3],[88,3],[89,0],[89,3],[124,1],[124,3],[246,2],[246,2],[245,1],[245,2],[245,3],[245,3],[245,4],[90,0],[90,3],[90,8],[254,0],[254,2],[178,3],[178,1],[261,3],[261,2],[261,3],[261,2],[261,3],[261,2],[261,1],[262,5],[262,3],[262,3],[262,3],[262,1],[115,5],[115,3],[115,3],[115,4],[115,3],[115,3],[115,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,3],[99,3],[99,3],[99,1],[99,1],[99,1],[56,1],[70,5],[71,5],[272,2],[272,2],[270,6],[270,8],[270,6],[270,8],[284,1],[284,1],[284,1],[284,1],[284,1],[284,1],[284,1],[284,1],[264,5],[264,6],[264,6],[285,0],[285,4],[285,4],[285,5],[287,3],[288,3],[162,1],[162,1],[162,1],[162,1],[162,1],[162,1],[162,1],[162,1],[162,1],[162,1],[204,6],[204,4],[204,4],[204,4],[204,3],[204,8],[204,8],[204,8],[204,8],[204,8],[204,3],[155,1],[155,3],[200,1],[266,1],[266,1],[117,1],[117,1],[267,1],[206,2],[268,4],[271,3],[205,2],[205,2],[205,1],[205,1],[269,5],[269,4],[314,2],[314,1],[317,4],[315,2],[315,0],[265,3],[265,3],[265,3],[265,3],[265,5],[265,3],[265,5],[265,3],[265,3],[265,3],[265,3],[265,3],[265,3],[265,3],[265,3],[265,3],[265,3],[265,3],[265,3],[265,3],[265,5],[265,3],[265,3],[265,3],[265,5],[265,3],[265,3],[265,3],[265,3],[265,3],[265,3],[265,3],[265,3],[265,3],[265,3],[265,3],[265,6],[265,6],[265,3],[265,3],[265,2],[265,2],[265,2],[265,2],[265,2],[265,3],[265,5],[265,6],[265,5],[265,6],[265,4],[265,5],[265,3],[265,4],[265,3],[265,4],[265,3],[265,3],[265,3],[265,3],[265,3],[339,1],[339,1],[339,4],[337,1],[337,1],[337,1],[337,1],[337,1],[337,1],[338,1],[338,1],[338,1],[55,7],[55,5],[151,1],[151,3],[347,3],[347,4],[29,6],[29,4],[36,6],[36,5],[36,8],[36,7],[36,6],[36,5],[36,6],[36,9],[36,8],[36,5],[36,7],[36,8],[352,1],[352,1],[351,0],[351,1],[353,3],[353,1],[353,1],[353,5],[353,3],[353,3],[356,1],[356,3],[357,1],[357,1],[357,1],[357,1],[357,1],[357,1],[80,1],[80,3],[24,9],[24,5],[360,1],[360,1],[363,0],[363,1],[365,2],[365,1],[366,1],[366,3],[366,3],[366,3],[359,0],[359,1],[361,0],[361,3],[362,3],[362,1],[362,2],[370,1],[370,3],[371,2],[371,2],[371,2],[371,2],[371,2],[372,0],[372,2],[377,4],[373,6],[374,9],[388,3],[387,0],[387,2],[389,4],[390,4],[375,6],[376,5],[376,5],[383,1],[383,1],[383,3],[383,3],[369,1],[369,3],[395,3],[395,2],[395,1],[398,6],[398,4],[398,1],[398,4],[282,2],[282,1],[399,1],[399,1],[396,0],[396,1],[402,2],[402,1],[404,3],[403,2],[403,5],[403,3],[403,6],[403,1],[403,2],[403,4],[403,2],[403,1],[403,2],[403,1],[403,1],[403,3],[403,5],[33,4],[410,3],[410,1],[409,0],[409,2],[18,6],[18,6],[18,6],[18,8],[18,6],[39,5],[19,4],[19,7],[19,6],[19,9],[30,3],[21,4],[21,6],[21,9],[21,6],[418,0],[418,2],[54,3],[54,2],[31,4],[31,5],[31,5],[22,8],[22,9],[32,3],[43,2],[43,4],[43,3],[43,5],[45,2],[45,4],[45,4],[45,6],[42,4],[42,6],[44,4],[44,6],[41,4],[41,6],[25,11],[25,8],[424,3],[424,3],[424,5],[34,4],[66,2],[57,2],[58,2],[58,2],[58,4],[148,4],[148,2],[148,2],[148,2],[148,2],[148,1],[148,2],[148,2],[433,1],[433,1],[434,1],[434,1],[434,1],[434,1],[434,1],[434,1],[434,1],[434,3],[430,3],[430,4],[430,2],[432,2],[432,3],[432,1],[436,3],[436,1],[439,3],[439,3],[439,3],[438,3],[438,1],[65,4],[65,3],[65,4],[65,5],[65,5],[65,6],[442,1],[442,1],[441,3],[441,2],[443,1],[443,1],[443,3],[440,1],[440,1],[51,2],[52,2],[50,2],[35,4],[35,3],[449,2],[59,3],[60,1],[60,1],[61,1],[61,1],[62,3],[63,2],[63,2],[64,2],[64,2],[459,1],[459,1],[69,2],[457,3],[457,1],[458,3],[458,1],[28,2],[462,1],[462,3],[463,3],[463,4],[463,5],[463,6],[46,3],[37,6],[466,1],[466,2],[467,2],[467,4],[468,2],[469,2],[469,2],[469,1],[469,1],[470,4],[470,6],[473,1],[473,3],[471,5],[471,7],[471,7],[471,9],[471,7],[471,9],[474,3],[474,6],[474,3],[474,6],[346,0],[346,2],[346,5],[346,4],[346,7],[27,6],[481,2],[480,0],[480,2],[480,2],[480,1],[26,8],[23,3],[23,4],[485,3],[485,1],[486,3],[486,7],[486,6],[486,3],[486,4],[490,1],[490,1],[494,2],[495,3],[496,2],[497,4],[487,4],[487,3],[487,2],[487,1],[509,2],[505,2],[505,2],[510,4],[512,6],[67,3],[67,2],[518,3],[518,1],[516,1],[516,4],[68,2],[20,2],[48,9],[48,8],[48,9],[522,0],[522,1],[522,1],[522,1],[522,2],[523,1],[523,1],[523,1],[49,3],[38,2],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[11,1],[11,1],[82,0],[82,1],[85,0],[85,1],[92,0],[92,2],[93,0],[93,1],[95,0],[95,1],[96,0],[96,1],[101,0],[101,1],[102,0],[102,1],[105,0],[105,1],[112,0],[112,1],[125,0],[125,1],[129,1],[129,2],[130,1],[130,2],[131,0],[131,1],[159,0],[159,2],[161,0],[161,2],[163,0],[163,2],[164,1],[164,1],[165,0],[165,2],[169,0],[169,2],[171,0],[171,2],[180,0],[180,2],[181,0],[181,2],[182,0],[182,2],[192,0],[192,1],[201,0],[201,1],[214,0],[214,1],[215,0],[215,1],[223,0],[223,1],[224,0],[224,1],[256,0],[256,1],[258,0],[258,1],[259,0],[259,1],[260,0],[260,1],[273,1],[273,1],[778,1],[778,1],[298,0],[298,1],[311,1],[311,1],[348,1],[348,1],[382,0],[382,1],[386,0],[386,1],[393,0],[393,1],[394,0],[394,1],[405,0],[405,1],[406,0],[406,1],[408,1],[408,1],[422,0],[422,1],[423,0],[423,1],[477,0],[477,1],[478,0],[478,1],[479,0],[479,1],[483,0],[483,1],[488,0],[488,1],[489,0],[489,1],[491,0],[491,1],[492,0],[492,1],[493,0],[493,1],[498,0],[498,1],[499,0],[499,1],[500,0],[500,1],[501,0],[501,1],[502,0],[502,1],[503,0],[503,1],[504,0],[504,1],[506,0],[506,1],[507,0],[507,1],[508,0],[508,1],[511,0],[511,2],[513,0],[513,2],[514,0],[514,2],[515,0],[515,2],[524,0],[524,1],[525,0],[525,1]],
performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {
/* this == yyval */
var $0 = $$.length - 1;
switch (yystate) {
case 1:
if (alasql.options.casesensitive) this.$ = $$[$0];
else this.$ = $$[$0].toLowerCase();
break;
case 2:
this.$ = doubleq($$[$0].substr(1,$$[$0].length-2));
break;
case 3:
this.$ = $$[$0].toLowerCase()
break;
case 4:
this.$ = $$[$0]
break;
case 5:
this.$ = $$[$0] ? $$[$0-1] + ' ' + $$[$0] : $$[$0-1]
break;
case 6:
return new yy.Statements({statements:$$[$0-1]});
break;
case 7:
this.$ = $$[$0-2]; if($$[$0]) $$[$0-2].push($$[$0]);
break;
case 8: case 9: case 71: case 84: case 89: case 147: case 181: case 209: case 210: case 249: case 268: case 283: case 374: case 392: case 471: case 494: case 495: case 499: case 507: case 548: case 549: case 586: case 669: case 679: case 705: case 707: case 709: case 724: case 725: case 755: case 779:
this.$ = [$$[$0]];
break;
case 10:
this.$ = $$[$0]; $$[$0].explain = true;
break;
case 11:
this.$ = $$[$0]; $$[$0].explain = true;
break;
case 12:
this.$ = $$[$0];
// TODO combine exists and queries
if(yy.exists) this.$.exists = yy.exists;
delete yy.exists;
if(yy.queries) this.$.queries = yy.queries;
delete yy.queries;
break;
case 13: case 166: case 176: case 242: case 243: case 245: case 255: case 257: case 266: case 277: case 280: case 395: case 511: case 521: case 523: case 535: case 541: case 542: case 587:
this.$ = undefined;
break;
case 68:
this.$ = new yy.WithSelect({withs: $$[$0-1], select:$$[$0]});
break;
case 69: case 585:
$$[$0-2].push($$[$0]); this.$=$$[$0-2];
break;
case 70:
$$[$0].recursive = true; $$[$0-3].push($$[$0]); this.$=$$[$0-3];
break;
case 72:
$$[$0].recursive = true; this.$ = [$$[$0]];
break;
case 73:
this.$ = {name:$$[$0-4], select:$$[$0-1]};
break;
case 74:
this.$ = {name:$$[$0-7], columns:$$[$0-5], select:$$[$0-1]};
break;
case 75:
yy.extend(this.$,$$[$0-9]); yy.extend(this.$,$$[$0-8]); yy.extend(this.$,$$[$0-7]); yy.extend(this.$,$$[$0-6]);
yy.extend(this.$,$$[$0-5]); yy.extend(this.$,$$[$0-4]);yy.extend(this.$,$$[$0-3]);
yy.extend(this.$,$$[$0-2]); yy.extend(this.$,$$[$0-1]); yy.extend(this.$,$$[$0]);
this.$ = $$[$0-9];
if(yy.exists) this.$.exists = yy.exists.slice();
/* if(yy.queries) this.$.queries = yy.queries;
delete yy.queries;
*/
break;
case 76:
this.$ = new yy.Search({selectors:$$[$0-2], from:$$[$0]});
yy.extend(this.$,$$[$0-1]);
break;
case 77:
yy.extend(this.$,$$[$0-7]); yy.extend(this.$,$$[$0-6]); yy.extend(this.$,$$[$0-5]); yy.extend(this.$,$$[$0-4]);
yy.extend(this.$,$$[$0-3]); yy.extend(this.$,$$[$0-2]);yy.extend(this.$,$$[$0-1]);yy.extend(this.$,$$[$0]);
this.$ = $$[$0-7];
if(yy.exists) this.$.exists = yy.exists.slice();
break;
case 78:
this.$ = {pivot:{expr:$$[$0-5], columnid:$$[$0-3], inlist:$$[$0-2], as:$$[$0]}};
break;
case 79:
this.$ = {unpivot:{tocolumnid:$$[$0-8], forcolumnid:$$[$0-6], inlist:$$[$0-3], as:$$[$0]}};
break;
case 80: case 540: case 569: case 605: case 639: case 656: case 657: case 660: case 682:
this.$ = $$[$0-1];
break;
case 81: case 82: case 90: case 151: case 189: case 254: case 290: case 303: case 304: case 305: case 306: case 307: case 308: case 309: case 310: case 311: case 312: case 313: case 314: case 315: case 316: case 319: case 320: case 336: case 337: case 338: case 339: case 340: case 341: case 394: case 460: case 461: case 462: case 463: case 464: case 465: case 536: case 562: case 566: case 568: case 643: case 644: case 645: case 646: case 647: case 648: case 652: case 654: case 655: case 664: case 680: case 681: case 746: case 761: case 762: case 764: case 765: case 771: case 772:
this.$ = $$[$0];
break;
case 83: case 88: case 754: case 778:
this.$ = $$[$0-2]; this.$.push($$[$0]);
break;
case 85:
this.$ = {expr:$$[$0]};
break;
case 86:
this.$ = {expr:$$[$0-2],as:$$[$0]};
break;
case 87:
this.$ = {removecolumns:$$[$0]};
break;
case 91:
this.$ = {like:$$[$0]};
break;
case 94: case 108:
this.$ = {srchid:"PROP", args: [$$[$0]]};
break;
case 95:
this.$ = {srchid:"ORDERBY", args: $$[$0-1]};
break;
case 96:
var dir = $$[$0-1];
if(!dir) dir = 'ASC';
this.$ = {srchid:"ORDERBY", args: [{expression: new yy.Column({columnid:'_'}), direction:dir}]};
break;
case 97:
this.$ = {srchid:"PARENT"};
break;
case 98:
this.$ = {srchid:"APROP", args: [$$[$0]]};
break;
case 99:
this.$ = {selid:"ROOT"};
break;
case 100:
this.$ = {srchid:"EQ", args: [$$[$0]]};
break;
case 101:
this.$ = {srchid:"LIKE", args: [$$[$0]]};
break;
case 102: case 103:
this.$ = {selid:"WITH", args: $$[$0-1]};
break;
case 104:
this.$ = {srchid:$$[$0-3].toUpperCase(), args:$$[$0-1]};
break;
case 105:
this.$ = {srchid:"WHERE", args:[$$[$0-1]]};
break;
case 106:
this.$ = {selid:"OF", args:[$$[$0-1]]};
break;
case 107:
this.$ = {srchid:"CLASS", args:[$$[$0-1]]};
break;
case 109:
this.$ = {srchid:"NAME", args: [$$[$0].substr(1,$$[$0].length-2)]};
break;
case 110:
this.$ = {srchid:"CHILD"};
break;
case 111:
this.$ = {srchid:"VERTEX"};
break;
case 112:
this.$ = {srchid:"EDGE"};
break;
case 113:
this.$ = {srchid:"REF"};
break;
case 114:
this.$ = {srchid:"SHARP", args:[$$[$0]]};
break;
case 115:
this.$ = {srchid:"ATTR", args:((typeof $$[$0] == 'undefined')?undefined:[$$[$0]])};
break;
case 116:
this.$ = {srchid:"ATTR"};
break;
case 117:
this.$ = {srchid:"OUT"};
break;
case 118:
this.$ = {srchid:"IN"};
break;
case 119:
this.$ = {srchid:"OUTOUT"};
break;
case 120:
this.$ = {srchid:"ININ"};
break;
case 121:
this.$ = {srchid:"CONTENT"};
break;
case 122:
this.$ = {srchid:"EX",args:[new yy.Json({value:$$[$0]})]};
break;
case 123:
this.$ = {srchid:"AT", args:[$$[$0]]};
break;
case 124:
this.$ = {srchid:"AS", args:[$$[$0]]};
break;
case 125:
this.$ = {srchid:"SET", args:$$[$0-1]};
break;
case 126:
this.$ = {selid:"TO", args:[$$[$0]]};
break;
case 127:
this.$ = {srchid:"VALUE"};
break;
case 128:
this.$ = {srchid:"ROW", args:$$[$0-1]};
break;
case 129:
this.$ = {srchid:"CLASS", args:[$$[$0]]};
break;
case 130:
this.$ = {selid:$$[$0],args:[$$[$0-1]] };
break;
case 131:
this.$ = {selid:"NOT",args:$$[$0-1] };
break;
case 132:
this.$ = {selid:"IF",args:$$[$0-1] };
break;
case 133:
this.$ = {selid:$$[$0-3],args:$$[$0-1] };
break;
case 134:
this.$ = {selid:'DISTINCT',args:$$[$0-1] };
break;
case 135:
this.$ = {selid:'UNION',args:$$[$0-1] };
break;
case 136:
this.$ = {selid:'UNIONALL',args:$$[$0-1] };
break;
case 137:
this.$ = {selid:'ALL',args:[$$[$0-1]] };
break;
case 138:
this.$ = {selid:'ANY',args:[$$[$0-1]] };
break;
case 139:
this.$ = {selid:'INTERSECT',args:$$[$0-1] };
break;
case 140:
this.$ = {selid:'EXCEPT',args:$$[$0-1] };
break;
case 141:
this.$ = {selid:'AND',args:$$[$0-1] };
break;
case 142:
this.$ = {selid:'OR',args:$$[$0-1] };
break;
case 143:
this.$ = {selid:'PATH',args:[$$[$0-1]] };
break;
case 144:
this.$ = {srchid:'RETURN',args:$$[$0-1] };
break;
case 145:
this.$ = {selid:'REPEAT',sels:$$[$0-3], args:$$[$0-1] };
break;
case 146:
this.$ = $$[$0-2]; this.$.push($$[$0]);
break;
case 148:
this.$ = "PLUS";
break;
case 149:
this.$ = "STAR";
break;
case 150:
this.$ = "QUESTION";
break;
case 152:
this.$ = new yy.Select({ columns:$$[$0], distinct: true }); yy.extend(this.$, $$[$0-3]); yy.extend(this.$, $$[$0-1]);
break;
case 153:
this.$ = new yy.Select({ columns:$$[$0], distinct: true }); yy.extend(this.$, $$[$0-3]);yy.extend(this.$, $$[$0-1]);
break;
case 154:
this.$ = new yy.Select({ columns:$$[$0], all:true }); yy.extend(this.$, $$[$0-3]);yy.extend(this.$, $$[$0-1]);
break;
case 155:
if(!$$[$0]) {
this.$ = new yy.Select({columns:[new yy.Column({columnid:'_',})], modifier:'COLUMN'});
} else {
this.$ = new yy.Select({ columns:$$[$0] }); yy.extend(this.$, $$[$0-2]);yy.extend(this.$, $$[$0-1]);
}
break;
case 156:
if($$[$0]=='SELECT') this.$ = undefined; else this.$ = {modifier: $$[$0]};
break;
case 157:
this.$ = {modifier:'VALUE'}
break;
case 158:
this.$ = {modifier:'ROW'}
break;
case 159:
this.$ = {modifier:'COLUMN'}
break;
case 160:
this.$ = {modifier:'MATRIX'}
break;
case 161:
this.$ = {modifier:'TEXTSTRING'}
break;
case 162:
this.$ = {modifier:'INDEX'}
break;
case 163:
this.$ = {modifier:'RECORDSET'}
break;
case 164:
this.$ = {top: $$[$0-1], percent:(typeof $$[$0] != 'undefined'?true:undefined)};
break;
case 165:
this.$ = {top: $$[$0-1]};
break;
case 167: case 347: case 543: case 544: case 747:
this.$ = undefined;
break;
case 168: case 169: case 170: case 171:
this.$ = {into: $$[$0]}
break;
case 172:
var s = $$[$0];
s = s.substr(1,s.length-2);
var x3 = s.substr(-3).toUpperCase();
var x4 = s.substr(-4).toUpperCase();
if(s[0] == '#') {
this.$ = {into: new yy.FuncValue({funcid: 'HTML', args:[new yy.StringValue({value: s}), new yy.Json({value:{headers:true}})]})};
} else if(x3=='XLS' || x3 == 'CSV' || x3=='TAB') {
this.$ = {into: new yy.FuncValue({funcid: x3, args:[new yy.StringValue({value: s}), new yy.Json({value:{headers:true}})]})};
} else if(x4=='XLSX' || x4 == 'JSON') {
this.$ = {into: new yy.FuncValue({funcid: x4, args:[new yy.StringValue({value: s}), new yy.Json({value:{headers:true}})]})};
}
break;
case 173:
this.$ = { from: $$[$0] };
break;
case 174:
this.$ = { from: $$[$0-1], joins: $$[$0] };
break;
case 175:
this.$ = { from: $$[$0-2], joins: $$[$0-1] };
break;
case 177:
this.$ = new yy.Apply({select: $$[$0-2], applymode:'CROSS', as:$$[$0]});
break;
case 178:
this.$ = new yy.Apply({select: $$[$0-3], applymode:'CROSS', as:$$[$0]});
break;
case 179:
this.$ = new yy.Apply({select: $$[$0-2], applymode:'OUTER', as:$$[$0]});
break;
case 180:
this.$ = new yy.Apply({select: $$[$0-3], applymode:'OUTER', as:$$[$0]});
break;
case 182: case 250: case 472: case 550: case 551:
this.$ = $$[$0-2]; $$[$0-2].push($$[$0]);
break;
case 183:
this.$ = $$[$0-2]; this.$.as = $$[$0]
break;
case 184:
this.$ = $$[$0-3]; this.$.as = $$[$0]
break;
case 185:
this.$ = $$[$0-1]; this.$.as = 'default'
break;
case 186:
this.$ = new yy.Json({value:$$[$0-2]}); $$[$0-2].as = $$[$0]
break;
case 187:
this.$ = $$[$0-1]; $$[$0-1].as = $$[$0]
break;
case 188:
this.$ = $$[$0-2]; $$[$0-2].as = $$[$0]
break;
case 190: case 658: case 661:
this.$ = $$[$0-2];
break;
case 191: case 195: case 199: case 202:
this.$ = $$[$0-1]; $$[$0-1].as = $$[$0];
break;
case 192: case 196: case 200: case 203:
this.$ = $$[$0-2]; $$[$0-2].as = $$[$0];
break;
case 193: case 194: case 198: case 201:
this.$ = $$[$0]; $$[$0].as = 'default';
break;
case 197:
this.$ = {inserted:true};
break;
case 204:
var s = $$[$0];
s = s.substr(1,s.length-2);
var x3 = s.substr(-3).toUpperCase();
var x4 = s.substr(-4).toUpperCase();
var r;
if(s[0] == '#') {
r = new yy.FuncValue({funcid: 'HTML', args:[new yy.StringValue({value: s}), new yy.Json({value:{headers:true}})]});
} else if(x3=='XLS' || x3 == 'CSV' || x3=='TAB') {
r = new yy.FuncValue({funcid: x3, args:[new yy.StringValue({value: s}), new yy.Json({value:{headers:true}})]});
} else if(x4=='XLSX' || x4 == 'JSON') {
r = new yy.FuncValue({funcid: x4, args:[new yy.StringValue({value: s}), new yy.Json({value:{headers:true}})]});
} else {
throw new Error('Unknown string in FROM clause');
};
this.$ = r;
break;
case 205:
if($$[$0-2] == 'INFORMATION_SCHEMA') {
this.$ = new yy.FuncValue({funcid: $$[$0-2], args:[new yy.StringValue({value:$$[$0]})]});
} else {
this.$ = new yy.Table({databaseid: $$[$0-2], tableid:$$[$0]});
}
break;
case 206:
this.$ = new yy.Table({tableid: $$[$0]});
break;
case 207: case 208:
this.$ = $$[$0-1]; $$[$0-1].push($$[$0]);
break;
case 211:
this.$ = new yy.Join($$[$0-2]); yy.extend(this.$, $$[$0-1]); yy.extend(this.$, $$[$0]);
break;
case 212:
this.$ = {table: $$[$0]};
break;
case 213:
this.$ = {table: $$[$0-1], as: $$[$0] } ;
break;
case 214:
this.$ = {table: $$[$0-2], as: $$[$0] } ;
break;
case 215:
this.$ = {json:new yy.Json({value:$$[$0-2],as:$$[$0]})};
break;
case 216:
this.$ = {param: $$[$0-1], as: $$[$0] } ;
break;
case 217:
this.$ = {param: $$[$0-2], as: $$[$0] } ;
break;
case 218:
this.$ = {select: $$[$0-2], as: $$[$0]} ;
break;
case 219:
this.$ = {select: $$[$0-3], as: $$[$0] } ;
break;
case 220:
this.$ = {func:$$[$0], as:'default'};
break;
case 221:
this.$ = {func:$$[$0-1], as: $$[$0]};
break;
case 222:
this.$ = {func:$$[$0-2], as: $$[$0]};
break;
case 223:
this.$ = {variable:$$[$0],as:'default'};
break;
case 224:
this.$ = {variable:$$[$0-1],as:$$[$0]};
break;
case 225:
this.$ = {variable:$$[$0-2],as:$$[$0]}
break;
case 226:
this.$ = { joinmode: $$[$0] } ;
break;
case 227:
this.$ = {joinmode: $$[$0-1], natural:true} ;
break;
case 228: case 229:
this.$ = "INNER";
break;
case 230: case 231:
this.$ = "LEFT";
break;
case 232: case 233:
this.$ = "RIGHT";
break;
case 234: case 235:
this.$ = "OUTER";
break;
case 236:
this.$ = "SEMI";
break;
case 237:
this.$ = "ANTI";
break;
case 238:
this.$ = "CROSS";
break;
case 239:
this.$ = {on: $$[$0]};
break;
case 240: case 719:
this.$ = {using: $$[$0]};
break;
case 241: case 720:
this.$ = {using: $$[$0-1]};
break;
case 244:
this.$ = {where: new yy.Expression({expression:$$[$0]})};
break;
case 246:
this.$ = {group:$$[$0-1]}; yy.extend(this.$,$$[$0]);
break;
case 247:
this.$ = {group:[new yy.GroupExpression({type:'ROLLUP', group: $$[$0-3]})]}; yy.extend(this.$,$$[$0]);
break;
case 248:
this.$ = {group:[new yy.GroupExpression({type:'CUBE', group: $$[$0-3]})]}; yy.extend(this.$,$$[$0]);
break;
case 251:
this.$ = new yy.GroupExpression({type:'GROUPING SETS', group: $$[$0-1]});
break;
case 252:
this.$ = new yy.GroupExpression({type:'ROLLUP', group: $$[$0-1]});
break;
case 253:
this.$ = new yy.GroupExpression({type:'CUBE', group: $$[$0-1]});
break;
case 256:
this.$ = {having:$$[$0]}
break;
case 258:
this.$ = {union: $$[$0]} ;
break;
case 259:
this.$ = {unionall: $$[$0]} ;
break;
case 260:
this.$ = {except: $$[$0]} ;
break;
case 261:
this.$ = {intersect: $$[$0]} ;
break;
case 262:
this.$ = {union: $$[$0], corresponding:true} ;
break;
case 263:
this.$ = {unionall: $$[$0], corresponding:true} ;
break;
case 264:
this.$ = {except: $$[$0], corresponding:true} ;
break;
case 265:
this.$ = {intersect: $$[$0], corresponding:true} ;
break;
case 267:
this.$ = {order:$$[$0]}
break;
case 269:
this.$ = $$[$0-2]; $$[$0-2].push($$[$0])
break;
case 270:
this.$ = {nullsOrder: 'FIRST'};
break;
case 271:
this.$ = {nullsOrder: 'LAST'};
break;
case 272:
this.$ = new yy.Expression({expression: $$[$0], direction:'ASC'})
break;
case 273:
this.$ = new yy.Expression({expression: $$[$0-1], direction:$$[$0].toUpperCase()})
break;
case 274:
this.$ = new yy.Expression({expression: $$[$0-2], direction:$$[$0-1].toUpperCase()}); yy.extend(this.$, $$[$0])
break;
case 275:
this.$ = new yy.Expression({expression: $$[$0-2], direction:'ASC', nocase:true})
break;
case 276:
this.$ = new yy.Expression({expression: $$[$0-3], direction:$$[$0].toUpperCase(), nocase:true})
break;
case 278:
this.$ = {limit:$$[$0-1]}; yy.extend(this.$, $$[$0]);
break;
case 279:
this.$ = {limit:$$[$0-2],offset:$$[$0-6]};
break;
case 281:
this.$ = {offset:$$[$0]};
break;
case 282: case 529: case 553: case 668: case 678: case 704: case 706: case 710:
$$[$0-2].push($$[$0]); this.$ = $$[$0-2];
break;
case 284: case 286: case 288:
$$[$0-2].as = $$[$0]; this.$ = $$[$0-2];
break;
case 285: case 287: case 289:
$$[$0-1].as = $$[$0]; this.$ = $$[$0-1];
break;
case 291:
this.$ = new yy.Column({columid: $$[$0], tableid: $$[$0-2], databaseid:$$[$0-4]});
break;
case 292:
this.$ = new yy.Column({columnid: $$[$0], tableid: $$[$0-2]});
break;
case 293:
this.$ = new yy.Column({columnid: $$[$0], tableid: 'INSERTED'});
break;
case 294:
this.$ = new yy.Column({columnid: $$[$0], tableid: 'DELETED'});
break;
case 295:
this.$ = new yy.Column({columnid:$$[$0]});
break;
case 296:
this.$ = new yy.Column({columnid: $$[$0], tableid: $$[$0-2], databaseid:$$[$0-4]});
break;
case 297: case 298:
this.$ = new yy.Column({columnid: $$[$0], tableid: $$[$0-2]});
break;
case 299:
this.$ = new yy.Column({columnid: '@'+$$[$0], tableid: $$[$0-3]});
break;
case 300:
this.$ = new yy.Column({columnid: $$[$0], tableid: 'INSERTED'});
break;
case 301:
this.$ = new yy.Column({columnid: $$[$0], tableid: 'DELETED'});
break;
case 302:
this.$ = new yy.Column({columnid: $$[$0]});
break;
case 317:
this.$ = new yy.DomainValueValue();
break;
case 318:
this.$ = new yy.Json({value:$$[$0]});
break;
case 321: case 322: case 323:
if(!yy.queries) yy.queries = [];
yy.queries.push($$[$0-1]);
$$[$0-1].queriesidx = yy.queries.length;
this.$ = $$[$0-1];
break;
case 324:
this.$ = $$[$0]
break;
case 325:
this.$ = new yy.FuncValue({funcid:'CURRENT_TIMESTAMP'});
break;
case 326:
this.$ = new yy.FuncValue({funcid:'CURRENT_DATE'});
break;
case 327:
this.$ = new yy.JavaScript({value:$$[$0].substr(2,$$[$0].length-4)});
break;
case 328:
this.$ = new yy.JavaScript({value:'alasql.fn["'+$$[$0-2]+'"] = '+$$[$0].substr(2,$$[$0].length-4)});
break;
case 329:
this.$ = new yy.JavaScript({value:'alasql.aggr["'+$$[$0-2]+'"] = '+$$[$0].substr(2,$$[$0].length-4)});
break;
case 330:
this.$ = new yy.FuncValue({funcid:$$[$0], newid:true});
break;
case 331:
this.$ = $$[$0]; yy.extend(this.$,{newid:true});
break;
case 332:
this.$ = new yy.Convert({expression:$$[$0-3]}) ; yy.extend(this.$,$$[$0-1]) ;
break;
case 333:
this.$ = new yy.Convert({expression:$$[$0-5], style:$$[$0-1]}) ; yy.extend(this.$,$$[$0-3]) ;
break;
case 334:
this.$ = new yy.Convert({expression:$$[$0-1]}) ; yy.extend(this.$,$$[$0-3]) ;
break;
case 335:
this.$ = new yy.Convert({expression:$$[$0-3], style:$$[$0-1]}) ; yy.extend(this.$,$$[$0-5]) ;
break;
case 342:
this.$ = new yy.FuncValue({funcid:'CURRENT_TIMESTAMP'});
break;
case 343:
this.$ = new yy.FuncValue({funcid:'CURRENT_DATE'});
break;
case 344:
if($$[$0-2].length > 1 && ($$[$0-4].toUpperCase() == 'MAX' || $$[$0-4].toUpperCase() == 'MIN')) {
this.$ = new yy.FuncValue({funcid:$$[$0-4],args:$$[$0-2]});
} else {
this.$ = new yy.AggrValue({aggregatorid: $$[$0-4].toUpperCase(), expression: $$[$0-2].pop(), over:$$[$0]});
}
break;
case 345:
this.$ = new yy.AggrValue({aggregatorid: $$[$0-5].toUpperCase(), expression: $$[$0-2], distinct:true, over:$$[$0]});
break;
case 346:
this.$ = new yy.AggrValue({aggregatorid: $$[$0-5].toUpperCase(), expression: $$[$0-2],
over:$$[$0]});
break;
case 348: case 349:
this.$ = new yy.Over(); yy.extend(this.$,$$[$0-1]);
break;
case 350:
this.$ = new yy.Over(); yy.extend(this.$,$$[$0-2]); yy.extend(this.$,$$[$0-1]);
break;
case 351:
this.$ = {partition:$$[$0]};
break;
case 352:
this.$ = {order:$$[$0]};
break;
case 353:
this.$ = "SUM";
break;
case 354:
this.$ = "TOTAL";
break;
case 355:
this.$ = "COUNT";
break;
case 356:
this.$ = "MIN";
break;
case 357: case 564:
this.$ = "MAX";
break;
case 358:
this.$ = "AVG";
break;
case 359:
this.$ = "FIRST";
break;
case 360:
this.$ = "LAST";
break;
case 361:
this.$ = "AGGR";
break;
case 362:
this.$ = "ARRAY";
break;
case 363:
var funcid = $$[$0-5];
var exprlist = $$[$0-2];
if(exprlist.length > 1 && (funcid.toUpperCase() == 'MIN' || funcid.toUpperCase() == 'MAX')) {
this.$ = new yy.FuncValue({funcid: funcid, args: exprlist, over: $$[$0]});
} else if(alasql.aggr[$$[$0-5]]) {
this.$ = new yy.AggrValue({aggregatorid: 'REDUCE',
funcid: funcid, expression: exprlist.pop(),distinct:($$[$0-3]=='DISTINCT'), over: $$[$0] });
} else {
this.$ = new yy.FuncValue({funcid: funcid, args: exprlist, over: $$[$0]});
};
break;
case 364:
this.$ = new yy.FuncValue({ funcid: $$[$0-3], over: $$[$0] })
break;
case 365:
this.$ = new yy.FuncValue({ funcid: 'IIF', args:$$[$0-1] })
break;
case 366:
this.$ = new yy.FuncValue({ funcid: 'REPLACE', args:$$[$0-1] })
break;
case 367:
this.$ = new yy.FuncValue({ funcid: $$[$0-2] })
break;
case 368:
this.$ = new yy.FuncValue({ funcid: 'DATEADD', args:[new yy.StringValue({value:$$[$0-5]}),$$[$0-3],$$[$0-1]]})
break;
case 369:
this.$ = new yy.FuncValue({ funcid: 'DATEADD', args:[$$[$0-5],$$[$0-3],$$[$0-1]]})
break;
case 370:
this.$ = new yy.FuncValue({ funcid: 'DATEDIFF', args:[new yy.StringValue({value:$$[$0-5]}),$$[$0-3],$$[$0-1]]})
break;
case 371:
this.$ = new yy.FuncValue({ funcid: 'DATEDIFF', args:[$$[$0-5],$$[$0-3],$$[$0-1]]})
break;
case 372:
this.$ = new yy.FuncValue({ funcid: 'TIMESTAMPDIFF', args:[new yy.StringValue({value:$$[$0-5]}),$$[$0-3],$$[$0-1]]})
break;
case 373:
this.$ = new yy.FuncValue({ funcid: 'INTERVAL', args:[$$[$0-1],new yy.StringValue({value:($$[$0]).toLowerCase()})]});
break;
case 375:
$$[$0-2].push($$[$0]); this.$ = $$[$0-2]
break;
case 376:
this.$ = new yy.NumValue({value:+$$[$0]});
break;
case 377:
this.$ = new yy.LogicValue({value:true});
break;
case 378:
this.$ = new yy.LogicValue({value:false});
break;
case 379:
var str = $$[$0].substr(1,$$[$0].length-2).replace(/(\'\')/g,"'");
// Process escape sequences: \n \t \r \\ \' \"
str = str.replace(/\\(n|t|r|\\|'|")/g, function(match, char) {
switch(char) {
case 'n': return '\n';
case 't': return '\t';
case 'r': return '\r';
case '\\': return '\\';
case "'": return "'";
case '"': return '"';
}
});
this.$ = new yy.StringValue({value: str});
break;
case 380:
var str = $$[$0].substr(2,$$[$0].length-3).replace(/(\'\')/g,"'");
// Process escape sequences: \n \t \r \\ \' \"
str = str.replace(/\\(n|t|r|\\|'|")/g, function(match, char) {
switch(char) {
case 'n': return '\n';
case 't': return '\t';
case 'r': return '\r';
case '\\': return '\\';
case "'": return "'";
case '"': return '"';
}
});
this.$ = new yy.StringValue({value: str});
break;
case 381:
this.$ = new yy.NullValue({value:undefined});
break;
case 382:
this.$ = new yy.VarValue({variable:$$[$0]});
break;
case 383:
if(!yy.exists) yy.exists = [];
this.$ = new yy.ExistsValue({value:$$[$0-1], existsidx:yy.exists.length});
yy.exists.push($$[$0-1]);
break;
case 384:
this.$ = new yy.ArrayValue({value:$$[$0-1]});
break;
case 385: case 386:
this.$ = new yy.ParamValue({param: $$[$0]});
break;
case 387:
if(typeof yy.question == 'undefined') yy.question = 0;
this.$ = new yy.ParamValue({param: yy.question++});
break;
case 388:
if(typeof yy.question == 'undefined') yy.question = 0;
this.$ = new yy.ParamValue({param: yy.question++, array:true});
break;
case 389:
this.$ = new yy.CaseValue({expression:$$[$0-3], whens: $$[$0-2], elses: $$[$0-1]});
break;
case 390:
this.$ = new yy.CaseValue({whens: $$[$0-2], elses: $$[$0-1]});
break;
case 391: case 722: case 723:
this.$ = $$[$0-1]; this.$.push($$[$0]);
break;
case 393:
this.$ = {when: $$[$0-2], then: $$[$0] };
break;
case 396: case 397:
this.$ = new yy.Op({left:$$[$0-2], op:'REGEXP', right:$$[$0]});
break;
case 398:
this.$ = new yy.Op({left:$$[$0-2], op:'GLOB', right:$$[$0]});
break;
case 399:
this.$ = new yy.Op({left:$$[$0-2], op:'LIKE', right:$$[$0]});
break;
case 400:
this.$ = new yy.Op({left:$$[$0-4], op:'LIKE', right:$$[$0-2], escape:$$[$0]});
break;
case 401:
this.$ = new yy.Op({left:$$[$0-2], op:'NOT LIKE', right:$$[$0] });
break;
case 402:
this.$ = new yy.Op({left:$$[$0-4], op:'NOT LIKE', right:$$[$0-2], escape:$$[$0] });
break;