-
Notifications
You must be signed in to change notification settings - Fork 670
/
Copy pathalasqlparser.js
executable file
·3007 lines (2837 loc) · 313 KB
/
alasqlparser.js
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,104],$V2=[1,102],$V3=[1,103],$V4=[1,6],$V5=[1,42],$V6=[1,79],$V7=[1,76],$V8=[1,94],$V9=[1,93],$Va=[1,69],$Vb=[1,101],$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,98],$VA=[1,65],$VB=[1,78],$VC=[1,72],$VD=[1,96],$VE=[1,97],$VF=[1,63],$VG=[1,73],$VH=[1,108],$VI=[1,107],$VJ=[10,311,607,768],$VK=[10,311,315,607,768],$VL=[1,115],$VM=[1,117],$VN=[1,116],$VO=[1,118],$VP=[1,119],$VQ=[1,120],$VR=[1,121],$VS=[130,358,415],$VT=[1,129],$VU=[1,128],$VV=[1,136],$VW=[1,166],$VX=[1,178],$VY=[1,181],$VZ=[1,176],$V_=[1,184],$V$=[1,188],$V01=[1,162],$V11=[1,185],$V21=[1,172],$V31=[1,174],$V41=[1,177],$V51=[1,186],$V61=[1,203],$V71=[1,204],$V81=[1,168],$V91=[1,169],$Va1=[1,196],$Vb1=[1,191],$Vc1=[1,192],$Vd1=[1,197],$Ve1=[1,198],$Vf1=[1,199],$Vg1=[1,200],$Vh1=[1,201],$Vi1=[1,202],$Vj1=[1,205],$Vk1=[1,206],$Vl1=[1,179],$Vm1=[1,180],$Vn1=[1,182],$Vo1=[1,183],$Vp1=[1,189],$Vq1=[1,195],$Vr1=[1,187],$Vs1=[1,190],$Vt1=[1,175],$Vu1=[1,173],$Vv1=[1,194],$Vw1=[1,207],$Vx1=[2,4,5],$Vy1=[2,480],$Vz1=[1,210],$VA1=[1,215],$VB1=[1,224],$VC1=[1,220],$VD1=[10,72,78,93,98,118,128,162,168,169,183,198,232,249,251,311,315,607,768],$VE1=[2,4,5,10,72,76,77,78,112,115,116,118,122,123,124,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,145,146,148,149,150,152,154,156,162,164,166,168,169,170,171,172,173,175,183,185,187,198,244,245,285,286,287,288,289,290,291,292,311,315,425,429,607,768],$VF1=[2,4,5,10,53,72,74,76,77,78,89,93,95,98,99,107,112,115,116,118,122,123,124,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,145,146,148,149,150,152,154,156,162,164,166,168,169,170,171,172,173,175,179,180,181,183,185,187,189,198,206,208,222,223,224,225,226,227,228,229,232,239,244,245,246,247,249,251,271,272,285,286,287,288,289,290,291,292,294,301,305,311,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,335,336,337,338,340,343,344,401,405,406,409,411,413,414,422,423,425,429,439,441,442,444,445,446,447,448,452,453,456,457,469,475,510,512,513,522,607,768],$VG1=[1,253],$VH1=[1,260],$VI1=[1,261],$VJ1=[1,270],$VK1=[1,275],$VL1=[1,274],$VM1=[2,4,5,10,72,77,78,93,98,107,118,128,131,132,137,143,145,149,152,154,156,162,168,169,179,180,181,183,198,232,244,245,249,251,269,270,271,275,276,278,285,286,287,288,289,290,291,292,294,295,296,297,298,299,300,301,302,303,304,307,308,311,315,317,322,425,429,607,768],$VN1=[2,162],$VO1=[1,286],$VP1=[10,74,78,311,315,510,607,768],$VQ1=[2,4,5,10,53,72,74,76,77,78,89,93,95,98,99,107,112,115,116,118,122,123,124,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,145,146,148,149,150,152,154,156,162,164,166,168,169,170,171,172,173,175,179,180,181,183,185,187,189,193,198,206,208,222,223,224,225,226,227,228,229,230,231,232,239,244,245,246,247,249,251,271,272,285,286,287,288,289,290,291,292,294,301,302,305,307,311,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,335,336,337,338,340,343,344,348,349,361,373,374,375,378,379,391,394,401,405,406,407,408,409,410,411,413,414,422,423,425,429,431,438,439,441,442,444,445,446,447,448,452,453,456,457,469,475,510,512,513,519,520,521,522,607,768],$VR1=[2,4,5,10,53,72,89,124,146,156,189,271,272,294,311,340,343,344,401,405,406,409,411,413,414,422,423,439,441,442,444,445,446,447,448,452,453,456,457,510,512,513,522,607,768],$VS1=[1,567],$VT1=[1,569],$VU1=[1,570],$VV1=[2,512],$VW1=[1,576],$VX1=[1,587],$VY1=[1,590],$VZ1=[1,591],$V_1=[10,78,89,132,137,146,189,301,311,315,475,607,768],$V$1=[10,74,311,315,607,768],$V02=[2,576],$V12=[1,609],$V22=[2,4,5,156],$V32=[1,647],$V42=[1,619],$V52=[1,653],$V62=[1,654],$V72=[1,627],$V82=[1,638],$V92=[1,625],$Va2=[1,633],$Vb2=[1,626],$Vc2=[1,634],$Vd2=[1,636],$Ve2=[1,628],$Vf2=[1,629],$Vg2=[1,648],$Vh2=[1,645],$Vi2=[1,646],$Vj2=[1,622],$Vk2=[1,624],$Vl2=[1,616],$Vm2=[1,617],$Vn2=[1,618],$Vo2=[1,620],$Vp2=[1,621],$Vq2=[1,623],$Vr2=[1,630],$Vs2=[1,631],$Vt2=[1,635],$Vu2=[1,637],$Vv2=[1,639],$Vw2=[1,640],$Vx2=[1,641],$Vy2=[1,642],$Vz2=[1,643],$VA2=[1,649],$VB2=[1,650],$VC2=[1,651],$VD2=[1,652],$VE2=[2,4,5,10,53,72,74,76,78,89,93,95,98,99,107,112,115,116,118,122,123,124,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,145,146,148,149,150,152,154,156,162,164,166,168,169,170,171,172,173,175,179,180,181,183,185,187,189,198,206,208,222,223,224,225,226,227,228,229,232,239,244,245,246,247,249,251,271,272,285,286,287,288,289,290,291,292,294,301,305,311,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,335,336,337,338,340,343,344,401,405,406,409,411,413,414,422,423,425,429,439,441,442,444,445,446,447,448,452,453,456,457,469,475,510,512,513,522,607,768],$VF2=[2,291],$VG2=[2,4,5,10,53,72,74,76,77,78,89,93,95,98,99,107,112,115,116,118,122,123,124,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,145,146,148,149,150,152,154,156,162,164,166,168,169,170,171,172,173,175,179,180,181,183,185,187,189,198,206,208,222,223,224,225,226,227,228,229,230,231,232,239,244,245,246,247,249,251,271,272,285,286,287,288,289,290,291,292,294,301,302,305,311,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,335,336,337,338,340,343,344,348,361,373,374,378,379,401,405,406,409,411,413,414,422,423,425,429,431,439,441,442,444,445,446,447,448,452,453,456,457,469,475,510,512,513,522,607,768],$VH2=[2,368],$VI2=[1,675],$VJ2=[1,685],$VK2=[2,4,5,10,53,72,74,76,77,78,89,93,95,98,99,107,112,115,116,118,122,123,124,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,145,146,148,149,150,152,154,156,162,164,166,168,169,170,171,172,173,175,179,180,181,183,185,187,189,198,206,208,222,223,224,225,226,227,228,229,230,231,232,239,244,245,246,247,249,251,271,272,285,286,287,288,289,290,291,292,294,301,305,311,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,335,336,337,338,340,343,344,401,405,406,409,411,413,414,422,423,425,429,431,439,441,442,444,445,446,447,448,452,453,456,457,469,475,510,512,513,522,607,768],$VL2=[1,701],$VM2=[1,710],$VN2=[1,709],$VO2=[2,4,5,10,72,74,78,93,98,118,128,162,168,169,206,208,222,223,224,225,226,227,228,229,230,231,232,249,251,311,315,607,768],$VP2=[10,72,74,78,93,98,118,128,162,168,169,206,208,222,223,224,225,226,227,228,229,230,231,232,249,251,311,315,607,768],$VQ2=[2,202],$VR2=[1,732],$VS2=[10,72,78,93,98,118,128,162,168,169,183,232,249,251,311,315,607,768],$VT2=[2,163],$VU2=[1,735],$VV2=[2,4,5,112],$VW2=[1,748],$VX2=[1,767],$VY2=[1,747],$VZ2=[1,746],$V_2=[1,741],$V$2=[1,742],$V03=[1,744],$V13=[1,745],$V23=[1,749],$V33=[1,750],$V43=[1,751],$V53=[1,752],$V63=[1,753],$V73=[1,754],$V83=[1,755],$V93=[1,756],$Va3=[1,757],$Vb3=[1,758],$Vc3=[1,759],$Vd3=[1,760],$Ve3=[1,761],$Vf3=[1,762],$Vg3=[1,763],$Vh3=[1,764],$Vi3=[1,766],$Vj3=[1,768],$Vk3=[1,769],$Vl3=[1,770],$Vm3=[1,771],$Vn3=[1,772],$Vo3=[1,773],$Vp3=[1,774],$Vq3=[1,777],$Vr3=[1,778],$Vs3=[1,779],$Vt3=[1,780],$Vu3=[1,781],$Vv3=[1,782],$Vw3=[1,783],$Vx3=[1,784],$Vy3=[1,785],$Vz3=[1,786],$VA3=[1,787],$VB3=[1,788],$VC3=[74,89,189],$VD3=[10,74,78,154,187,230,302,311,315,348,361,373,374,378,379,607,768],$VE3=[1,805],$VF3=[10,74,78,305,311,315,607,768],$VG3=[1,806],$VH3=[1,812],$VI3=[1,813],$VJ3=[1,817],$VK3=[10,74,78,311,315,607,768],$VL3=[2,4,5,77,131,132,137,143,145,149,152,154,156,179,180,181,244,245,269,270,271,275,276,278,285,286,287,288,289,290,291,292,294,295,296,297,298,299,300,301,302,303,304,307,308,317,322,425,429],$VM3=[10,72,78,93,98,107,118,128,162,168,169,183,198,232,249,251,311,315,607,768],$VN3=[2,4,5,10,72,77,78,93,98,107,118,128,131,132,137,143,145,149,152,154,156,162,164,168,169,179,180,181,183,185,187,195,198,232,244,245,249,251,269,270,271,275,276,278,285,286,287,288,289,290,291,292,294,295,296,297,298,299,300,301,302,303,304,307,308,311,315,317,322,425,429,607,768],$VO3=[2,4,5,132,301],$VP3=[1,853],$VQ3=[10,74,76,78,311,315,607,768],$VR3=[2,748],$VS3=[10,74,76,78,132,139,141,145,152,311,315,425,429,607,768],$VT3=[2,1171],$VU3=[10,74,76,78,139,141,145,152,311,315,425,429,607,768],$VV3=[10,74,76,78,139,141,145,311,315,425,429,607,768],$VW3=[10,74,78,139,141,311,315,607,768],$VX3=[10,78,89,132,146,189,301,311,315,475,607,768],$VY3=[340,343,344],$VZ3=[2,774],$V_3=[1,878],$V$3=[1,879],$V04=[1,880],$V14=[1,881],$V24=[1,890],$V34=[1,889],$V44=[164,166,339],$V54=[2,453],$V64=[1,945],$V74=[2,4,5,77,131,156,270,294,295,296,297,298],$V84=[1,960],$V94=[2,4,5,10,53,72,74,76,77,78,89,93,95,98,99,107,112,118,122,124,128,129,130,131,132,134,135,137,139,140,141,142,143,145,146,148,149,150,152,154,156,162,164,166,168,169,170,171,172,173,175,179,181,183,185,187,189,198,206,208,222,223,224,225,226,227,228,229,232,239,244,245,246,247,249,251,271,272,285,286,287,288,289,290,291,292,294,301,305,311,313,314,315,316,318,319,320,322,323,324,325,326,327,328,329,330,331,335,336,337,338,340,343,344,401,405,406,409,411,413,414,422,423,425,429,439,441,442,444,445,446,447,448,452,453,456,457,469,475,510,512,513,522,607,768],$Va4=[2,4,5,10,53,72,74,76,77,78,89,93,95,98,99,107,112,115,116,118,122,123,124,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,145,146,148,149,150,152,154,156,162,164,166,168,169,170,171,172,173,175,179,180,181,183,185,187,189,198,206,208,222,223,224,225,226,227,228,229,232,239,244,245,246,247,249,251,271,272,285,286,287,288,289,290,291,292,294,301,305,311,313,314,315,316,317,318,319,320,322,323,324,325,326,327,328,329,330,331,335,336,337,338,340,343,344,401,405,406,409,411,413,414,422,423,425,429,439,441,442,444,445,446,447,448,452,453,456,457,469,475,510,512,513,522,607,768],$Vb4=[2,384],$Vc4=[1,967],$Vd4=[311,313,315],$Ve4=[74,305],$Vf4=[74,305,431],$Vg4=[1,974],$Vh4=[74,431],$Vi4=[1,987],$Vj4=[1,986],$Vk4=[1,993],$Vl4=[10,72,78,93,98,118,128,162,168,169,232,249,251,311,315,607,768],$Vm4=[1,1020],$Vn4=[10,72,78,311,315,607,768],$Vo4=[1,1026],$Vp4=[1,1027],$Vq4=[1,1028],$Vr4=[2,4,5,10,72,74,76,77,78,112,115,116,118,122,123,124,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,145,146,148,149,150,152,154,156,162,164,166,168,169,170,171,172,173,175,179,180,181,183,185,187,198,244,245,285,286,287,288,289,290,291,292,311,315,425,429,607,768],$Vs4=[1,1078],$Vt4=[1,1077],$Vu4=[1,1091],$Vv4=[1,1090],$Vw4=[1,1098],$Vx4=[10,72,74,78,93,98,107,118,128,162,168,169,183,198,232,249,251,311,315,607,768],$Vy4=[1,1130],$Vz4=[10,78,89,146,189,311,315,475,607,768],$VA4=[1,1150],$VB4=[1,1149],$VC4=[1,1148],$VD4=[2,4,5,10,53,72,74,76,77,78,89,93,95,98,99,107,112,115,116,118,122,123,124,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,145,146,148,149,150,152,154,156,162,164,166,168,169,170,171,172,173,175,179,180,181,183,185,187,189,198,206,208,222,223,224,225,226,227,228,229,230,232,239,244,245,246,247,249,251,271,272,285,286,287,288,289,290,291,292,294,301,302,305,311,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,335,336,337,338,340,343,344,348,361,373,374,378,379,401,405,406,409,411,413,414,422,423,425,429,439,441,442,444,445,446,447,448,452,453,456,457,469,475,510,512,513,522,607,768],$VE4=[1,1164],$VF4=[2,4,5,10,53,72,74,76,77,78,89,93,95,98,99,107,112,118,122,124,128,129,130,131,132,134,135,137,139,140,143,145,146,148,149,150,152,154,156,162,164,166,168,169,170,171,172,173,175,181,183,185,187,189,198,206,208,222,223,224,225,226,227,228,229,232,239,244,245,246,247,249,251,271,272,285,286,287,288,289,290,291,292,294,301,305,311,313,314,315,316,318,319,320,325,326,327,328,329,330,331,335,336,337,338,340,343,344,401,405,406,409,411,413,414,422,423,425,429,439,441,442,444,445,446,447,448,452,453,456,457,469,475,510,512,513,522,607,768],$VG4=[2,4,5,10,53,72,74,76,77,78,89,93,95,98,99,107,112,118,122,124,128,129,130,131,132,134,135,137,139,140,143,145,146,148,149,150,152,154,156,162,164,166,168,169,170,171,172,173,175,181,183,185,187,189,198,206,208,222,223,224,225,226,227,228,229,232,239,244,245,246,247,249,251,271,272,285,286,287,288,289,290,291,292,294,301,305,311,313,314,315,316,318,320,325,326,327,328,329,330,331,335,336,337,338,340,343,344,401,405,406,409,411,413,414,422,423,425,429,439,441,442,444,445,446,447,448,452,453,456,457,469,475,510,512,513,522,607,768],$VH4=[2,4,5,10,53,72,74,76,77,78,89,93,95,98,99,107,112,118,122,124,128,129,130,131,132,133,134,135,137,138,139,140,141,142,143,145,146,148,149,150,152,154,156,162,164,166,168,169,170,171,172,173,175,179,180,181,183,185,187,189,198,206,208,222,223,224,225,226,227,228,229,232,239,244,245,246,247,249,251,271,272,285,286,287,288,289,290,291,292,294,301,305,311,313,314,315,316,318,319,320,322,323,324,325,326,327,328,329,330,331,335,336,337,338,340,343,344,401,405,406,409,411,413,414,422,423,425,429,439,441,442,444,445,446,447,448,452,453,456,457,469,475,510,512,513,522,607,768],$VI4=[2,4,5,10,53,72,74,76,77,78,89,93,95,98,99,107,112,118,122,124,128,129,130,131,132,134,135,137,139,140,141,142,143,145,146,148,149,150,152,154,156,162,164,166,168,169,170,171,172,173,175,181,183,185,187,189,198,206,208,222,223,224,225,226,227,228,229,232,239,244,245,246,247,249,251,271,272,285,286,287,288,289,290,291,292,294,301,305,311,313,314,315,316,318,319,320,323,324,325,326,327,328,329,330,331,335,336,337,338,340,343,344,401,405,406,409,411,413,414,422,423,425,429,439,441,442,444,445,446,447,448,452,453,456,457,469,475,510,512,513,522,607,768],$VJ4=[2,4,5,10,53,72,74,76,77,78,89,93,95,98,99,107,118,122,124,128,129,130,131,132,134,135,137,139,140,143,145,146,148,149,150,152,154,156,162,164,166,168,169,170,171,172,173,175,181,183,185,187,189,198,206,208,222,223,224,225,226,227,228,229,232,239,244,245,246,247,249,251,271,272,285,286,287,288,289,290,291,292,294,301,305,311,313,314,315,319,325,326,327,328,329,330,331,335,336,338,340,343,344,401,405,406,409,411,413,414,422,423,425,429,439,441,442,444,445,446,447,448,452,453,456,457,469,475,510,512,513,522,607,768],$VK4=[2,415],$VL4=[2,4,5,10,53,72,74,76,77,78,89,93,95,98,107,118,122,128,129,130,131,132,134,135,137,143,145,146,148,149,150,152,156,162,164,166,168,169,170,171,172,173,175,181,183,185,187,189,198,206,208,222,223,224,225,226,227,228,229,232,239,244,245,246,247,249,251,271,272,285,286,287,288,289,290,291,292,294,301,305,311,313,314,315,319,335,336,338,340,343,344,401,405,406,409,411,413,414,422,423,425,429,439,441,442,444,445,446,447,448,452,453,456,457,469,475,510,512,513,522,607,768],$VM4=[2,289],$VN4=[2,4,5,10,53,72,74,76,77,78,89,93,95,98,99,107,112,115,116,118,122,123,124,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,145,146,148,149,150,152,154,156,162,164,166,168,169,170,171,172,173,175,179,180,181,183,185,187,189,198,206,208,222,223,224,225,226,227,228,229,232,239,244,245,246,247,249,251,271,272,285,286,287,288,289,290,291,292,294,301,305,311,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,335,336,337,338,340,343,344,401,405,406,409,411,413,414,422,423,425,429,431,439,441,442,444,445,446,447,448,452,453,456,457,469,475,510,512,513,522,607,768],$VO4=[10,78,311,315,607,768],$VP4=[1,1200],$VQ4=[10,77,78,143,145,152,181,307,311,315,425,429,607,768],$VR4=[10,74,78,311,313,315,469,607,768],$VS4=[1,1211],$VT4=[10,72,78,118,128,162,168,169,232,249,251,311,315,607,768],$VU4=[10,72,74,78,93,98,118,128,162,168,169,183,198,232,249,251,311,315,607,768],$VV4=[2,4,5,72,76,77,78,112,115,116,118,122,123,124,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,145,146,148,149,150,152,154,156,162,164,166,168,169,170,171,172,173,175,185,187,244,245,285,286,287,288,289,290,291,292,425,429],$VW4=[2,4,5,72,74,76,77,78,112,115,116,118,122,123,124,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,145,146,148,149,150,152,154,156,162,164,166,168,169,170,171,172,173,175,185,187,244,245,285,286,287,288,289,290,291,292,425,429],$VX4=[2,1095],$VY4=[2,4,5,72,74,76,77,112,115,116,118,122,123,124,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,145,146,148,149,150,152,154,156,162,164,166,168,169,170,171,172,173,175,185,187,244,245,285,286,287,288,289,290,291,292,425,429],$VZ4=[1,1264],$V_4=[10,74,78,128,311,313,315,469,607,768],$V$4=[115,116,124],$V05=[2,593],$V15=[1,1293],$V25=[76,139],$V35=[2,734],$V45=[1,1310],$V55=[1,1311],$V65=[2,4,5,10,53,72,76,89,124,146,156,189,230,271,272,294,311,315,340,343,344,401,405,406,409,411,413,414,422,423,439,441,442,444,445,446,447,448,452,453,456,457,510,512,513,522,607,768],$V75=[2,336],$V85=[1,1335],$V95=[1,1349],$Va5=[1,1351],$Vb5=[2,496],$Vc5=[74,78],$Vd5=[10,311,313,315,469,607,768],$Ve5=[10,72,78,118,162,168,169,232,249,251,311,315,607,768],$Vf5=[1,1368],$Vg5=[1,1372],$Vh5=[1,1373],$Vi5=[1,1375],$Vj5=[1,1376],$Vk5=[1,1377],$Vl5=[1,1378],$Vm5=[1,1379],$Vn5=[1,1380],$Vo5=[1,1381],$Vp5=[1,1382],$Vq5=[10,72,74,78,93,98,118,128,162,168,169,206,208,222,223,224,225,226,227,228,229,232,249,251,311,315,607,768],$Vr5=[1,1407],$Vs5=[10,72,78,118,162,168,169,249,251,311,315,607,768],$Vt5=[10,72,78,93,98,118,128,162,168,169,206,208,222,223,224,225,226,227,228,229,232,249,251,311,315,607,768],$Vu5=[1,1505],$Vv5=[1,1507],$Vw5=[2,4,5,77,143,145,152,156,181,270,294,295,296,297,298,307,425,429],$Vx5=[1,1521],$Vy5=[10,72,74,78,162,168,169,249,251,311,315,607,768],$Vz5=[1,1539],$VA5=[1,1541],$VB5=[1,1542],$VC5=[1,1538],$VD5=[1,1537],$VE5=[1,1536],$VF5=[1,1543],$VG5=[1,1533],$VH5=[1,1534],$VI5=[1,1535],$VJ5=[1,1561],$VK5=[2,4,5,10,53,72,89,124,146,156,189,271,272,294,311,315,340,343,344,401,405,406,409,411,413,414,422,423,439,441,442,444,445,446,447,448,452,453,456,457,510,512,513,522,607,768],$VL5=[1,1572],$VM5=[1,1580],$VN5=[1,1579],$VO5=[10,72,78,162,168,169,249,251,311,315,607,768],$VP5=[10,72,78,93,98,118,128,162,168,169,206,208,222,223,224,225,226,227,228,229,230,231,232,249,251,311,315,607,768],$VQ5=[2,4,5,10,72,78,93,98,118,128,162,168,169,206,208,222,223,224,225,226,227,228,229,230,231,232,249,251,311,315,607,768],$VR5=[1,1640],$VS5=[1,1642],$VT5=[1,1639],$VU5=[1,1641],$VV5=[187,193,373,374,375,378],$VW5=[2,524],$VX5=[1,1647],$VY5=[1,1666],$VZ5=[10,72,78,162,168,169,311,315,607,768],$V_5=[1,1676],$V$5=[1,1677],$V06=[1,1678],$V16=[1,1700],$V26=[4,10,247,311,315,348,361,607,768],$V36=[1,1748],$V46=[10,72,74,78,118,162,168,169,239,249,251,311,315,607,768],$V56=[2,4,5,77],$V66=[1,1844],$V76=[1,1856],$V86=[1,1875],$V96=[10,72,78,162,168,169,311,315,420,607,768],$Va6=[10,74,78,230,311,315,607,768];
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,"AS":76,"LPAR":77,"RPAR":78,"SelectClause":79,"Select_option0":80,"IntoClause":81,"FromClause":82,"Select_option1":83,"WhereClause":84,"GroupClause":85,"OrderClause":86,"LimitClause":87,"UnionClause":88,"SEARCH":89,"Select_repetition0":90,"Select_option2":91,"PivotClause":92,"PIVOT":93,"Expression":94,"FOR":95,"PivotClause_option0":96,"PivotClause_option1":97,"UNPIVOT":98,"IN":99,"ColumnsList":100,"PivotClause_option2":101,"PivotClause2":102,"AsList":103,"AsLiteral":104,"AsPart":105,"RemoveClause":106,"REMOVE":107,"RemoveClause_option0":108,"RemoveColumnsList":109,"RemoveColumn":110,"Column":111,"LIKE":112,"StringValue":113,"ArrowDot":114,"ARROW":115,"DOT":116,"SearchSelector":117,"ORDER":118,"BY":119,"OrderExpressionsList":120,"SearchSelector_option0":121,"DOTDOT":122,"CARET":123,"EQ":124,"SearchSelector_repetition_plus0":125,"SearchSelector_repetition_plus1":126,"SearchSelector_option1":127,"WHERE":128,"OF":129,"CLASS":130,"NUMBER":131,"STRING":132,"SLASH":133,"VERTEX":134,"EDGE":135,"EXCLAMATION":136,"SHARP":137,"MODULO":138,"GT":139,"LT":140,"GTGT":141,"LTLT":142,"DOLLAR":143,"Json":144,"AT":145,"SET":146,"SetColumnsList":147,"TO":148,"VALUE":149,"ROW":150,"ExprList":151,"COLON":152,"PlusStar":153,"NOT":154,"SearchSelector_repetition2":155,"IF":156,"SearchSelector_repetition3":157,"Aggregator":158,"SearchSelector_repetition4":159,"SearchSelector_group0":160,"SearchSelector_repetition5":161,"UNION":162,"SearchSelectorList":163,"ALL":164,"SearchSelector_repetition6":165,"ANY":166,"SearchSelector_repetition7":167,"INTERSECT":168,"EXCEPT":169,"AND":170,"OR":171,"PATH":172,"RETURN":173,"ResultColumns":174,"REPEAT":175,"SearchSelector_repetition8":176,"SearchSelectorList_repetition0":177,"SearchSelectorList_repetition1":178,"PLUS":179,"STAR":180,"QUESTION":181,"SearchFrom":182,"FROM":183,"SelectModifier":184,"DISTINCT":185,"TopClause":186,"UNIQUE":187,"SelectClause_option0":188,"SELECT":189,"COLUMN":190,"MATRIX":191,"TEXTSTRING":192,"INDEX":193,"RECORDSET":194,"TOP":195,"NumValue":196,"TopClause_option0":197,"INTO":198,"Table":199,"FuncValue":200,"ParamValue":201,"VarValue":202,"FromTablesList":203,"JoinTablesList":204,"ApplyClause":205,"CROSS":206,"APPLY":207,"OUTER":208,"FromTable":209,"FromTable_option0":210,"FromTable_option1":211,"INDEXED":212,"INSERTED":213,"FromString":214,"JoinTable":215,"JoinMode":216,"JoinTableAs":217,"OnClause":218,"JoinTableAs_option0":219,"JoinTableAs_option1":220,"JoinModeMode":221,"NATURAL":222,"JOIN":223,"INNER":224,"LEFT":225,"RIGHT":226,"FULL":227,"SEMI":228,"ANTI":229,"ON":230,"USING":231,"GROUP":232,"GroupExpressionsList":233,"HavingClause":234,"GroupExpression":235,"GROUPING":236,"ROLLUP":237,"CUBE":238,"HAVING":239,"CORRESPONDING":240,"OrderExpression":241,"NullsOrder":242,"NULLS":243,"FIRST":244,"LAST":245,"DIRECTION":246,"COLLATE":247,"NOCASE":248,"LIMIT":249,"OffsetClause":250,"OFFSET":251,"LimitClause_option0":252,"FETCH":253,"LimitClause_option1":254,"LimitClause_option2":255,"LimitClause_option3":256,"ResultColumn":257,"Star":258,"AggrValue":259,"Op":260,"LogicValue":261,"NullValue":262,"ExistsValue":263,"CaseValue":264,"CastClause":265,"ArrayValue":266,"NewClause":267,"Expression_group0":268,"CURRENT_TIMESTAMP":269,"CURRENT_DATE":270,"JAVASCRIPT":271,"CREATE":272,"FUNCTION":273,"AGGREGATE":274,"NEW":275,"CAST":276,"ColumnType":277,"CONVERT":278,"PrimitiveValue":279,"OverClause":280,"OVER":281,"OverPartitionClause":282,"OverOrderByClause":283,"PARTITION":284,"SUM":285,"TOTAL":286,"COUNT":287,"MIN":288,"MAX":289,"AVG":290,"AGGR":291,"ARRAY":292,"FuncValue_option0":293,"REPLACE":294,"DATEADD":295,"DATEDIFF":296,"TIMESTAMPDIFF":297,"INTERVAL":298,"TRUE":299,"FALSE":300,"NSTRING":301,"NULL":302,"EXISTS":303,"ARRAYLBRA":304,"RBRA":305,"ParamValue_group0":306,"BRAQUESTION":307,"CASE":308,"WhensList":309,"ElseClause":310,"END":311,"When":312,"WHEN":313,"THEN":314,"ELSE":315,"REGEXP":316,"TILDA":317,"GLOB":318,"ESCAPE":319,"NOT_LIKE":320,"BARBAR":321,"MINUS":322,"AMPERSAND":323,"BAR":324,"GE":325,"LE":326,"EQEQ":327,"EQEQEQ":328,"NE":329,"NEEQEQ":330,"NEEQEQEQ":331,"CondOp":332,"AllSome":333,"ColFunc":334,"BETWEEN":335,"NOT_BETWEEN":336,"IS":337,"DOUBLECOLON":338,"SOME":339,"UPDATE":340,"SetColumn":341,"SetColumn_group0":342,"DELETE":343,"INSERT":344,"Into":345,"Values":346,"ValuesListsList":347,"DEFAULT":348,"VALUES":349,"ValuesList":350,"Value":351,"DateValue":352,"TemporaryClause":353,"TableClass":354,"IfNotExists":355,"CreateTableDefClause":356,"CreateTableOptionsClause":357,"TABLE":358,"CreateTableOptions":359,"CreateTableOption":360,"IDENTITY":361,"TEMP":362,"ColumnDefsList":363,"ConstraintsList":364,"Constraint":365,"ConstraintName":366,"PrimaryKey":367,"ForeignKey":368,"UniqueKey":369,"IndexKey":370,"Check":371,"CONSTRAINT":372,"CHECK":373,"PRIMARY":374,"KEY":375,"PrimaryKey_option0":376,"ColsList":377,"FOREIGN":378,"REFERENCES":379,"ForeignKey_option0":380,"OnForeignKeyClause":381,"ParColsList":382,"OnDeleteClause":383,"OnUpdateClause":384,"NO":385,"ACTION":386,"UniqueKey_option0":387,"UniqueKey_option1":388,"ColumnDef":389,"ColumnConstraintsClause":390,"ColumnConstraints":391,"SingularColumnType":392,"NumberMax":393,"ENUM":394,"MAXNUM":395,"ColumnConstraintsList":396,"ColumnConstraint":397,"ParLiteral":398,"ColumnConstraint_option0":399,"ColumnConstraint_option1":400,"DROP":401,"DropTable_group0":402,"IfExists":403,"TablesList":404,"ALTER":405,"RENAME":406,"ADD":407,"MODIFY":408,"ATTACH":409,"DATABASE":410,"DETACH":411,"AsClause":412,"USE":413,"SHOW":414,"VIEW":415,"CreateView_option0":416,"CreateView_option1":417,"SubqueryRestriction":418,"READ":419,"ONLY":420,"OPTION":421,"SOURCE":422,"ASSERT":423,"JsonObject":424,"ATLBRA":425,"JsonArray":426,"JsonValue":427,"JsonPrimitiveValue":428,"LCUR":429,"JsonPropertiesList":430,"RCUR":431,"JsonElementsList":432,"JsonProperty":433,"OnOff":434,"SetPropsList":435,"AtDollar":436,"SetProp":437,"OFF":438,"COMMIT":439,"TRANSACTION":440,"ROLLBACK":441,"BEGIN":442,"ElseStatement":443,"WHILE":444,"CONTINUE":445,"BREAK":446,"PRINT":447,"REQUIRE":448,"StringValuesList":449,"PluginsList":450,"Plugin":451,"ECHO":452,"DECLARE":453,"DeclaresList":454,"DeclareItem":455,"TRUNCATE":456,"MERGE":457,"MergeInto":458,"MergeUsing":459,"MergeOn":460,"MergeMatchedList":461,"OutputClause":462,"MergeMatched":463,"MergeNotMatched":464,"MATCHED":465,"MergeMatchedAction":466,"MergeNotMatchedAction":467,"TARGET":468,"OUTPUT":469,"CreateVertex_option0":470,"CreateVertex_option1":471,"CreateVertex_option2":472,"CreateVertexSet":473,"SharpValue":474,"CONTENT":475,"CreateEdge_option0":476,"GRAPH":477,"GraphList":478,"GraphVertexEdge":479,"GraphElement":480,"GraphVertexEdge_option0":481,"GraphVertexEdge_option1":482,"GraphElementVar":483,"GraphVertexEdge_option2":484,"GraphVertexEdge_option3":485,"GraphVertexEdge_option4":486,"GraphVar":487,"GraphAsClause":488,"GraphAtClause":489,"GraphElement2":490,"GraphElement2_option0":491,"GraphElement2_option1":492,"GraphElement2_option2":493,"GraphElement2_option3":494,"GraphElement_option0":495,"GraphElement_option1":496,"GraphElement_option2":497,"SharpLiteral":498,"GraphElement_option3":499,"GraphElement_option4":500,"GraphElement_option5":501,"ColonLiteral":502,"DeleteVertex":503,"DeleteVertex_option0":504,"DeleteEdge":505,"DeleteEdge_option0":506,"DeleteEdge_option1":507,"DeleteEdge_option2":508,"Term":509,"COLONDASH":510,"TermsList":511,"QUESTIONDASH":512,"CALL":513,"TRIGGER":514,"BeforeAfter":515,"InsertDeleteUpdate":516,"CreateTrigger_option0":517,"CreateTrigger_option1":518,"BEFORE":519,"AFTER":520,"INSTEAD":521,"REINDEX":522,"A":523,"ABSENT":524,"ABSOLUTE":525,"ACCORDING":526,"ADA":527,"ADMIN":528,"ALWAYS":529,"ASC":530,"ASSERTION":531,"ASSIGNMENT":532,"ATTRIBUTE":533,"ATTRIBUTES":534,"BASE64":535,"BERNOULLI":536,"BLOCKED":537,"BOM":538,"BREADTH":539,"C":540,"CASCADE":541,"CATALOG":542,"CATALOG_NAME":543,"CHAIN":544,"CHARACTERISTICS":545,"CHARACTERS":546,"CHARACTER_SET_CATALOG":547,"CHARACTER_SET_NAME":548,"CHARACTER_SET_SCHEMA":549,"CLASS_ORIGIN":550,"COBOL":551,"COLLATION":552,"COLLATION_CATALOG":553,"COLLATION_NAME":554,"COLLATION_SCHEMA":555,"COLUMNS":556,"COLUMN_NAME":557,"COMMAND_FUNCTION":558,"COMMAND_FUNCTION_CODE":559,"COMMITTED":560,"CONDITION_NUMBER":561,"CONNECTION":562,"CONNECTION_NAME":563,"CONSTRAINTS":564,"CONSTRAINT_CATALOG":565,"CONSTRAINT_NAME":566,"CONSTRAINT_SCHEMA":567,"CONSTRUCTOR":568,"CONTROL":569,"CURSOR_NAME":570,"DATA":571,"DATETIME_INTERVAL_CODE":572,"DATETIME_INTERVAL_PRECISION":573,"DB":574,"DEFAULTS":575,"DEFERRABLE":576,"DEFERRED":577,"DEFINED":578,"DEFINER":579,"DEGREE":580,"DEPTH":581,"DERIVED":582,"DESC":583,"DESCRIPTOR":584,"DIAGNOSTICS":585,"DISPATCH":586,"DOCUMENT":587,"DOMAIN":588,"DYNAMIC_FUNCTION":589,"DYNAMIC_FUNCTION_CODE":590,"EMPTY":591,"ENCODING":592,"ENFORCED":593,"EXCLUDE":594,"EXCLUDING":595,"EXPRESSION":596,"FILE":597,"FINAL":598,"FLAG":599,"FOLLOWING":600,"FORTRAN":601,"FOUND":602,"FS":603,"G":604,"GENERAL":605,"GENERATED":606,"GO":607,"GOTO":608,"GRANTED":609,"HEX":610,"HIERARCHY":611,"ID":612,"IGNORE":613,"IMMEDIATE":614,"IMMEDIATELY":615,"IMPLEMENTATION":616,"INCLUDING":617,"INCREMENT":618,"INDENT":619,"INITIALLY":620,"INPUT":621,"INSTANCE":622,"INSTANTIABLE":623,"INTEGRITY":624,"INVOKER":625,"ISOLATION":626,"K":627,"KEY_MEMBER":628,"KEY_TYPE":629,"LENGTH":630,"LEVEL":631,"LIBRARY":632,"LINK":633,"LOCATION":634,"LOCATOR":635,"M":636,"MAP":637,"MAPPING":638,"MAXVALUE":639,"MESSAGE_LENGTH":640,"MESSAGE_OCTET_LENGTH":641,"MESSAGE_TEXT":642,"MINVALUE":643,"MORE":644,"MUMPS":645,"NAME":646,"NAMES":647,"NAMESPACE":648,"NESTING":649,"NEXT":650,"NFC":651,"NFD":652,"NFKC":653,"NFKD":654,"NIL":655,"NORMALIZED":656,"NULLABLE":657,"OBJECT":658,"OCTETS":659,"OPTIONS":660,"ORDERING":661,"ORDINALITY":662,"OTHERS":663,"OVERRIDING":664,"P":665,"PAD":666,"PARAMETER_MODE":667,"PARAMETER_NAME":668,"PARAMETER_ORDINAL_POSITION":669,"PARAMETER_SPECIFIC_CATALOG":670,"PARAMETER_SPECIFIC_NAME":671,"PARAMETER_SPECIFIC_SCHEMA":672,"PARTIAL":673,"PASCAL":674,"PASSING":675,"PASSTHROUGH":676,"PERMISSION":677,"PLACING":678,"PLI":679,"PRECEDING":680,"PRESERVE":681,"PRIOR":682,"PRIVILEGES":683,"PUBLIC":684,"RECOVERY":685,"RELATIVE":686,"REPEATABLE":687,"REQUIRING":688,"RESPECT":689,"RESTART":690,"RESTORE":691,"RESTRICT":692,"RETURNED_CARDINALITY":693,"RETURNED_LENGTH":694,"RETURNED_OCTET_LENGTH":695,"RETURNED_SQLSTATE":696,"RETURNING":697,"ROLE":698,"ROUTINE":699,"ROUTINE_CATALOG":700,"ROUTINE_NAME":701,"ROUTINE_SCHEMA":702,"ROW_COUNT":703,"SCALE":704,"SCHEMA":705,"SCHEMA_NAME":706,"SCOPE_CATALOG":707,"SCOPE_NAME":708,"SCOPE_SCHEMA":709,"SECTION":710,"SECURITY":711,"SELECTIVE":712,"SELF":713,"SEQUENCE":714,"SERIALIZABLE":715,"SERVER":716,"SERVER_NAME":717,"SESSION":718,"SETS":719,"SIMPLE":720,"SIZE":721,"SPACE":722,"SPECIFIC_NAME":723,"STANDALONE":724,"STATE":725,"STATEMENT":726,"STRIP":727,"STRUCTURE":728,"STYLE":729,"SUBCLASS_ORIGIN":730,"T":731,"TABLE_NAME":732,"TEMPORARY":733,"TIES":734,"TOKEN":735,"TOP_LEVEL_COUNT":736,"TRANSACTIONS_COMMITTED":737,"TRANSACTIONS_ROLLED_BACK":738,"TRANSACTION_ACTIVE":739,"TRANSFORM":740,"TRANSFORMS":741,"TRIGGER_CATALOG":742,"TRIGGER_NAME":743,"TRIGGER_SCHEMA":744,"TYPE":745,"UNBOUNDED":746,"UNCOMMITTED":747,"UNDER":748,"UNLINK":749,"UNNAMED":750,"UNTYPED":751,"URI":752,"USAGE":753,"USER_DEFINED_TYPE_CATALOG":754,"USER_DEFINED_TYPE_CODE":755,"USER_DEFINED_TYPE_NAME":756,"USER_DEFINED_TYPE_SCHEMA":757,"VALID":758,"VERSION":759,"WHITESPACE":760,"WORK":761,"WRAPPER":762,"WRITE":763,"XMLDECLARATION":764,"XMLSCHEMA":765,"YES":766,"ZONE":767,"SEMICOLON":768,"PERCENT":769,"ROWS":770,"FuncValue_option0_group0":771,"$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:"AS",77:"LPAR",78:"RPAR",89:"SEARCH",93:"PIVOT",95:"FOR",98:"UNPIVOT",99:"IN",107:"REMOVE",112:"LIKE",115:"ARROW",116:"DOT",118:"ORDER",119:"BY",122:"DOTDOT",123:"CARET",124:"EQ",128:"WHERE",129:"OF",130:"CLASS",131:"NUMBER",132:"STRING",133:"SLASH",134:"VERTEX",135:"EDGE",136:"EXCLAMATION",137:"SHARP",138:"MODULO",139:"GT",140:"LT",141:"GTGT",142:"LTLT",143:"DOLLAR",145:"AT",146:"SET",148:"TO",149:"VALUE",150:"ROW",152:"COLON",154:"NOT",156:"IF",162:"UNION",164:"ALL",166:"ANY",168:"INTERSECT",169:"EXCEPT",170:"AND",171:"OR",172:"PATH",173:"RETURN",175:"REPEAT",179:"PLUS",180:"STAR",181:"QUESTION",183:"FROM",185:"DISTINCT",187:"UNIQUE",189:"SELECT",190:"COLUMN",191:"MATRIX",192:"TEXTSTRING",193:"INDEX",194:"RECORDSET",195:"TOP",198:"INTO",206:"CROSS",207:"APPLY",208:"OUTER",212:"INDEXED",213:"INSERTED",222:"NATURAL",223:"JOIN",224:"INNER",225:"LEFT",226:"RIGHT",227:"FULL",228:"SEMI",229:"ANTI",230:"ON",231:"USING",232:"GROUP",236:"GROUPING",237:"ROLLUP",238:"CUBE",239:"HAVING",240:"CORRESPONDING",243:"NULLS",244:"FIRST",245:"LAST",246:"DIRECTION",247:"COLLATE",248:"NOCASE",249:"LIMIT",251:"OFFSET",253:"FETCH",269:"CURRENT_TIMESTAMP",270:"CURRENT_DATE",271:"JAVASCRIPT",272:"CREATE",273:"FUNCTION",274:"AGGREGATE",275:"NEW",276:"CAST",278:"CONVERT",281:"OVER",284:"PARTITION",285:"SUM",286:"TOTAL",287:"COUNT",288:"MIN",289:"MAX",290:"AVG",291:"AGGR",292:"ARRAY",294:"REPLACE",295:"DATEADD",296:"DATEDIFF",297:"TIMESTAMPDIFF",298:"INTERVAL",299:"TRUE",300:"FALSE",301:"NSTRING",302:"NULL",303:"EXISTS",304:"ARRAYLBRA",305:"RBRA",307:"BRAQUESTION",308:"CASE",311:"END",313:"WHEN",314:"THEN",315:"ELSE",316:"REGEXP",317:"TILDA",318:"GLOB",319:"ESCAPE",320:"NOT_LIKE",321:"BARBAR",322:"MINUS",323:"AMPERSAND",324:"BAR",325:"GE",326:"LE",327:"EQEQ",328:"EQEQEQ",329:"NE",330:"NEEQEQ",331:"NEEQEQEQ",335:"BETWEEN",336:"NOT_BETWEEN",337:"IS",338:"DOUBLECOLON",339:"SOME",340:"UPDATE",343:"DELETE",344:"INSERT",348:"DEFAULT",349:"VALUES",352:"DateValue",358:"TABLE",361:"IDENTITY",362:"TEMP",372:"CONSTRAINT",373:"CHECK",374:"PRIMARY",375:"KEY",378:"FOREIGN",379:"REFERENCES",385:"NO",386:"ACTION",391:"ColumnConstraints",394:"ENUM",395:"MAXNUM",401:"DROP",405:"ALTER",406:"RENAME",407:"ADD",408:"MODIFY",409:"ATTACH",410:"DATABASE",411:"DETACH",413:"USE",414:"SHOW",415:"VIEW",419:"READ",420:"ONLY",421:"OPTION",422:"SOURCE",423:"ASSERT",425:"ATLBRA",429:"LCUR",431:"RCUR",438:"OFF",439:"COMMIT",440:"TRANSACTION",441:"ROLLBACK",442:"BEGIN",444:"WHILE",445:"CONTINUE",446:"BREAK",447:"PRINT",448:"REQUIRE",452:"ECHO",453:"DECLARE",456:"TRUNCATE",457:"MERGE",465:"MATCHED",468:"TARGET",469:"OUTPUT",475:"CONTENT",477:"GRAPH",510:"COLONDASH",512:"QUESTIONDASH",513:"CALL",514:"TRIGGER",519:"BEFORE",520:"AFTER",521:"INSTEAD",522:"REINDEX",523:"A",524:"ABSENT",525:"ABSOLUTE",526:"ACCORDING",527:"ADA",528:"ADMIN",529:"ALWAYS",530:"ASC",531:"ASSERTION",532:"ASSIGNMENT",533:"ATTRIBUTE",534:"ATTRIBUTES",535:"BASE64",536:"BERNOULLI",537:"BLOCKED",538:"BOM",539:"BREADTH",540:"C",541:"CASCADE",542:"CATALOG",543:"CATALOG_NAME",544:"CHAIN",545:"CHARACTERISTICS",546:"CHARACTERS",547:"CHARACTER_SET_CATALOG",548:"CHARACTER_SET_NAME",549:"CHARACTER_SET_SCHEMA",550:"CLASS_ORIGIN",551:"COBOL",552:"COLLATION",553:"COLLATION_CATALOG",554:"COLLATION_NAME",555:"COLLATION_SCHEMA",556:"COLUMNS",557:"COLUMN_NAME",558:"COMMAND_FUNCTION",559:"COMMAND_FUNCTION_CODE",560:"COMMITTED",561:"CONDITION_NUMBER",562:"CONNECTION",563:"CONNECTION_NAME",564:"CONSTRAINTS",565:"CONSTRAINT_CATALOG",566:"CONSTRAINT_NAME",567:"CONSTRAINT_SCHEMA",568:"CONSTRUCTOR",569:"CONTROL",570:"CURSOR_NAME",571:"DATA",572:"DATETIME_INTERVAL_CODE",573:"DATETIME_INTERVAL_PRECISION",574:"DB",575:"DEFAULTS",576:"DEFERRABLE",577:"DEFERRED",578:"DEFINED",579:"DEFINER",580:"DEGREE",581:"DEPTH",582:"DERIVED",583:"DESC",584:"DESCRIPTOR",585:"DIAGNOSTICS",586:"DISPATCH",587:"DOCUMENT",588:"DOMAIN",589:"DYNAMIC_FUNCTION",590:"DYNAMIC_FUNCTION_CODE",591:"EMPTY",592:"ENCODING",593:"ENFORCED",594:"EXCLUDE",595:"EXCLUDING",596:"EXPRESSION",597:"FILE",598:"FINAL",599:"FLAG",600:"FOLLOWING",601:"FORTRAN",602:"FOUND",603:"FS",604:"G",605:"GENERAL",606:"GENERATED",607:"GO",608:"GOTO",609:"GRANTED",610:"HEX",611:"HIERARCHY",612:"ID",613:"IGNORE",614:"IMMEDIATE",615:"IMMEDIATELY",616:"IMPLEMENTATION",617:"INCLUDING",618:"INCREMENT",619:"INDENT",620:"INITIALLY",621:"INPUT",622:"INSTANCE",623:"INSTANTIABLE",624:"INTEGRITY",625:"INVOKER",626:"ISOLATION",627:"K",628:"KEY_MEMBER",629:"KEY_TYPE",630:"LENGTH",631:"LEVEL",632:"LIBRARY",633:"LINK",634:"LOCATION",635:"LOCATOR",636:"M",637:"MAP",638:"MAPPING",639:"MAXVALUE",640:"MESSAGE_LENGTH",641:"MESSAGE_OCTET_LENGTH",642:"MESSAGE_TEXT",643:"MINVALUE",644:"MORE",645:"MUMPS",646:"NAME",647:"NAMES",648:"NAMESPACE",649:"NESTING",650:"NEXT",651:"NFC",652:"NFD",653:"NFKC",654:"NFKD",655:"NIL",656:"NORMALIZED",657:"NULLABLE",658:"OBJECT",659:"OCTETS",660:"OPTIONS",661:"ORDERING",662:"ORDINALITY",663:"OTHERS",664:"OVERRIDING",665:"P",666:"PAD",667:"PARAMETER_MODE",668:"PARAMETER_NAME",669:"PARAMETER_ORDINAL_POSITION",670:"PARAMETER_SPECIFIC_CATALOG",671:"PARAMETER_SPECIFIC_NAME",672:"PARAMETER_SPECIFIC_SCHEMA",673:"PARTIAL",674:"PASCAL",675:"PASSING",676:"PASSTHROUGH",677:"PERMISSION",678:"PLACING",679:"PLI",680:"PRECEDING",681:"PRESERVE",682:"PRIOR",683:"PRIVILEGES",684:"PUBLIC",685:"RECOVERY",686:"RELATIVE",687:"REPEATABLE",688:"REQUIRING",689:"RESPECT",690:"RESTART",691:"RESTORE",692:"RESTRICT",693:"RETURNED_CARDINALITY",694:"RETURNED_LENGTH",695:"RETURNED_OCTET_LENGTH",696:"RETURNED_SQLSTATE",697:"RETURNING",698:"ROLE",699:"ROUTINE",700:"ROUTINE_CATALOG",701:"ROUTINE_NAME",702:"ROUTINE_SCHEMA",703:"ROW_COUNT",704:"SCALE",705:"SCHEMA",706:"SCHEMA_NAME",707:"SCOPE_CATALOG",708:"SCOPE_NAME",709:"SCOPE_SCHEMA",710:"SECTION",711:"SECURITY",712:"SELECTIVE",713:"SELF",714:"SEQUENCE",715:"SERIALIZABLE",716:"SERVER",717:"SERVER_NAME",718:"SESSION",719:"SETS",720:"SIMPLE",721:"SIZE",722:"SPACE",723:"SPECIFIC_NAME",724:"STANDALONE",725:"STATE",726:"STATEMENT",727:"STRIP",728:"STRUCTURE",729:"STYLE",730:"SUBCLASS_ORIGIN",731:"T",732:"TABLE_NAME",733:"TEMPORARY",734:"TIES",735:"TOKEN",736:"TOP_LEVEL_COUNT",737:"TRANSACTIONS_COMMITTED",738:"TRANSACTIONS_ROLLED_BACK",739:"TRANSACTION_ACTIVE",740:"TRANSFORM",741:"TRANSFORMS",742:"TRIGGER_CATALOG",743:"TRIGGER_NAME",744:"TRIGGER_SCHEMA",745:"TYPE",746:"UNBOUNDED",747:"UNCOMMITTED",748:"UNDER",749:"UNLINK",750:"UNNAMED",751:"UNTYPED",752:"URI",753:"USAGE",754:"USER_DEFINED_TYPE_CATALOG",755:"USER_DEFINED_TYPE_CODE",756:"USER_DEFINED_TYPE_NAME",757:"USER_DEFINED_TYPE_SCHEMA",758:"VALID",759:"VERSION",760:"WHITESPACE",761:"WORK",762:"WRAPPER",763:"WRITE",764:"XMLDECLARATION",765:"XMLSCHEMA",766:"YES",767:"ZONE",768:"SEMICOLON",769:"PERCENT",770:"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,1],[75,5],[40,10],[40,4],[92,8],[92,11],[102,4],[104,2],[104,1],[103,3],[103,1],[105,1],[105,3],[106,3],[109,3],[109,1],[110,1],[110,2],[114,1],[114,1],[117,1],[117,5],[117,5],[117,1],[117,2],[117,1],[117,2],[117,2],[117,3],[117,4],[117,4],[117,4],[117,4],[117,4],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,2],[117,2],[117,2],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,2],[117,3],[117,4],[117,3],[117,1],[117,4],[117,2],[117,2],[117,4],[117,4],[117,4],[117,4],[117,4],[117,5],[117,4],[117,4],[117,4],[117,4],[117,4],[117,4],[117,4],[117,4],[117,6],[163,3],[163,1],[153,1],[153,1],[153,1],[182,2],[79,4],[79,4],[79,4],[79,3],[184,1],[184,2],[184,2],[184,2],[184,2],[184,2],[184,2],[184,2],[186,3],[186,4],[186,0],[81,0],[81,2],[81,2],[81,2],[81,2],[81,2],[82,2],[82,3],[82,5],[82,0],[205,6],[205,7],[205,6],[205,7],[203,1],[203,3],[209,4],[209,5],[209,3],[209,3],[209,2],[209,3],[209,1],[209,3],[209,2],[209,3],[209,1],[209,1],[209,2],[209,3],[209,1],[209,1],[209,2],[209,3],[209,1],[209,2],[209,3],[214,1],[199,3],[199,1],[204,2],[204,2],[204,1],[204,1],[215,3],[217,1],[217,2],[217,3],[217,3],[217,2],[217,3],[217,4],[217,5],[217,1],[217,2],[217,3],[217,1],[217,2],[217,3],[216,1],[216,2],[221,1],[221,2],[221,2],[221,3],[221,2],[221,3],[221,2],[221,3],[221,2],[221,2],[221,2],[218,2],[218,2],[218,4],[218,0],[84,0],[84,2],[85,0],[85,4],[233,1],[233,3],[235,5],[235,4],[235,4],[235,1],[234,0],[234,2],[88,0],[88,2],[88,3],[88,2],[88,2],[88,3],[88,4],[88,3],[88,3],[86,0],[86,3],[120,1],[120,3],[242,2],[242,2],[241,1],[241,2],[241,3],[241,3],[241,4],[87,0],[87,3],[87,8],[250,0],[250,2],[174,3],[174,1],[257,3],[257,2],[257,3],[257,2],[257,3],[257,2],[257,1],[258,5],[258,3],[258,1],[111,5],[111,3],[111,3],[111,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,3],[94,3],[94,3],[94,1],[94,1],[94,1],[56,1],[70,5],[71,5],[267,2],[267,2],[265,6],[265,8],[265,6],[265,8],[279,1],[279,1],[279,1],[279,1],[279,1],[279,1],[279,1],[279,1],[259,5],[259,6],[259,6],[280,0],[280,4],[280,4],[280,5],[282,3],[283,3],[158,1],[158,1],[158,1],[158,1],[158,1],[158,1],[158,1],[158,1],[158,1],[158,1],[200,5],[200,3],[200,4],[200,4],[200,3],[200,8],[200,8],[200,8],[200,8],[200,8],[200,3],[151,1],[151,3],[196,1],[261,1],[261,1],[113,1],[113,1],[262,1],[202,2],[263,4],[266,3],[201,2],[201,2],[201,1],[201,1],[264,5],[264,4],[309,2],[309,1],[312,4],[310,2],[310,0],[260,3],[260,3],[260,3],[260,3],[260,5],[260,3],[260,5],[260,3],[260,3],[260,3],[260,3],[260,3],[260,3],[260,3],[260,3],[260,3],[260,3],[260,3],[260,3],[260,3],[260,5],[260,3],[260,3],[260,3],[260,5],[260,3],[260,3],[260,3],[260,3],[260,3],[260,3],[260,3],[260,3],[260,3],[260,3],[260,3],[260,6],[260,6],[260,3],[260,3],[260,2],[260,2],[260,2],[260,2],[260,2],[260,3],[260,5],[260,6],[260,5],[260,6],[260,4],[260,5],[260,3],[260,4],[260,3],[260,4],[260,3],[260,3],[260,3],[260,3],[260,3],[334,1],[334,1],[334,4],[332,1],[332,1],[332,1],[332,1],[332,1],[332,1],[333,1],[333,1],[333,1],[55,6],[55,4],[147,1],[147,3],[341,3],[341,4],[29,5],[29,3],[36,5],[36,4],[36,7],[36,6],[36,5],[36,4],[36,5],[36,8],[36,7],[36,4],[36,6],[36,7],[346,1],[346,1],[345,0],[345,1],[347,3],[347,1],[347,1],[347,5],[347,3],[347,3],[350,1],[350,3],[351,1],[351,1],[351,1],[351,1],[351,1],[351,1],[100,1],[100,3],[24,9],[24,5],[354,1],[354,1],[357,0],[357,1],[359,2],[359,1],[360,1],[360,3],[360,3],[360,3],[353,0],[353,1],[355,0],[355,3],[356,3],[356,1],[356,2],[364,1],[364,3],[365,2],[365,2],[365,2],[365,2],[365,2],[366,0],[366,2],[371,4],[367,6],[368,9],[382,3],[381,0],[381,2],[383,4],[384,4],[369,6],[370,5],[370,5],[377,1],[377,1],[377,3],[377,3],[363,1],[363,3],[389,3],[389,2],[389,1],[392,6],[392,4],[392,1],[392,4],[277,2],[277,1],[393,1],[393,1],[390,0],[390,1],[396,2],[396,1],[398,3],[397,2],[397,5],[397,3],[397,6],[397,1],[397,2],[397,4],[397,2],[397,1],[397,2],[397,1],[397,1],[397,3],[397,5],[33,4],[404,3],[404,1],[403,0],[403,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],[412,0],[412,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],[418,3],[418,3],[418,5],[34,4],[66,2],[57,2],[58,2],[58,2],[58,4],[144,4],[144,2],[144,2],[144,2],[144,2],[144,1],[144,2],[144,2],[427,1],[427,1],[428,1],[428,1],[428,1],[428,1],[428,1],[428,1],[428,1],[428,3],[424,3],[424,4],[424,2],[426,2],[426,3],[426,1],[430,3],[430,1],[433,3],[433,3],[433,3],[432,3],[432,1],[65,4],[65,3],[65,4],[65,5],[65,5],[65,6],[436,1],[436,1],[435,3],[435,2],[437,1],[437,1],[437,3],[434,1],[434,1],[51,2],[52,2],[50,2],[35,4],[35,3],[443,2],[59,3],[60,1],[61,1],[62,3],[63,2],[63,2],[64,2],[64,2],[451,1],[451,1],[69,2],[449,3],[449,1],[450,3],[450,1],[28,2],[454,1],[454,3],[455,3],[455,4],[455,5],[455,6],[46,3],[37,6],[458,1],[458,2],[459,2],[459,4],[460,2],[461,2],[461,2],[461,1],[461,1],[463,4],[463,6],[466,1],[466,3],[464,5],[464,7],[464,7],[464,9],[464,7],[464,9],[467,3],[467,6],[467,3],[467,6],[462,0],[462,2],[462,5],[462,4],[462,7],[27,6],[474,2],[473,0],[473,2],[473,2],[473,1],[26,8],[23,3],[23,4],[478,3],[478,1],[479,3],[479,7],[479,6],[479,3],[479,4],[483,1],[483,1],[487,2],[488,3],[489,2],[490,4],[480,4],[480,3],[480,2],[480,1],[502,2],[498,2],[498,2],[503,4],[505,6],[67,3],[67,2],[511,3],[511,1],[509,1],[509,4],[68,2],[20,2],[48,9],[48,8],[48,9],[515,0],[515,1],[515,1],[515,1],[515,2],[516,1],[516,1],[516,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],[80,0],[80,1],[83,0],[83,1],[90,0],[90,2],[91,0],[91,1],[96,0],[96,1],[97,0],[97,1],[101,0],[101,1],[108,0],[108,1],[121,0],[121,1],[125,1],[125,2],[126,1],[126,2],[127,0],[127,1],[155,0],[155,2],[157,0],[157,2],[159,0],[159,2],[160,1],[160,1],[161,0],[161,2],[165,0],[165,2],[167,0],[167,2],[176,0],[176,2],[177,0],[177,2],[178,0],[178,2],[188,0],[188,1],[197,0],[197,1],[210,0],[210,1],[211,0],[211,1],[219,0],[219,1],[220,0],[220,1],[252,0],[252,1],[254,0],[254,1],[255,0],[255,1],[256,0],[256,1],[268,1],[268,1],[771,1],[771,1],[293,0],[293,1],[306,1],[306,1],[342,1],[342,1],[376,0],[376,1],[380,0],[380,1],[387,0],[387,1],[388,0],[388,1],[399,0],[399,1],[400,0],[400,1],[402,1],[402,1],[416,0],[416,1],[417,0],[417,1],[470,0],[470,1],[471,0],[471,1],[472,0],[472,1],[476,0],[476,1],[481,0],[481,1],[482,0],[482,1],[484,0],[484,1],[485,0],[485,1],[486,0],[486,1],[491,0],[491,1],[492,0],[492,1],[493,0],[493,1],[494,0],[494,1],[495,0],[495,1],[496,0],[496,1],[497,0],[497,1],[499,0],[499,1],[500,0],[500,1],[501,0],[501,1],[504,0],[504,2],[506,0],[506,2],[507,0],[507,2],[508,0],[508,2],[517,0],[517,1],[518,0],[518,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 70: case 80: case 85: case 143: case 177: case 205: case 206: case 243: case 262: case 277: case 363: case 381: case 460: case 483: case 484: case 488: case 496: case 537: case 538: case 575: case 658: case 668: case 692: case 694: case 696: case 711: case 712: case 742: case 766:
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 162: case 172: case 238: case 239: case 241: case 249: case 251: case 260: case 271: case 274: case 384: case 500: case 510: case 512: case 524: case 530: case 531: case 576:
this.$ = undefined;
break;
case 68:
this.$ = new yy.WithSelect({withs: $$[$0-1], select:$$[$0]});
break;
case 69: case 574:
$$[$0-2].push($$[$0]); this.$=$$[$0-2];
break;
case 71:
this.$ = {name:$$[$0-4], select:$$[$0-1]};
break;
case 72:
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 73:
this.$ = new yy.Search({selectors:$$[$0-2], from:$$[$0]});
yy.extend(this.$,$$[$0-1]);
break;
case 74:
this.$ = {pivot:{expr:$$[$0-5], columnid:$$[$0-3], inlist:$$[$0-2], as:$$[$0]}};
break;
case 75:
this.$ = {unpivot:{tocolumnid:$$[$0-8], forcolumnid:$$[$0-6], inlist:$$[$0-3], as:$$[$0]}};
break;
case 76: case 529: case 558: case 594: case 628: case 645: case 646: case 649: case 671:
this.$ = $$[$0-1];
break;
case 77: case 78: case 86: case 147: case 185: case 248: case 284: case 292: case 293: case 294: case 295: case 296: case 297: case 298: case 299: case 300: case 301: case 302: case 303: case 304: case 305: case 308: case 309: case 325: case 326: case 327: case 328: case 329: case 330: case 383: case 449: case 450: case 451: case 452: case 453: case 454: case 525: case 551: case 555: case 557: case 632: case 633: case 634: case 635: case 636: case 637: case 641: case 643: case 644: case 653: case 669: case 670: case 733: case 748: case 749: case 751: case 752: case 758: case 759:
this.$ = $$[$0];
break;
case 79: case 84: case 741: case 765:
this.$ = $$[$0-2]; this.$.push($$[$0]);
break;
case 81:
this.$ = {expr:$$[$0]};
break;
case 82:
this.$ = {expr:$$[$0-2],as:$$[$0]};
break;
case 83:
this.$ = {removecolumns:$$[$0]};
break;
case 87:
this.$ = {like:$$[$0]};
break;
case 90: case 104:
this.$ = {srchid:"PROP", args: [$$[$0]]};
break;
case 91:
this.$ = {srchid:"ORDERBY", args: $$[$0-1]};
break;
case 92:
var dir = $$[$0-1];
if(!dir) dir = 'ASC';
this.$ = {srchid:"ORDERBY", args: [{expression: new yy.Column({columnid:'_'}), direction:dir}]};
break;
case 93:
this.$ = {srchid:"PARENT"};
break;
case 94:
this.$ = {srchid:"APROP", args: [$$[$0]]};
break;
case 95:
this.$ = {selid:"ROOT"};
break;
case 96:
this.$ = {srchid:"EQ", args: [$$[$0]]};
break;
case 97:
this.$ = {srchid:"LIKE", args: [$$[$0]]};
break;
case 98: case 99:
this.$ = {selid:"WITH", args: $$[$0-1]};
break;
case 100:
this.$ = {srchid:$$[$0-3].toUpperCase(), args:$$[$0-1]};
break;
case 101:
this.$ = {srchid:"WHERE", args:[$$[$0-1]]};
break;
case 102:
this.$ = {selid:"OF", args:[$$[$0-1]]};
break;
case 103:
this.$ = {srchid:"CLASS", args:[$$[$0-1]]};
break;
case 105:
this.$ = {srchid:"NAME", args: [$$[$0].substr(1,$$[$0].length-2)]};
break;
case 106:
this.$ = {srchid:"CHILD"};
break;
case 107:
this.$ = {srchid:"VERTEX"};
break;
case 108:
this.$ = {srchid:"EDGE"};
break;
case 109:
this.$ = {srchid:"REF"};
break;
case 110:
this.$ = {srchid:"SHARP", args:[$$[$0]]};
break;
case 111:
this.$ = {srchid:"ATTR", args:((typeof $$[$0] == 'undefined')?undefined:[$$[$0]])};
break;
case 112:
this.$ = {srchid:"ATTR"};
break;
case 113:
this.$ = {srchid:"OUT"};
break;
case 114:
this.$ = {srchid:"IN"};
break;
case 115:
this.$ = {srchid:"OUTOUT"};
break;
case 116:
this.$ = {srchid:"ININ"};
break;
case 117:
this.$ = {srchid:"CONTENT"};
break;
case 118:
this.$ = {srchid:"EX",args:[new yy.Json({value:$$[$0]})]};
break;
case 119:
this.$ = {srchid:"AT", args:[$$[$0]]};
break;
case 120:
this.$ = {srchid:"AS", args:[$$[$0]]};
break;
case 121:
this.$ = {srchid:"SET", args:$$[$0-1]};
break;
case 122:
this.$ = {selid:"TO", args:[$$[$0]]};
break;
case 123:
this.$ = {srchid:"VALUE"};
break;
case 124:
this.$ = {srchid:"ROW", args:$$[$0-1]};
break;
case 125:
this.$ = {srchid:"CLASS", args:[$$[$0]]};
break;
case 126:
this.$ = {selid:$$[$0],args:[$$[$0-1]] };
break;
case 127:
this.$ = {selid:"NOT",args:$$[$0-1] };
break;
case 128:
this.$ = {selid:"IF",args:$$[$0-1] };
break;
case 129:
this.$ = {selid:$$[$0-3],args:$$[$0-1] };
break;
case 130:
this.$ = {selid:'DISTINCT',args:$$[$0-1] };
break;
case 131:
this.$ = {selid:'UNION',args:$$[$0-1] };
break;
case 132:
this.$ = {selid:'UNIONALL',args:$$[$0-1] };
break;
case 133:
this.$ = {selid:'ALL',args:[$$[$0-1]] };
break;
case 134:
this.$ = {selid:'ANY',args:[$$[$0-1]] };
break;
case 135:
this.$ = {selid:'INTERSECT',args:$$[$0-1] };
break;
case 136:
this.$ = {selid:'EXCEPT',args:$$[$0-1] };
break;
case 137:
this.$ = {selid:'AND',args:$$[$0-1] };
break;
case 138:
this.$ = {selid:'OR',args:$$[$0-1] };
break;
case 139:
this.$ = {selid:'PATH',args:[$$[$0-1]] };
break;
case 140:
this.$ = {srchid:'RETURN',args:$$[$0-1] };
break;
case 141:
this.$ = {selid:'REPEAT',sels:$$[$0-3], args:$$[$0-1] };
break;
case 142:
this.$ = $$[$0-2]; this.$.push($$[$0]);
break;
case 144:
this.$ = "PLUS";
break;
case 145:
this.$ = "STAR";
break;
case 146:
this.$ = "QUESTION";
break;
case 148:
this.$ = new yy.Select({ columns:$$[$0], distinct: true }); yy.extend(this.$, $$[$0-3]); yy.extend(this.$, $$[$0-1]);
break;
case 149:
this.$ = new yy.Select({ columns:$$[$0], distinct: true }); yy.extend(this.$, $$[$0-3]);yy.extend(this.$, $$[$0-1]);
break;
case 150:
this.$ = new yy.Select({ columns:$$[$0], all:true }); yy.extend(this.$, $$[$0-3]);yy.extend(this.$, $$[$0-1]);
break;
case 151:
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 152:
if($$[$0]=='SELECT') this.$ = undefined; else this.$ = {modifier: $$[$0]};
break;
case 153:
this.$ = {modifier:'VALUE'}
break;
case 154:
this.$ = {modifier:'ROW'}
break;
case 155:
this.$ = {modifier:'COLUMN'}
break;
case 156:
this.$ = {modifier:'MATRIX'}
break;
case 157:
this.$ = {modifier:'TEXTSTRING'}
break;
case 158:
this.$ = {modifier:'INDEX'}
break;
case 159:
this.$ = {modifier:'RECORDSET'}
break;
case 160:
this.$ = {top: $$[$0-1], percent:(typeof $$[$0] != 'undefined'?true:undefined)};
break;
case 161:
this.$ = {top: $$[$0-1]};
break;
case 163: case 336: case 532: case 533: case 734:
this.$ = undefined;
break;
case 164: case 165: case 166: case 167:
this.$ = {into: $$[$0]}
break;
case 168:
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 169:
this.$ = { from: $$[$0] };
break;
case 170:
this.$ = { from: $$[$0-1], joins: $$[$0] };
break;
case 171:
this.$ = { from: $$[$0-2], joins: $$[$0-1] };
break;
case 173:
this.$ = new yy.Apply({select: $$[$0-2], applymode:'CROSS', as:$$[$0]});
break;
case 174:
this.$ = new yy.Apply({select: $$[$0-3], applymode:'CROSS', as:$$[$0]});
break;
case 175:
this.$ = new yy.Apply({select: $$[$0-2], applymode:'OUTER', as:$$[$0]});
break;
case 176:
this.$ = new yy.Apply({select: $$[$0-3], applymode:'OUTER', as:$$[$0]});
break;
case 178: case 244: case 461: case 539: case 540:
this.$ = $$[$0-2]; $$[$0-2].push($$[$0]);
break;
case 179:
this.$ = $$[$0-2]; this.$.as = $$[$0]
break;
case 180:
this.$ = $$[$0-3]; this.$.as = $$[$0]
break;
case 181:
this.$ = $$[$0-1]; this.$.as = 'default'
break;
case 182:
this.$ = new yy.Json({value:$$[$0-2]}); $$[$0-2].as = $$[$0]
break;
case 183:
this.$ = $$[$0-1]; $$[$0-1].as = $$[$0]
break;
case 184:
this.$ = $$[$0-2]; $$[$0-2].as = $$[$0]
break;
case 186: case 647: case 650:
this.$ = $$[$0-2];
break;
case 187: case 191: case 195: case 198:
this.$ = $$[$0-1]; $$[$0-1].as = $$[$0];
break;
case 188: case 192: case 196: case 199:
this.$ = $$[$0-2]; $$[$0-2].as = $$[$0];
break;
case 189: case 190: case 194: case 197:
this.$ = $$[$0]; $$[$0].as = 'default';
break;
case 193:
this.$ = {inserted:true};
break;
case 200:
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 201:
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 202:
this.$ = new yy.Table({tableid: $$[$0]});
break;
case 203: case 204:
this.$ = $$[$0-1]; $$[$0-1].push($$[$0]);
break;
case 207:
this.$ = new yy.Join($$[$0-2]); yy.extend(this.$, $$[$0-1]); yy.extend(this.$, $$[$0]);
break;
case 208:
this.$ = {table: $$[$0]};
break;
case 209:
this.$ = {table: $$[$0-1], as: $$[$0] } ;
break;
case 210:
this.$ = {table: $$[$0-2], as: $$[$0] } ;
break;
case 211:
this.$ = {json:new yy.Json({value:$$[$0-2],as:$$[$0]})};
break;
case 212:
this.$ = {param: $$[$0-1], as: $$[$0] } ;
break;
case 213:
this.$ = {param: $$[$0-2], as: $$[$0] } ;
break;
case 214:
this.$ = {select: $$[$0-2], as: $$[$0]} ;
break;
case 215:
this.$ = {select: $$[$0-3], as: $$[$0] } ;
break;
case 216:
this.$ = {func:$$[$0], as:'default'};
break;
case 217:
this.$ = {func:$$[$0-1], as: $$[$0]};
break;
case 218:
this.$ = {func:$$[$0-2], as: $$[$0]};
break;
case 219:
this.$ = {variable:$$[$0],as:'default'};
break;
case 220:
this.$ = {variable:$$[$0-1],as:$$[$0]};
break;
case 221:
this.$ = {variable:$$[$0-2],as:$$[$0]}
break;
case 222:
this.$ = { joinmode: $$[$0] } ;
break;
case 223:
this.$ = {joinmode: $$[$0-1], natural:true} ;
break;
case 224: case 225:
this.$ = "INNER";
break;
case 226: case 227:
this.$ = "LEFT";
break;
case 228: case 229:
this.$ = "RIGHT";
break;
case 230: case 231:
this.$ = "OUTER";
break;
case 232:
this.$ = "SEMI";
break;
case 233:
this.$ = "ANTI";
break;
case 234:
this.$ = "CROSS";
break;
case 235:
this.$ = {on: $$[$0]};
break;
case 236: case 706:
this.$ = {using: $$[$0]};
break;
case 237: case 707:
this.$ = {using: $$[$0-1]};
break;
case 240:
this.$ = {where: new yy.Expression({expression:$$[$0]})};
break;
case 242:
this.$ = {group:$$[$0-1]}; yy.extend(this.$,$$[$0]);
break;
case 245:
this.$ = new yy.GroupExpression({type:'GROUPING SETS', group: $$[$0-1]});
break;
case 246:
this.$ = new yy.GroupExpression({type:'ROLLUP', group: $$[$0-1]});
break;
case 247:
this.$ = new yy.GroupExpression({type:'CUBE', group: $$[$0-1]});
break;
case 250:
this.$ = {having:$$[$0]}
break;
case 252:
this.$ = {union: $$[$0]} ;
break;
case 253:
this.$ = {unionall: $$[$0]} ;
break;
case 254:
this.$ = {except: $$[$0]} ;
break;
case 255:
this.$ = {intersect: $$[$0]} ;
break;
case 256:
this.$ = {union: $$[$0], corresponding:true} ;
break;
case 257:
this.$ = {unionall: $$[$0], corresponding:true} ;
break;
case 258:
this.$ = {except: $$[$0], corresponding:true} ;
break;
case 259:
this.$ = {intersect: $$[$0], corresponding:true} ;
break;
case 261:
this.$ = {order:$$[$0]}
break;
case 263:
this.$ = $$[$0-2]; $$[$0-2].push($$[$0])
break;
case 264:
this.$ = {nullsOrder: 'FIRST'};
break;
case 265:
this.$ = {nullsOrder: 'LAST'};
break;
case 266:
this.$ = new yy.Expression({expression: $$[$0], direction:'ASC'})
break;
case 267:
this.$ = new yy.Expression({expression: $$[$0-1], direction:$$[$0].toUpperCase()})
break;
case 268:
this.$ = new yy.Expression({expression: $$[$0-2], direction:$$[$0-1].toUpperCase()}); yy.extend(this.$, $$[$0])
break;
case 269:
this.$ = new yy.Expression({expression: $$[$0-2], direction:'ASC', nocase:true})
break;
case 270:
this.$ = new yy.Expression({expression: $$[$0-3], direction:$$[$0].toUpperCase(), nocase:true})
break;
case 272:
this.$ = {limit:$$[$0-1]}; yy.extend(this.$, $$[$0]);
break;
case 273:
this.$ = {limit:$$[$0-2],offset:$$[$0-6]};
break;
case 275:
this.$ = {offset:$$[$0]};
break;
case 276: case 518: case 542: case 657: case 667: case 691: case 693: case 697:
$$[$0-2].push($$[$0]); this.$ = $$[$0-2];
break;
case 278: case 280: case 282:
$$[$0-2].as = $$[$0]; this.$ = $$[$0-2];
break;
case 279: case 281: case 283:
$$[$0-1].as = $$[$0]; this.$ = $$[$0-1];
break;
case 285:
this.$ = new yy.Column({columid: $$[$0], tableid: $$[$0-2], databaseid:$$[$0-4]});
break;
case 286:
this.$ = new yy.Column({columnid: $$[$0], tableid: $$[$0-2]});
break;
case 287:
this.$ = new yy.Column({columnid:$$[$0]});
break;
case 288:
this.$ = new yy.Column({columnid: $$[$0], tableid: $$[$0-2], databaseid:$$[$0-4]});
break;
case 289: case 290:
this.$ = new yy.Column({columnid: $$[$0], tableid: $$[$0-2]});
break;
case 291:
this.$ = new yy.Column({columnid: $$[$0]});
break;
case 306:
this.$ = new yy.DomainValueValue();
break;
case 307:
this.$ = new yy.Json({value:$$[$0]});
break;
case 310: case 311: case 312:
if(!yy.queries) yy.queries = [];
yy.queries.push($$[$0-1]);
$$[$0-1].queriesidx = yy.queries.length;
this.$ = $$[$0-1];
break;
case 313:
this.$ = $$[$0]
break;
case 314:
this.$ = new yy.FuncValue({funcid:'CURRENT_TIMESTAMP'});
break;
case 315:
this.$ = new yy.FuncValue({funcid:'CURRENT_DATE'});
break;
case 316:
this.$ = new yy.JavaScript({value:$$[$0].substr(2,$$[$0].length-4)});
break;
case 317:
this.$ = new yy.JavaScript({value:'alasql.fn["'+$$[$0-2]+'"] = '+$$[$0].substr(2,$$[$0].length-4)});
break;
case 318:
this.$ = new yy.JavaScript({value:'alasql.aggr["'+$$[$0-2]+'"] = '+$$[$0].substr(2,$$[$0].length-4)});
break;
case 319:
this.$ = new yy.FuncValue({funcid:$$[$0], newid:true});
break;
case 320:
this.$ = $$[$0]; yy.extend(this.$,{newid:true});
break;
case 321:
this.$ = new yy.Convert({expression:$$[$0-3]}) ; yy.extend(this.$,$$[$0-1]) ;
break;
case 322:
this.$ = new yy.Convert({expression:$$[$0-5], style:$$[$0-1]}) ; yy.extend(this.$,$$[$0-3]) ;
break;
case 323:
this.$ = new yy.Convert({expression:$$[$0-1]}) ; yy.extend(this.$,$$[$0-3]) ;
break;
case 324:
this.$ = new yy.Convert({expression:$$[$0-3], style:$$[$0-1]}) ; yy.extend(this.$,$$[$0-5]) ;
break;
case 331:
this.$ = new yy.FuncValue({funcid:'CURRENT_TIMESTAMP'});
break;
case 332:
this.$ = new yy.FuncValue({funcid:'CURRENT_DATE'});
break;
case 333:
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 334:
this.$ = new yy.AggrValue({aggregatorid: $$[$0-5].toUpperCase(), expression: $$[$0-2], distinct:true, over:$$[$0]});
break;
case 335:
this.$ = new yy.AggrValue({aggregatorid: $$[$0-5].toUpperCase(), expression: $$[$0-2],
over:$$[$0]});
break;
case 337: case 338:
this.$ = new yy.Over(); yy.extend(this.$,$$[$0-1]);
break;
case 339:
this.$ = new yy.Over(); yy.extend(this.$,$$[$0-2]); yy.extend(this.$,$$[$0-1]);
break;
case 340:
this.$ = {partition:$$[$0]};
break;
case 341:
this.$ = {order:$$[$0]};
break;
case 342:
this.$ = "SUM";
break;
case 343:
this.$ = "TOTAL";
break;
case 344:
this.$ = "COUNT";
break;
case 345:
this.$ = "MIN";
break;
case 346: case 553:
this.$ = "MAX";
break;
case 347:
this.$ = "AVG";
break;
case 348:
this.$ = "FIRST";
break;
case 349:
this.$ = "LAST";
break;
case 350:
this.$ = "AGGR";
break;
case 351:
this.$ = "ARRAY";
break;
case 352:
var funcid = $$[$0-4];
var exprlist = $$[$0-1];
if(exprlist.length > 1 && (funcid.toUpperCase() == 'MIN' || funcid.toUpperCase() == 'MAX')) {
this.$ = new yy.FuncValue({funcid: funcid, args: exprlist});
} else if(alasql.aggr[$$[$0-4]]) {
this.$ = new yy.AggrValue({aggregatorid: 'REDUCE',
funcid: funcid, expression: exprlist.pop(),distinct:($$[$0-2]=='DISTINCT') });
} else {
this.$ = new yy.FuncValue({funcid: funcid, args: exprlist});
};
break;
case 353: case 356:
this.$ = new yy.FuncValue({ funcid: $$[$0-2] })
break;
case 354:
this.$ = new yy.FuncValue({ funcid: 'IIF', args:$$[$0-1] })
break;
case 355:
this.$ = new yy.FuncValue({ funcid: 'REPLACE', args:$$[$0-1] })
break;
case 357:
this.$ = new yy.FuncValue({ funcid: 'DATEADD', args:[new yy.StringValue({value:$$[$0-5]}),$$[$0-3],$$[$0-1]]})
break;
case 358:
this.$ = new yy.FuncValue({ funcid: 'DATEADD', args:[$$[$0-5],$$[$0-3],$$[$0-1]]})
break;
case 359:
this.$ = new yy.FuncValue({ funcid: 'DATEDIFF', args:[new yy.StringValue({value:$$[$0-5]}),$$[$0-3],$$[$0-1]]})
break;
case 360:
this.$ = new yy.FuncValue({ funcid: 'DATEDIFF', args:[$$[$0-5],$$[$0-3],$$[$0-1]]})
break;
case 361:
this.$ = new yy.FuncValue({ funcid: 'TIMESTAMPDIFF', args:[new yy.StringValue({value:$$[$0-5]}),$$[$0-3],$$[$0-1]]})
break;
case 362:
this.$ = new yy.FuncValue({ funcid: 'INTERVAL', args:[$$[$0-1],new yy.StringValue({value:($$[$0]).toLowerCase()})]});
break;
case 364:
$$[$0-2].push($$[$0]); this.$ = $$[$0-2]
break;
case 365:
this.$ = new yy.NumValue({value:+$$[$0]});
break;
case 366:
this.$ = new yy.LogicValue({value:true});
break;
case 367:
this.$ = new yy.LogicValue({value:false});
break;
case 368:
this.$ = new yy.StringValue({value: $$[$0].substr(1,$$[$0].length-2).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});
break;
case 369:
this.$ = new yy.StringValue({value: $$[$0].substr(2,$$[$0].length-3).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});
break;
case 370:
this.$ = new yy.NullValue({value:undefined});
break;
case 371:
this.$ = new yy.VarValue({variable:$$[$0]});
break;
case 372:
if(!yy.exists) yy.exists = [];
this.$ = new yy.ExistsValue({value:$$[$0-1], existsidx:yy.exists.length});
yy.exists.push($$[$0-1]);
break;
case 373:
this.$ = new yy.ArrayValue({value:$$[$0-1]});
break;
case 374: case 375:
this.$ = new yy.ParamValue({param: $$[$0]});
break;
case 376:
if(typeof yy.question == 'undefined') yy.question = 0;
this.$ = new yy.ParamValue({param: yy.question++});
break;
case 377:
if(typeof yy.question == 'undefined') yy.question = 0;
this.$ = new yy.ParamValue({param: yy.question++, array:true});
break;
case 378:
this.$ = new yy.CaseValue({expression:$$[$0-3], whens: $$[$0-2], elses: $$[$0-1]});
break;
case 379:
this.$ = new yy.CaseValue({whens: $$[$0-2], elses: $$[$0-1]});
break;
case 380: case 709: case 710:
this.$ = $$[$0-1]; this.$.push($$[$0]);
break;
case 382:
this.$ = {when: $$[$0-2], then: $$[$0] };
break;
case 385: case 386:
this.$ = new yy.Op({left:$$[$0-2], op:'REGEXP', right:$$[$0]});
break;
case 387:
this.$ = new yy.Op({left:$$[$0-2], op:'GLOB', right:$$[$0]});
break;
case 388:
this.$ = new yy.Op({left:$$[$0-2], op:'LIKE', right:$$[$0]});
break;
case 389:
this.$ = new yy.Op({left:$$[$0-4], op:'LIKE', right:$$[$0-2], escape:$$[$0]});
break;
case 390:
this.$ = new yy.Op({left:$$[$0-2], op:'NOT LIKE', right:$$[$0] });
break;
case 391:
this.$ = new yy.Op({left:$$[$0-4], op:'NOT LIKE', right:$$[$0-2], escape:$$[$0] });
break;
case 392:
this.$ = new yy.Op({left:$$[$0-2], op:'||', right:$$[$0]});
break;
case 393:
this.$ = new yy.Op({left:$$[$0-2], op:'+', right:$$[$0]});
break;
case 394:
this.$ = new yy.Op({left:$$[$0-2], op:'-', right:$$[$0]});
break;
case 395:
this.$ = new yy.Op({left:$$[$0-2], op:'*', right:$$[$0]});
break;
case 396:
this.$ = new yy.Op({left:$$[$0-2], op:'/', right:$$[$0]});
break;
case 397:
this.$ = new yy.Op({left:$$[$0-2], op:'%', right:$$[$0]});
break;
case 398:
this.$ = new yy.Op({left:$$[$0-2], op:'^', right:$$[$0]});
break;
case 399:
this.$ = new yy.Op({left:$$[$0-2], op:'>>', right:$$[$0]});
break;
case 400:
this.$ = new yy.Op({left:$$[$0-2], op:'<<', right:$$[$0]});
break;
case 401:
this.$ = new yy.Op({left:$$[$0-2], op:'&', right:$$[$0]});
break;
case 402:
this.$ = new yy.Op({left:$$[$0-2], op:'|', right:$$[$0]});
break;
case 403: case 404: case 406:
this.$ = new yy.Op({left:$$[$0-2], op:'->' , right:$$[$0]});
break;
case 405:
this.$ = new yy.Op({left:$$[$0-4], op:'->' , right:$$[$0-1]});
break;
case 407: case 408: case 410:
this.$ = new yy.Op({left:$$[$0-2], op:'!' , right:$$[$0]});
break;
case 409:
this.$ = new yy.Op({left:$$[$0-4], op:'!' , right:$$[$0-1]});
break;
case 411:
this.$ = new yy.Op({left:$$[$0-2], op:'>' , right:$$[$0]});
break;
case 412:
this.$ = new yy.Op({left:$$[$0-2], op:'>=' , right:$$[$0]});
break;
case 413:
this.$ = new yy.Op({left:$$[$0-2], op:'<' , right:$$[$0]});
break;
case 414:
this.$ = new yy.Op({left:$$[$0-2], op:'<=' , right:$$[$0]});
break;
case 415:
this.$ = new yy.Op({left:$$[$0-2], op:'=' , right:$$[$0]});
break;
case 416:
this.$ = new yy.Op({left:$$[$0-2], op:'==' , right:$$[$0]});
break;
case 417:
this.$ = new yy.Op({left:$$[$0-2], op:'===' , right:$$[$0]});
break;
case 418:
this.$ = new yy.Op({left:$$[$0-2], op:'!=' , right:$$[$0]});
break;