This repository has been archived by the owner on Nov 22, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 75
/
parser.go
2805 lines (2736 loc) · 146 KB
/
parser.go
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
// Code generated by goyacc - DO NOT EDIT.
// Copyright (c) 2014 The ql Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Initial yacc source generated by ebnf2y[1]
// at 2013-10-04 23:10:47.861401015 +0200 CEST
//
// $ ebnf2y -o ql.y -oe ql.ebnf -start StatementList -pkg ql -p _
//
// [1]: http://github.com/cznic/ebnf2y
package ql
import __yyfmt__ "fmt"
import (
"fmt"
"github.com/cznic/mathutil"
)
type yySymType struct {
yys int
line int
col int
item interface{}
list []interface{}
}
type yyXError struct {
state, xsym int
}
const (
yyDefault = 57437
yyEOFCode = 57344
add = 57352
alter = 57353
and = 57354
andand = 57355
andnot = 57356
as = 57357
asc = 57358
begin = 57359
between = 57360
bigIntType = 57361
bigRatType = 57362
blobType = 57363
boolType = 57364
by = 57365
byteType = 57366
column = 57367
commit = 57368
complex128Type = 57369
complex64Type = 57370
create = 57371
defaultKwd = 57372
deleteKwd = 57373
desc = 57374
distinct = 57375
drop = 57376
durationType = 57377
eq = 57378
yyErrCode = 57345
exists = 57379
explain = 57380
falseKwd = 57381
float32Type = 57383
float64Type = 57384
floatLit = 57346
floatType = 57382
from = 57385
full = 57386
ge = 57387
group = 57388
identifier = 57347
ifKwd = 57389
imaginaryLit = 57348
in = 57390
index = 57391
insert = 57392
int16Type = 57394
int32Type = 57395
int64Type = 57396
int8Type = 57397
intLit = 57349
intType = 57393
into = 57398
is = 57399
join = 57400
le = 57401
left = 57402
like = 57403
limit = 57404
lsh = 57405
neq = 57406
not = 57407
null = 57408
offset = 57409
on = 57410
or = 57411
order = 57412
oror = 57413
outer = 57414
parseExpression = 57436
qlParam = 57350
right = 57415
rollback = 57416
rsh = 57417
runeType = 57418
selectKwd = 57419
set = 57420
stringLit = 57351
stringType = 57421
tableKwd = 57422
timeType = 57423
transaction = 57424
trueKwd = 57425
truncate = 57426
uint16Type = 57428
uint32Type = 57429
uint64Type = 57430
uint8Type = 57431
uintType = 57427
unique = 57432
update = 57433
values = 57434
where = 57435
yyMaxDepth = 200
yyTabOfs = -222
)
var (
yyPrec = map[int]int{}
yyXLAT = map[int]int{
59: 0, // ';' (204x)
57344: 1, // $end (203x)
41: 2, // ')' (178x)
43: 3, // '+' (135x)
45: 4, // '-' (135x)
94: 5, // '^' (135x)
44: 6, // ',' (130x)
40: 7, // '(' (129x)
57347: 8, // identifier (118x)
57409: 9, // offset (115x)
57404: 10, // limit (113x)
57412: 11, // order (102x)
57435: 12, // where (97x)
57372: 13, // defaultKwd (94x)
57388: 14, // group (93x)
57408: 15, // null (86x)
57361: 16, // bigIntType (85x)
57362: 17, // bigRatType (85x)
57363: 18, // blobType (85x)
57364: 19, // boolType (85x)
57366: 20, // byteType (85x)
57369: 21, // complex128Type (85x)
57370: 22, // complex64Type (85x)
57377: 23, // durationType (85x)
57383: 24, // float32Type (85x)
57384: 25, // float64Type (85x)
57382: 26, // floatType (85x)
57386: 27, // full (85x)
57394: 28, // int16Type (85x)
57395: 29, // int32Type (85x)
57396: 30, // int64Type (85x)
57397: 31, // int8Type (85x)
57393: 32, // intType (85x)
57402: 33, // left (85x)
57415: 34, // right (85x)
57418: 35, // runeType (85x)
57421: 36, // stringType (85x)
57423: 37, // timeType (85x)
57428: 38, // uint16Type (85x)
57429: 39, // uint32Type (85x)
57430: 40, // uint64Type (85x)
57431: 41, // uint8Type (85x)
57427: 42, // uintType (85x)
57381: 43, // falseKwd (83x)
57346: 44, // floatLit (83x)
57348: 45, // imaginaryLit (83x)
57349: 46, // intLit (83x)
57350: 47, // qlParam (83x)
57351: 48, // stringLit (83x)
57425: 49, // trueKwd (83x)
57407: 50, // not (82x)
57411: 51, // or (81x)
57413: 52, // oror (81x)
33: 53, // '!' (79x)
57385: 54, // from (75x)
57358: 55, // asc (71x)
57374: 56, // desc (71x)
93: 57, // ']' (70x)
57357: 58, // as (69x)
58: 59, // ':' (67x)
57354: 60, // and (67x)
57355: 61, // andand (65x)
124: 62, // '|' (56x)
61: 63, // '=' (55x)
57360: 64, // between (54x)
57390: 65, // in (54x)
60: 66, // '<' (53x)
62: 67, // '>' (53x)
57378: 68, // eq (53x)
57387: 69, // ge (53x)
57399: 70, // is (53x)
57401: 71, // le (53x)
57403: 72, // like (53x)
57406: 73, // neq (53x)
57515: 74, // Type (52x)
57453: 75, // Conversion (51x)
57484: 76, // Literal (51x)
57485: 77, // Operand (51x)
57489: 78, // PrimaryExpression (51x)
57492: 79, // QualifiedIdent (51x)
42: 80, // '*' (48x)
57516: 81, // UnaryExpr (47x)
37: 82, // '%' (44x)
38: 83, // '&' (44x)
47: 84, // '/' (44x)
57356: 85, // andnot (44x)
57405: 86, // lsh (44x)
57417: 87, // rsh (44x)
57491: 88, // PrimaryTerm (40x)
57490: 89, // PrimaryFactor (36x)
91: 90, // '[' (31x)
57471: 91, // Factor (25x)
57472: 92, // Factor1 (25x)
57513: 93, // Term (24x)
57468: 94, // Expression (23x)
57521: 95, // logOr (16x)
57419: 96, // selectKwd (12x)
57446: 97, // ColumnName (10x)
57498: 98, // SelectStmt (9x)
57512: 99, // TableName (9x)
57449: 100, // CommaOpt (7x)
57469: 101, // ExpressionList (7x)
57410: 102, // on (7x)
57379: 103, // exists (6x)
57400: 104, // join (6x)
57443: 105, // Call (5x)
57376: 106, // drop (5x)
57477: 107, // Index (5x)
57508: 108, // Slice (5x)
57445: 109, // ColumnDef (4x)
57389: 110, // ifKwd (4x)
57391: 111, // index (4x)
57414: 112, // outer (4x)
57422: 113, // tableKwd (4x)
57434: 114, // values (4x)
57353: 115, // alter (3x)
57438: 116, // AlterTableStmt (3x)
57359: 117, // begin (3x)
57442: 118, // BeginTransactionStmt (3x)
57368: 119, // commit (3x)
57450: 120, // CommitStmt (3x)
57371: 121, // create (3x)
57455: 122, // CreateIndexStmt (3x)
57457: 123, // CreateTableStmt (3x)
57461: 124, // DeleteFromStmt (3x)
57373: 125, // deleteKwd (3x)
57463: 126, // DropIndexStmt (3x)
57464: 127, // DropTableStmt (3x)
57465: 128, // EmptyStmt (3x)
57380: 129, // explain (3x)
57467: 130, // ExplainStmt (3x)
57392: 131, // insert (3x)
57478: 132, // InsertIntoStmt (3x)
57493: 133, // RecordSet (3x)
57494: 134, // RecordSet1 (3x)
57416: 135, // rollback (3x)
57497: 136, // RollbackStmt (3x)
57522: 137, // semiOpt (3x)
57510: 138, // Statement (3x)
57426: 139, // truncate (3x)
57514: 140, // TruncateTableStmt (3x)
57433: 141, // update (3x)
57517: 142, // UpdateStmt (3x)
57519: 143, // WhereClause (3x)
57352: 144, // add (2x)
57439: 145, // Assignment (2x)
57365: 146, // by (2x)
57447: 147, // ColumnNameList (2x)
57458: 148, // CreateTableStmt1 (2x)
57473: 149, // Field (2x)
57520: 150, // logAnd (2x)
57420: 151, // set (2x)
46: 152, // '.' (1x)
57440: 153, // AssignmentList (1x)
57441: 154, // AssignmentList1 (1x)
57444: 155, // Call1 (1x)
57367: 156, // column (1x)
57448: 157, // ColumnNameList1 (1x)
57451: 158, // Constraint (1x)
57452: 159, // ConstraintOpt (1x)
57454: 160, // CreateIndexIfNotExists (1x)
57456: 161, // CreateIndexStmtUnique (1x)
57459: 162, // Default (1x)
57460: 163, // DefaultOpt (1x)
57375: 164, // distinct (1x)
57462: 165, // DropIndexIfExists (1x)
57466: 166, // Eq (1x)
57470: 167, // ExpressionList1 (1x)
57474: 168, // Field1 (1x)
57475: 169, // FieldList (1x)
57476: 170, // GroupByClause (1x)
57479: 171, // InsertIntoStmt1 (1x)
57480: 172, // InsertIntoStmt2 (1x)
57398: 173, // into (1x)
57481: 174, // JoinClause (1x)
57482: 175, // JoinClauseOpt (1x)
57483: 176, // JoinType (1x)
57486: 177, // OrderBy (1x)
57487: 178, // OrderBy1 (1x)
57488: 179, // OuterOpt (1x)
57436: 180, // parseExpression (1x)
57495: 181, // RecordSet2 (1x)
57496: 182, // RecordSetList (1x)
57499: 183, // SelectStmtDistinct (1x)
57500: 184, // SelectStmtFieldList (1x)
57501: 185, // SelectStmtFrom (1x)
57502: 186, // SelectStmtGroup (1x)
57503: 187, // SelectStmtLimit (1x)
57504: 188, // SelectStmtOffset (1x)
57505: 189, // SelectStmtOrder (1x)
57506: 190, // SelectStmtWhere (1x)
57507: 191, // SetOpt (1x)
57509: 192, // Start (1x)
57511: 193, // StatementList (1x)
57424: 194, // transaction (1x)
57432: 195, // unique (1x)
57518: 196, // UpdateStmt1 (1x)
57437: 197, // $default (0x)
57345: 198, // error (0x)
}
yySymNames = []string{
"';'",
"$end",
"')'",
"'+'",
"'-'",
"'^'",
"','",
"'('",
"identifier",
"offset",
"limit",
"order",
"where",
"defaultKwd",
"group",
"null",
"bigIntType",
"bigRatType",
"blobType",
"boolType",
"byteType",
"complex128Type",
"complex64Type",
"durationType",
"float32Type",
"float64Type",
"floatType",
"full",
"int16Type",
"int32Type",
"int64Type",
"int8Type",
"intType",
"left",
"right",
"runeType",
"stringType",
"timeType",
"uint16Type",
"uint32Type",
"uint64Type",
"uint8Type",
"uintType",
"falseKwd",
"floatLit",
"imaginaryLit",
"intLit",
"qlParam",
"stringLit",
"trueKwd",
"not",
"or",
"oror",
"'!'",
"from",
"asc",
"desc",
"']'",
"as",
"':'",
"and",
"andand",
"'|'",
"'='",
"between",
"in",
"'<'",
"'>'",
"eq",
"ge",
"is",
"le",
"like",
"neq",
"Type",
"Conversion",
"Literal",
"Operand",
"PrimaryExpression",
"QualifiedIdent",
"'*'",
"UnaryExpr",
"'%'",
"'&'",
"'/'",
"andnot",
"lsh",
"rsh",
"PrimaryTerm",
"PrimaryFactor",
"'['",
"Factor",
"Factor1",
"Term",
"Expression",
"logOr",
"selectKwd",
"ColumnName",
"SelectStmt",
"TableName",
"CommaOpt",
"ExpressionList",
"on",
"exists",
"join",
"Call",
"drop",
"Index",
"Slice",
"ColumnDef",
"ifKwd",
"index",
"outer",
"tableKwd",
"values",
"alter",
"AlterTableStmt",
"begin",
"BeginTransactionStmt",
"commit",
"CommitStmt",
"create",
"CreateIndexStmt",
"CreateTableStmt",
"DeleteFromStmt",
"deleteKwd",
"DropIndexStmt",
"DropTableStmt",
"EmptyStmt",
"explain",
"ExplainStmt",
"insert",
"InsertIntoStmt",
"RecordSet",
"RecordSet1",
"rollback",
"RollbackStmt",
"semiOpt",
"Statement",
"truncate",
"TruncateTableStmt",
"update",
"UpdateStmt",
"WhereClause",
"add",
"Assignment",
"by",
"ColumnNameList",
"CreateTableStmt1",
"Field",
"logAnd",
"set",
"'.'",
"AssignmentList",
"AssignmentList1",
"Call1",
"column",
"ColumnNameList1",
"Constraint",
"ConstraintOpt",
"CreateIndexIfNotExists",
"CreateIndexStmtUnique",
"Default",
"DefaultOpt",
"distinct",
"DropIndexIfExists",
"Eq",
"ExpressionList1",
"Field1",
"FieldList",
"GroupByClause",
"InsertIntoStmt1",
"InsertIntoStmt2",
"into",
"JoinClause",
"JoinClauseOpt",
"JoinType",
"OrderBy",
"OrderBy1",
"OuterOpt",
"parseExpression",
"RecordSet2",
"RecordSetList",
"SelectStmtDistinct",
"SelectStmtFieldList",
"SelectStmtFrom",
"SelectStmtGroup",
"SelectStmtLimit",
"SelectStmtOffset",
"SelectStmtOrder",
"SelectStmtWhere",
"SetOpt",
"Start",
"StatementList",
"transaction",
"unique",
"UpdateStmt1",
"$default",
"error",
}
yyTokenLiteralStrings = map[int]string{
57347: "identifier",
57409: "OFFSET",
57404: "LIMIT",
57412: "ORDER",
57435: "WHERE",
57372: "DEFAULT",
57388: "GROUP",
57408: "NULL",
57361: "bigint",
57362: "bigrat",
57363: "blob",
57364: "bool",
57366: "byte",
57369: "complex128",
57370: "complex64",
57377: "duration",
57383: "float32",
57384: "float64",
57382: "float",
57386: "FULL",
57394: "int16",
57395: "int32",
57396: "int64",
57397: "int8",
57393: "int",
57402: "LEFT",
57415: "RIGHT",
57418: "rune",
57421: "string",
57423: "time",
57428: "uint16",
57429: "uint32",
57430: "uint64",
57431: "uint8",
57427: "uint",
57381: "false",
57346: "floating-point literal",
57348: "imaginary literal",
57349: "integer literal",
57350: "QL parameter",
57351: "string literal",
57425: "true",
57407: "NOT",
57411: "OR",
57413: "||",
57385: "FROM",
57358: "ASC",
57374: "DESC",
57357: "AS",
57354: "AND",
57355: "&&",
57360: "BETWEEN",
57390: "IN",
57378: "==",
57387: ">=",
57399: "IS",
57401: "<=",
57403: "LIKE",
57406: "!=",
57356: "&^",
57405: "<<",
57417: ">>",
57419: "SELECT",
57410: "ON",
57379: "EXISTS",
57400: "JOIN",
57376: "DROP",
57389: "IF",
57391: "INDEX",
57414: "OUTER",
57422: "TABLE",
57434: "VALUES",
57353: "ALTER",
57359: "BEGIN",
57368: "COMMIT",
57371: "CREATE",
57373: "DELETE",
57380: "EXPLAIN",
57392: "INSERT",
57416: "ROLLBACK",
57426: "TRUNCATE",
57433: "UPDATE",
57352: "ADD",
57365: "BY",
57420: "SET",
57367: "COLUMN",
57375: "DISTINCT",
57398: "INTO",
57436: "parse expression prefix",
57424: "TRANSACTION",
57432: "UNIQUE",
}
yyReductions = map[int]struct{ xsym, components int }{
0: {0, 1},
1: {192, 1},
2: {192, 2},
3: {116, 5},
4: {116, 6},
5: {145, 3},
6: {153, 3},
7: {154, 0},
8: {154, 3},
9: {118, 2},
10: {105, 3},
11: {105, 3},
12: {155, 0},
13: {155, 1},
14: {109, 4},
15: {97, 1},
16: {147, 3},
17: {157, 0},
18: {157, 3},
19: {120, 1},
20: {158, 2},
21: {158, 1},
22: {159, 0},
23: {159, 1},
24: {75, 4},
25: {122, 10},
26: {160, 0},
27: {160, 3},
28: {161, 0},
29: {161, 1},
30: {123, 8},
31: {123, 11},
32: {148, 0},
33: {148, 3},
34: {162, 2},
35: {163, 0},
36: {163, 1},
37: {124, 3},
38: {124, 4},
39: {126, 4},
40: {165, 0},
41: {165, 2},
42: {127, 3},
43: {127, 5},
44: {128, 0},
45: {130, 2},
46: {94, 1},
47: {94, 3},
48: {95, 1},
49: {95, 1},
50: {166, 1},
51: {166, 1},
52: {101, 3},
53: {167, 0},
54: {167, 3},
55: {91, 1},
56: {91, 5},
57: {91, 6},
58: {91, 6},
59: {91, 7},
60: {91, 5},
61: {91, 6},
62: {91, 3},
63: {91, 4},
64: {92, 1},
65: {92, 3},
66: {92, 3},
67: {92, 3},
68: {92, 3},
69: {92, 3},
70: {92, 3},
71: {92, 3},
72: {149, 2},
73: {168, 0},
74: {168, 2},
75: {169, 1},
76: {169, 3},
77: {170, 3},
78: {107, 3},
79: {132, 10},
80: {132, 5},
81: {171, 0},
82: {171, 3},
83: {172, 0},
84: {172, 5},
85: {76, 1},
86: {76, 1},
87: {76, 1},
88: {76, 1},
89: {76, 1},
90: {76, 1},
91: {76, 1},
92: {77, 1},
93: {77, 1},
94: {77, 1},
95: {77, 3},
96: {177, 4},
97: {178, 0},
98: {178, 1},
99: {178, 1},
100: {78, 1},
101: {78, 1},
102: {78, 2},
103: {78, 2},
104: {78, 2},
105: {89, 1},
106: {89, 3},
107: {89, 3},
108: {89, 3},
109: {89, 3},
110: {88, 1},
111: {88, 3},
112: {88, 3},
113: {88, 3},
114: {88, 3},
115: {88, 3},
116: {88, 3},
117: {88, 3},
118: {79, 1},
119: {79, 3},
120: {133, 2},
121: {134, 1},
122: {134, 4},
123: {137, 0},
124: {137, 1},
125: {181, 0},
126: {181, 2},
127: {182, 1},
128: {182, 3},
129: {136, 1},
130: {176, 1},
131: {176, 1},
132: {176, 1},
133: {179, 0},
134: {179, 1},
135: {174, 6},
136: {175, 0},
137: {175, 1},
138: {98, 10},
139: {185, 0},
140: {185, 3},
141: {187, 0},
142: {187, 2},
143: {188, 0},
144: {188, 2},
145: {183, 0},
146: {183, 1},
147: {184, 1},
148: {184, 1},
149: {184, 2},
150: {190, 0},
151: {190, 1},
152: {186, 0},
153: {186, 1},
154: {189, 0},
155: {189, 1},
156: {108, 3},
157: {108, 4},
158: {108, 4},
159: {108, 5},
160: {138, 1},
161: {138, 1},
162: {138, 1},
163: {138, 1},
164: {138, 1},
165: {138, 1},
166: {138, 1},
167: {138, 1},
168: {138, 1},
169: {138, 1},
170: {138, 1},
171: {138, 1},
172: {138, 1},
173: {138, 1},
174: {138, 1},
175: {193, 1},
176: {193, 3},
177: {99, 1},
178: {93, 1},
179: {93, 3},
180: {150, 1},
181: {150, 1},
182: {140, 3},
183: {74, 1},
184: {74, 1},
185: {74, 1},
186: {74, 1},
187: {74, 1},
188: {74, 1},
189: {74, 1},
190: {74, 1},
191: {74, 1},
192: {74, 1},
193: {74, 1},
194: {74, 1},
195: {74, 1},
196: {74, 1},
197: {74, 1},
198: {74, 1},
199: {74, 1},
200: {74, 1},
201: {74, 1},
202: {74, 1},
203: {74, 1},
204: {74, 1},
205: {74, 1},
206: {74, 1},
207: {142, 5},
208: {196, 0},
209: {196, 1},
210: {81, 1},
211: {81, 2},
212: {81, 2},
213: {81, 2},
214: {81, 2},
215: {143, 2},
216: {143, 5},
217: {143, 6},
218: {191, 0},
219: {191, 1},
220: {100, 0},
221: {100, 1},
}
yyXErrors = map[yyXError]string{
{1, -1}: "expected $end",
{43, -1}: "expected '('",
{94, -1}: "expected '('",
{96, -1}: "expected '('",
{168, -1}: "expected '('",
{192, -1}: "expected '('",
{293, -1}: "expected '('",
{321, -1}: "expected '('",
{325, -1}: "expected '('",
{356, -1}: "expected '('",
{98, -1}: "expected ')'",
{101, -1}: "expected ')'",
{127, -1}: "expected ')'",
{128, -1}: "expected ')'",
{129, -1}: "expected ')'",
{198, -1}: "expected ')'",
{200, -1}: "expected ')'",
{201, -1}: "expected ')'",
{205, -1}: "expected ')'",
{207, -1}: "expected ')'",
{239, -1}: "expected ')'",
{291, -1}: "expected ')'",
{296, -1}: "expected ')'",
{302, -1}: "expected ')'",
{330, -1}: "expected ')'",
{347, -1}: "expected ')'",
{358, -1}: "expected ')'",
{36, -1}: "expected '='",
{252, -1}: "expected BY",
{255, -1}: "expected BY",
{364, -1}: "expected COLUMN",
{7, -1}: "expected CREATE INDEX optional UNIQUE clause or one of [INDEX, TABLE, UNIQUE]",
{349, -1}: "expected CREATE INDEX statement optional IF NOT EXISTS cluse or one of [IF, identifier]",
{328, -1}: "expected CREATE TABLE statement colum definition list or optional comma or one of [')', ',']",
{345, -1}: "expected CREATE TABLE statement colum definition list or optional comma or one of [')', ',']",
{305, -1}: "expected DROP INDEX statement optional IF EXISTS clause or one of [IF, identifier]",
{95, -1}: "expected EXISTS",
{308, -1}: "expected EXISTS",
{312, -1}: "expected EXISTS",
{323, -1}: "expected EXISTS",
{352, -1}: "expected EXISTS",
{46, -1}: "expected Eq or one of [!=, $end, &&, ')', ',', ':', ';', '<', '=', '>', ']', <=, ==, >=, AND, AS, ASC, BETWEEN, DEFAULT, DESC, FROM, FULL, GROUP, IN, IS, LEFT, LIKE, LIMIT, NOT, OFFSET, OR, ORDER, RIGHT, WHERE, ||]",
{8, -1}: "expected FROM",
{318, -1}: "expected INDEX",
{319, -1}: "expected INDEX",
{288, -1}: "expected INSERT INTO statement optional column list clause or SELECT statement or one of ['(', SELECT, VALUES]",
{297, -1}: "expected INSERT INTO statement optional values list or optional comma or one of [$end, ',', ';']",
{11, -1}: "expected INTO",
{276, -1}: "expected JOIN",
{277, -1}: "expected JOIN",
{322, -1}: "expected NOT",
{351, -1}: "expected NOT",
{187, -1}: "expected NULL",
{336, -1}: "expected NULL",
{279, -1}: "expected ON",
{354, -1}: "expected ON",
{265, -1}: "expected ORDER BY clause optional collation specification or one of [$end, ')', ';', ASC, DESC, LIMIT, OFFSET]",
{229, -1}: "expected RecordSetList or one of ['(', identifier]",
{13, -1}: "expected SELECT statement field list or SELECT statement optional DISTINCT clause or one of ['!', '(', '*', '+', '-', '^', DISTINCT, NULL, QL parameter, bigint, bigrat, blob, bool, byte, complex128, complex64, duration, false, float, float32, float64, floating-point literal, identifier, imaginary literal, int, int16, int32, int64, int8, integer literal, rune, string, string literal, time, true, uint, uint16, uint32, uint64, uint8]",
{221, -1}: "expected SELECT statement field list or one of ['!', '(', '*', '+', '-', '^', NULL, QL parameter, bigint, bigrat, blob, bool, byte, complex128, complex64, duration, false, float, float32, float64, floating-point literal, identifier, imaginary literal, int, int16, int32, int64, int8, integer literal, rune, string, string literal, time, true, uint, uint16, uint32, uint64, uint8]",
{226, -1}: "expected SELECT statement optional FROM clause or SELECT statement optional GROUP BY clause or SELECT statement optional JOIN clause or SELECT statement optional LIMIT clause or SELECT statement optional OFFSET clause or SELECT statement optional ORDER BY clause or SELECT statement optional WHERE clause or one of [$end, ')', ';', FROM, FULL, GROUP, LEFT, LIMIT, OFFSET, ORDER, RIGHT, WHERE]",
{228, -1}: "expected SELECT statement optional GROUP BY clause or SELECT statement optional JOIN clause or SELECT statement optional LIMIT clause or SELECT statement optional OFFSET clause or SELECT statement optional ORDER BY clause or SELECT statement optional WHERE clause or one of [$end, ')', ';', FULL, GROUP, LEFT, LIMIT, OFFSET, ORDER, RIGHT, WHERE]",
{249, -1}: "expected SELECT statement optional GROUP BY clause or SELECT statement optional LIMIT clause or SELECT statement optional OFFSET clause or SELECT statement optional ORDER BY clause or SELECT statement optional WHERE clause or one of [$end, ')', ';', GROUP, LIMIT, OFFSET, ORDER, WHERE]",
{250, -1}: "expected SELECT statement optional GROUP BY clause or SELECT statement optional LIMIT clause or SELECT statement optional OFFSET clause or SELECT statement optional ORDER BY clause or one of [$end, ')', ';', GROUP, LIMIT, OFFSET, ORDER]",
{253, -1}: "expected SELECT statement optional LIMIT clause or SELECT statement optional OFFSET clause or SELECT statement optional ORDER BY clause or one of [$end, ')', ';', LIMIT, OFFSET, ORDER]",
{256, -1}: "expected SELECT statement optional LIMIT clause or SELECT statement optional OFFSET clause or one of [$end, ')', ';', LIMIT, OFFSET]",
{258, -1}: "expected SELECT statement optional OFFSET clause or one of [$end, ')', ';', OFFSET]",
{97, -1}: "expected SELECT statement or SELECT",
{100, -1}: "expected SELECT statement or SELECT",
{232, -1}: "expected SELECT statement or SELECT",
{197, -1}: "expected SELECT statement or expression list or one of ['!', '(', '+', '-', '^', NULL, QL parameter, SELECT, bigint, bigrat, blob, bool, byte, complex128, complex64, duration, false, float, float32, float64, floating-point literal, identifier, imaginary literal, int, int16, int32, int64, int8, integer literal, rune, string, string literal, time, true, uint, uint16, uint32, uint64, uint8]",
{204, -1}: "expected SELECT statement or expression list or one of ['!', '(', '+', '-', '^', NULL, QL parameter, SELECT, bigint, bigrat, blob, bool, byte, complex128, complex64, duration, false, float, float32, float64, floating-point literal, identifier, imaginary literal, int, int16, int32, int64, int8, integer literal, rune, string, string literal, time, true, uint, uint16, uint32, uint64, uint8]",
{289, -1}: "expected SELECT statement or one of [SELECT, VALUES]",
{33, -1}: "expected SetOpt or assignment list or one of [SET, identifier]",
{0, -1}: "expected Start or one of [$end, ';', ALTER, BEGIN, COMMIT, CREATE, DELETE, DROP, EXPLAIN, INSERT, ROLLBACK, SELECT, TRUNCATE, UPDATE, parse expression prefix]",
{4, -1}: "expected TABLE",
{30, -1}: "expected TABLE",
{5, -1}: "expected TRANSACTION",
{39, -1}: "expected UPDATE statement optional WHERE clause or one of [$end, ';', WHERE]",
{316, -1}: "expected WHERE clause or one of [$end, ';', WHERE]",
{37, -1}: "expected assignment list optional trailing comma or optional comma or one of [$end, ',', ';', WHERE]",
{34, -1}: "expected assignment list or identifier",
{215, -1}: "expected assignment or one of [$end, ';', WHERE, identifier]",
{269, -1}: "expected column name list or identifier",
{290, -1}: "expected column name list or identifier",
{270, -1}: "expected column name list with optional trailing comma or optional comma or one of [$end, ')', ',', ';', LIMIT, OFFSET, ORDER]",
{365, -1}: "expected column name or identifier",
{274, -1}: "expected column name or one of [$end, ')', ';', LIMIT, OFFSET, ORDER, identifier]",
{118, -1}: "expected expression factor or one of ['!', '(', '+', '-', '^', NULL, QL parameter, bigint, bigrat, blob, bool, byte, complex128, complex64, duration, false, float, float32, float64, floating-point literal, identifier, imaginary literal, int, int16, int32, int64, int8, integer literal, rune, string, string literal, time, true, uint, uint16, uint32, uint64, uint8]",
{130, -1}: "expected expression list expression or logical or operator or optional comma or one of [$end, ')', ',', ';', ASC, DESC, LIMIT, OFFSET, OR, ||]",
{264, -1}: "expected expression list or one of ['!', '(', '+', '-', '^', NULL, QL parameter, bigint, bigrat, blob, bool, byte, complex128, complex64, duration, false, float, float32, float64, floating-point literal, identifier, imaginary literal, int, int16, int32, int64, int8, integer literal, rune, string, string literal, time, true, uint, uint16, uint32, uint64, uint8]",
{295, -1}: "expected expression list or one of ['!', '(', '+', '-', '^', NULL, QL parameter, bigint, bigrat, blob, bool, byte, complex128, complex64, duration, false, float, float32, float64, floating-point literal, identifier, imaginary literal, int, int16, int32, int64, int8, integer literal, rune, string, string literal, time, true, uint, uint16, uint32, uint64, uint8]",
{301, -1}: "expected expression list or one of ['!', '(', '+', '-', '^', NULL, QL parameter, bigint, bigrat, blob, bool, byte, complex128, complex64, duration, false, float, float32, float64, floating-point literal, identifier, imaginary literal, int, int16, int32, int64, int8, integer literal, rune, string, string literal, time, true, uint, uint16, uint32, uint64, uint8]",
{357, -1}: "expected expression list or one of ['!', '(', '+', '-', '^', NULL, QL parameter, bigint, bigrat, blob, bool, byte, complex128, complex64, duration, false, float, float32, float64, floating-point literal, identifier, imaginary literal, int, int16, int32, int64, int8, integer literal, rune, string, string literal, time, true, uint, uint16, uint32, uint64, uint8]",
{133, -1}: "expected expression or one of [$end, '!', '(', ')', '+', '-', ';', '^', ASC, DESC, LIMIT, NULL, OFFSET, QL parameter, bigint, bigrat, blob, bool, byte, complex128, complex64, duration, false, float, float32, float64, floating-point literal, identifier, imaginary literal, int, int16, int32, int64, int8, integer literal, rune, string, string literal, time, true, uint, uint16, uint32, uint64, uint8]",
{105, -1}: "expected expression or one of ['!', '(', '+', '-', ':', '^', NULL, QL parameter, bigint, bigrat, blob, bool, byte, complex128, complex64, duration, false, float, float32, float64, floating-point literal, identifier, imaginary literal, int, int16, int32, int64, int8, integer literal, rune, string, string literal, time, true, uint, uint16, uint32, uint64, uint8]",
{110, -1}: "expected expression or one of ['!', '(', '+', '-', ']', '^', NULL, QL parameter, bigint, bigrat, blob, bool, byte, complex128, complex64, duration, false, float, float32, float64, floating-point literal, identifier, imaginary literal, int, int16, int32, int64, int8, integer literal, rune, string, string literal, time, true, uint, uint16, uint32, uint64, uint8]",
{123, -1}: "expected expression or one of ['!', '(', '+', '-', ']', '^', NULL, QL parameter, bigint, bigrat, blob, bool, byte, complex128, complex64, duration, false, float, float32, float64, floating-point literal, identifier, imaginary literal, int, int16, int32, int64, int8, integer literal, rune, string, string literal, time, true, uint, uint16, uint32, uint64, uint8]",
{42, -1}: "expected expression or one of ['!', '(', '+', '-', '^', EXISTS, NOT, NULL, QL parameter, bigint, bigrat, blob, bool, byte, complex128, complex64, duration, false, float, float32, float64, floating-point literal, identifier, imaginary literal, int, int16, int32, int64, int8, integer literal, rune, string, string literal, time, true, uint, uint16, uint32, uint64, uint8]",
{3, -1}: "expected expression or one of ['!', '(', '+', '-', '^', NULL, QL parameter, bigint, bigrat, blob, bool, byte, complex128, complex64, duration, false, float, float32, float64, floating-point literal, identifier, imaginary literal, int, int16, int32, int64, int8, integer literal, rune, string, string literal, time, true, uint, uint16, uint32, uint64, uint8]",
{58, -1}: "expected expression or one of ['!', '(', '+', '-', '^', NULL, QL parameter, bigint, bigrat, blob, bool, byte, complex128, complex64, duration, false, float, float32, float64, floating-point literal, identifier, imaginary literal, int, int16, int32, int64, int8, integer literal, rune, string, string literal, time, true, uint, uint16, uint32, uint64, uint8]",
{210, -1}: "expected expression or one of ['!', '(', '+', '-', '^', NULL, QL parameter, bigint, bigrat, blob, bool, byte, complex128, complex64, duration, false, float, float32, float64, floating-point literal, identifier, imaginary literal, int, int16, int32, int64, int8, integer literal, rune, string, string literal, time, true, uint, uint16, uint32, uint64, uint8]",
{217, -1}: "expected expression or one of ['!', '(', '+', '-', '^', NULL, QL parameter, bigint, bigrat, blob, bool, byte, complex128, complex64, duration, false, float, float32, float64, floating-point literal, identifier, imaginary literal, int, int16, int32, int64, int8, integer literal, rune, string, string literal, time, true, uint, uint16, uint32, uint64, uint8]",
{259, -1}: "expected expression or one of ['!', '(', '+', '-', '^', NULL, QL parameter, bigint, bigrat, blob, bool, byte, complex128, complex64, duration, false, float, float32, float64, floating-point literal, identifier, imaginary literal, int, int16, int32, int64, int8, integer literal, rune, string, string literal, time, true, uint, uint16, uint32, uint64, uint8]",
{262, -1}: "expected expression or one of ['!', '(', '+', '-', '^', NULL, QL parameter, bigint, bigrat, blob, bool, byte, complex128, complex64, duration, false, float, float32, float64, floating-point literal, identifier, imaginary literal, int, int16, int32, int64, int8, integer literal, rune, string, string literal, time, true, uint, uint16, uint32, uint64, uint8]",
{280, -1}: "expected expression or one of ['!', '(', '+', '-', '^', NULL, QL parameter, bigint, bigrat, blob, bool, byte, complex128, complex64, duration, false, float, float32, float64, floating-point literal, identifier, imaginary literal, int, int16, int32, int64, int8, integer literal, rune, string, string literal, time, true, uint, uint16, uint32, uint64, uint8]",
{341, -1}: "expected expression or one of ['!', '(', '+', '-', '^', NULL, QL parameter, bigint, bigrat, blob, bool, byte, complex128, complex64, duration, false, float, float32, float64, floating-point literal, identifier, imaginary literal, int, int16, int32, int64, int8, integer literal, rune, string, string literal, time, true, uint, uint16, uint32, uint64, uint8]",
{113, -1}: "expected expression term or one of ['!', '(', '+', '-', '^', NULL, QL parameter, bigint, bigrat, blob, bool, byte, complex128, complex64, duration, false, float, float32, float64, floating-point literal, identifier, imaginary literal, int, int16, int32, int64, int8, integer literal, rune, string, string literal, time, true, uint, uint16, uint32, uint64, uint8]",
{223, -1}: "expected field expression optional AS clause or logical or operator or one of [$end, ')', ',', ';', AS, FROM, FULL, GROUP, LEFT, LIMIT, OFFSET, OR, ORDER, RIGHT, WHERE, ||]",
{282, -1}: "expected field expression or one of [$end, '!', '(', ')', '+', '-', ';', '^', FROM, FULL, GROUP, LEFT, LIMIT, NULL, OFFSET, ORDER, QL parameter, RIGHT, WHERE, bigint, bigrat, blob, bool, byte, complex128, complex64, duration, false, float, float32, float64, floating-point literal, identifier, imaginary literal, int, int16, int32, int64, int8, integer literal, rune, string, string literal, time, true, uint, uint16, uint32, uint64, uint8]",
{104, -1}: "expected function call optional argument list or one of ['!', '(', ')', '*', '+', '-', '^', NULL, QL parameter, bigint, bigrat, blob, bool, byte, complex128, complex64, duration, false, float, float32, float64, floating-point literal, identifier, imaginary literal, int, int16, int32, int64, int8, integer literal, rune, string, string literal, time, true, uint, uint16, uint32, uint64, uint8]",
{61, -1}: "expected function call or string index or string slice or one of [!=, $end, &&, &^, '%', '&', '(', ')', '*', '+', ',', '-', '/', ':', ';', '<', '=', '>', '[', ']', '^', '|', <<, <=, ==, >=, >>, AND, AS, ASC, BETWEEN, DEFAULT, DESC, FROM, FULL, GROUP, IN, IS, LEFT, LIKE, LIMIT, NOT, OFFSET, OR, ORDER, RIGHT, WHERE, ||]",
{103, -1}: "expected function call or string index or string slice or one of [!=, $end, &&, &^, '%', '&', '(', ')', '*', '+', ',', '-', '/', ':', ';', '<', '=', '>', '[', ']', '^', '|', <<, <=, ==, >=, >>, AND, AS, ASC, BETWEEN, DEFAULT, DESC, FROM, FULL, GROUP, IN, IS, LEFT, LIKE, LIMIT, NOT, OFFSET, OR, ORDER, RIGHT, WHERE, ||]",
{137, -1}: "expected function call or string index or string slice or one of [!=, $end, &&, &^, '%', '&', '(', ')', '*', '+', ',', '-', '/', ':', ';', '<', '=', '>', '[', ']', '^', '|', <<, <=, ==, >=, >>, AND, AS, ASC, BETWEEN, DEFAULT, DESC, FROM, FULL, GROUP, IN, IS, LEFT, LIKE, LIMIT, NOT, OFFSET, OR, ORDER, RIGHT, WHERE, ||]",
{138, -1}: "expected function call or string index or string slice or one of [!=, $end, &&, &^, '%', '&', '(', ')', '*', '+', ',', '-', '/', ':', ';', '<', '=', '>', '[', ']', '^', '|', <<, <=, ==, >=, >>, AND, AS, ASC, BETWEEN, DEFAULT, DESC, FROM, FULL, GROUP, IN, IS, LEFT, LIKE, LIMIT, NOT, OFFSET, OR, ORDER, RIGHT, WHERE, ||]",
{139, -1}: "expected function call or string index or string slice or one of [!=, $end, &&, &^, '%', '&', '(', ')', '*', '+', ',', '-', '/', ':', ';', '<', '=', '>', '[', ']', '^', '|', <<, <=, ==, >=, >>, AND, AS, ASC, BETWEEN, DEFAULT, DESC, FROM, FULL, GROUP, IN, IS, LEFT, LIKE, LIMIT, NOT, OFFSET, OR, ORDER, RIGHT, WHERE, ||]",
{35, -1}: "expected identifier",
{140, -1}: "expected identifier",
{242, -1}: "expected identifier",
{285, -1}: "expected identifier",
{311, -1}: "expected identifier",
{313, -1}: "expected identifier",
{350, -1}: "expected identifier",
{353, -1}: "expected identifier",
{355, -1}: "expected identifier",
{44, -1}: "expected logical and operator or one of [$end, &&, ')', ',', ':', ';', ']', AND, AS, ASC, DEFAULT, DESC, FROM, FULL, GROUP, LEFT, LIMIT, OFFSET, OR, ORDER, RIGHT, WHERE, ||]",
{117, -1}: "expected logical and operator or one of [$end, &&, ')', ',', ':', ';', ']', AND, AS, ASC, DEFAULT, DESC, FROM, FULL, GROUP, LEFT, LIMIT, OFFSET, OR, ORDER, RIGHT, WHERE, ||]",
{134, -1}: "expected logical or operator or one of [$end, ')', ',', ';', ASC, DESC, LIMIT, OFFSET, OR, ||]",
{337, -1}: "expected logical or operator or one of [$end, ')', ',', ';', DEFAULT, OR, ||]",
{343, -1}: "expected logical or operator or one of [$end, ')', ',', ';', OR, ||]",
{281, -1}: "expected logical or operator or one of [$end, ')', ';', GROUP, LIMIT, OFFSET, OR, ORDER, WHERE, ||]",
{45, -1}: "expected logical or operator or one of [$end, ')', ';', GROUP, LIMIT, OFFSET, OR, ORDER, ||]",
{260, -1}: "expected logical or operator or one of [$end, ')', ';', OFFSET, OR, ||]",
{263, -1}: "expected logical or operator or one of [$end, ')', ';', OR, ||]",
{218, -1}: "expected logical or operator or one of [$end, ',', ';', OR, WHERE, ||]",
{368, -1}: "expected logical or operator or one of [$end, OR, ||]",
{156, -1}: "expected logical or operator or one of [')', OR, ||]",
{211, -1}: "expected logical or operator or one of [')', OR, ||]",