forked from xwb1989/sqlparser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sql.go
7373 lines (7303 loc) · 211 KB
/
sql.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 -o sql.go sql.y. DO NOT EDIT.
//line sql.y:18
package sqlparser
import __yyfmt__ "fmt"
//line sql.y:18
func setParseTree(yylex interface{}, stmt Statement) {
yylex.(*Tokenizer).ParseTree = stmt
}
func setAllowComments(yylex interface{}, allow bool) {
yylex.(*Tokenizer).AllowComments = allow
}
func setDDL(yylex interface{}, ddl *DDL) {
yylex.(*Tokenizer).partialDDL = ddl
}
func incNesting(yylex interface{}) bool {
yylex.(*Tokenizer).nesting++
if yylex.(*Tokenizer).nesting == 200 {
return true
}
return false
}
func decNesting(yylex interface{}) {
yylex.(*Tokenizer).nesting--
}
// skipToEnd forces the lexer to end prematurely. Not all SQL statements
// are supported by the Parser, thus calling skipToEnd will make the lexer
// return EOF early.
func skipToEnd(yylex interface{}) {
yylex.(*Tokenizer).SkipToEnd = true
}
//line sql.y:53
type yySymType struct {
yys int
empty struct{}
statement Statement
selStmt SelectStatement
ddl *DDL
ins *Insert
byt byte
bytes []byte
bytes2 [][]byte
str string
strs []string
selectExprs SelectExprs
selectExpr SelectExpr
columns Columns
partitions Partitions
colName *ColName
tableExprs TableExprs
tableExpr TableExpr
joinCondition JoinCondition
tableName TableName
tableNames TableNames
indexHints *IndexHints
expr Expr
exprs Exprs
boolVal BoolVal
sqlVal *SQLVal
colTuple ColTuple
values Values
valTuple ValTuple
subquery *Subquery
whens []*When
when *When
orderBy OrderBy
order *Order
limit *Limit
updateExprs UpdateExprs
setExprs SetExprs
updateExpr *UpdateExpr
setExpr *SetExpr
colIdent ColIdent
tableIdent TableIdent
convertType *ConvertType
aliasedTableName *AliasedTableExpr
TableSpec *TableSpec
columnType ColumnType
colKeyOpt ColumnKeyOption
optVal Expr
LengthScaleOption LengthScaleOption
columnDefinition *ColumnDefinition
indexDefinition *IndexDefinition
indexInfo *IndexInfo
indexOption *IndexOption
indexOptions []*IndexOption
indexColumn *IndexColumn
indexColumns []*IndexColumn
constraintDefinition *ConstraintDefinition
constraintInfo ConstraintInfo
ReferenceAction ReferenceAction
partDefs []*PartitionDefinition
partDef *PartitionDefinition
partSpec *PartitionSpec
vindexParam VindexParam
vindexParams []VindexParam
showFilter *ShowFilter
optLike *OptLike
}
const LEX_ERROR = 57346
const UNION = 57347
const SELECT = 57348
const STREAM = 57349
const INSERT = 57350
const UPDATE = 57351
const DELETE = 57352
const FROM = 57353
const WHERE = 57354
const GROUP = 57355
const HAVING = 57356
const ORDER = 57357
const BY = 57358
const LIMIT = 57359
const OFFSET = 57360
const FOR = 57361
const ALL = 57362
const DISTINCT = 57363
const AS = 57364
const EXISTS = 57365
const ASC = 57366
const DESC = 57367
const INTO = 57368
const DUPLICATE = 57369
const KEY = 57370
const DEFAULT = 57371
const SET = 57372
const LOCK = 57373
const UNLOCK = 57374
const KEYS = 57375
const VALUES = 57376
const LAST_INSERT_ID = 57377
const NEXT = 57378
const VALUE = 57379
const SHARE = 57380
const MODE = 57381
const SQL_NO_CACHE = 57382
const SQL_CACHE = 57383
const JOIN = 57384
const STRAIGHT_JOIN = 57385
const LEFT = 57386
const RIGHT = 57387
const INNER = 57388
const OUTER = 57389
const CROSS = 57390
const NATURAL = 57391
const USE = 57392
const FORCE = 57393
const ON = 57394
const USING = 57395
const ID = 57396
const HEX = 57397
const STRING = 57398
const INTEGRAL = 57399
const FLOAT = 57400
const HEXNUM = 57401
const VALUE_ARG = 57402
const LIST_ARG = 57403
const COMMENT = 57404
const COMMENT_KEYWORD = 57405
const BIT_LITERAL = 57406
const NULL = 57407
const TRUE = 57408
const FALSE = 57409
const OFF = 57410
const OR = 57411
const AND = 57412
const NOT = 57413
const BETWEEN = 57414
const CASE = 57415
const WHEN = 57416
const THEN = 57417
const ELSE = 57418
const END = 57419
const LE = 57420
const GE = 57421
const NE = 57422
const NULL_SAFE_EQUAL = 57423
const IS = 57424
const LIKE = 57425
const REGEXP = 57426
const IN = 57427
const SHIFT_LEFT = 57428
const SHIFT_RIGHT = 57429
const DIV = 57430
const MOD = 57431
const UNARY = 57432
const COLLATE = 57433
const BINARY = 57434
const UNDERSCORE_BINARY = 57435
const UNDERSCORE_UTF8MB4 = 57436
const INTERVAL = 57437
const JSON_EXTRACT_OP = 57438
const JSON_UNQUOTE_EXTRACT_OP = 57439
const CREATE = 57440
const ALTER = 57441
const DROP = 57442
const RENAME = 57443
const ANALYZE = 57444
const ADD = 57445
const FLUSH = 57446
const SCHEMA = 57447
const TABLE = 57448
const INDEX = 57449
const VIEW = 57450
const TO = 57451
const IGNORE = 57452
const IF = 57453
const UNIQUE = 57454
const PRIMARY = 57455
const COLUMN = 57456
const SPATIAL = 57457
const FULLTEXT = 57458
const KEY_BLOCK_SIZE = 57459
const CHECK = 57460
const ACTION = 57461
const CASCADE = 57462
const CONSTRAINT = 57463
const FOREIGN = 57464
const NO = 57465
const REFERENCES = 57466
const RESTRICT = 57467
const SHOW = 57468
const DESCRIBE = 57469
const EXPLAIN = 57470
const DATE = 57471
const ESCAPE = 57472
const REPAIR = 57473
const OPTIMIZE = 57474
const TRUNCATE = 57475
const MAXVALUE = 57476
const PARTITION = 57477
const REORGANIZE = 57478
const LESS = 57479
const THAN = 57480
const PROCEDURE = 57481
const TRIGGER = 57482
const VINDEX = 57483
const VINDEXES = 57484
const STATUS = 57485
const VARIABLES = 57486
const WARNINGS = 57487
const SEQUENCE = 57488
const BEGIN = 57489
const START = 57490
const TRANSACTION = 57491
const COMMIT = 57492
const ROLLBACK = 57493
const BIT = 57494
const TINYINT = 57495
const SMALLINT = 57496
const MEDIUMINT = 57497
const INT = 57498
const INTEGER = 57499
const BIGINT = 57500
const INTNUM = 57501
const REAL = 57502
const DOUBLE = 57503
const FLOAT_TYPE = 57504
const DECIMAL = 57505
const NUMERIC = 57506
const TIME = 57507
const TIMESTAMP = 57508
const DATETIME = 57509
const YEAR = 57510
const CHAR = 57511
const VARCHAR = 57512
const BOOL = 57513
const CHARACTER = 57514
const VARBINARY = 57515
const NCHAR = 57516
const TEXT = 57517
const TINYTEXT = 57518
const MEDIUMTEXT = 57519
const LONGTEXT = 57520
const BLOB = 57521
const TINYBLOB = 57522
const MEDIUMBLOB = 57523
const LONGBLOB = 57524
const JSON = 57525
const ENUM = 57526
const GEOMETRY = 57527
const POINT = 57528
const LINESTRING = 57529
const POLYGON = 57530
const GEOMETRYCOLLECTION = 57531
const MULTIPOINT = 57532
const MULTILINESTRING = 57533
const MULTIPOLYGON = 57534
const NULLX = 57535
const AUTO_INCREMENT = 57536
const APPROXNUM = 57537
const SIGNED = 57538
const UNSIGNED = 57539
const ZEROFILL = 57540
const COLLATION = 57541
const DATABASES = 57542
const TABLES = 57543
const VITESS_METADATA = 57544
const VSCHEMA = 57545
const FULL = 57546
const PROCESSLIST = 57547
const COLUMNS = 57548
const FIELDS = 57549
const ENGINES = 57550
const PLUGINS = 57551
const NAMES = 57552
const CHARSET = 57553
const GLOBAL = 57554
const SESSION = 57555
const ISOLATION = 57556
const LEVEL = 57557
const READ = 57558
const WRITE = 57559
const ONLY = 57560
const REPEATABLE = 57561
const COMMITTED = 57562
const UNCOMMITTED = 57563
const SERIALIZABLE = 57564
const CURRENT_TIMESTAMP = 57565
const DATABASE = 57566
const CURRENT_DATE = 57567
const CURRENT_TIME = 57568
const LOCALTIME = 57569
const LOCALTIMESTAMP = 57570
const UTC_DATE = 57571
const UTC_TIME = 57572
const UTC_TIMESTAMP = 57573
const REPLACE = 57574
const CONVERT = 57575
const CAST = 57576
const SUBSTR = 57577
const SUBSTRING = 57578
const GROUP_CONCAT = 57579
const SEPARATOR = 57580
const TIMESTAMPADD = 57581
const TIMESTAMPDIFF = 57582
const MATCH = 57583
const AGAINST = 57584
const BOOLEAN = 57585
const LANGUAGE = 57586
const WITH = 57587
const QUERY = 57588
const EXPANSION = 57589
const UNUSED = 57590
const ARRAY = 57591
const CUME_DIST = 57592
const DESCRIPTION = 57593
const DENSE_RANK = 57594
const EMPTY = 57595
const EXCEPT = 57596
const FIRST_VALUE = 57597
const GROUPING = 57598
const GROUPS = 57599
const JSON_TABLE = 57600
const LAG = 57601
const LAST_VALUE = 57602
const LATERAL = 57603
const LEAD = 57604
const MEMBER = 57605
const NTH_VALUE = 57606
const NTILE = 57607
const OF = 57608
const OVER = 57609
const PERCENT_RANK = 57610
const RANK = 57611
const RECURSIVE = 57612
const ROW_NUMBER = 57613
const SYSTEM = 57614
const WINDOW = 57615
const ACTIVE = 57616
const ADMIN = 57617
const BUCKETS = 57618
const CLONE = 57619
const COMPONENT = 57620
const DEFINITION = 57621
const ENFORCED = 57622
const EXCLUDE = 57623
const FOLLOWING = 57624
const GEOMCOLLECTION = 57625
const GET_MASTER_PUBLIC_KEY = 57626
const HISTOGRAM = 57627
const HISTORY = 57628
const INACTIVE = 57629
const INVISIBLE = 57630
const LOCKED = 57631
const MASTER_COMPRESSION_ALGORITHMS = 57632
const MASTER_PUBLIC_KEY_PATH = 57633
const MASTER_TLS_CIPHERSUITES = 57634
const MASTER_ZSTD_COMPRESSION_LEVEL = 57635
const NESTED = 57636
const NETWORK_NAMESPACE = 57637
const NOWAIT = 57638
const NULLS = 57639
const OJ = 57640
const OLD = 57641
const OPTIONAL = 57642
const ORDINALITY = 57643
const ORGANIZATION = 57644
const OTHERS = 57645
const PATH = 57646
const PERSIST = 57647
const PERSIST_ONLY = 57648
const PRECEDING = 57649
const PRIVILEGE_CHECKS_USER = 57650
const PROCESS = 57651
const RANDOM = 57652
const REFERENCE = 57653
const REQUIRE_ROW_FORMAT = 57654
const RESOURCE = 57655
const RESPECT = 57656
const RESTART = 57657
const RETAIN = 57658
const REUSE = 57659
const ROLE = 57660
const SECONDARY = 57661
const SECONDARY_ENGINE = 57662
const SECONDARY_LOAD = 57663
const SECONDARY_UNLOAD = 57664
const SKIP = 57665
const SRID = 57666
const THREAD_PRIORITY = 57667
const TIES = 57668
const UNBOUNDED = 57669
const VCPU = 57670
const VISIBLE = 57671
var yyToknames = [...]string{
"$end",
"error",
"$unk",
"LEX_ERROR",
"UNION",
"SELECT",
"STREAM",
"INSERT",
"UPDATE",
"DELETE",
"FROM",
"WHERE",
"GROUP",
"HAVING",
"ORDER",
"BY",
"LIMIT",
"OFFSET",
"FOR",
"ALL",
"DISTINCT",
"AS",
"EXISTS",
"ASC",
"DESC",
"INTO",
"DUPLICATE",
"KEY",
"DEFAULT",
"SET",
"LOCK",
"UNLOCK",
"KEYS",
"VALUES",
"LAST_INSERT_ID",
"NEXT",
"VALUE",
"SHARE",
"MODE",
"SQL_NO_CACHE",
"SQL_CACHE",
"JOIN",
"STRAIGHT_JOIN",
"LEFT",
"RIGHT",
"INNER",
"OUTER",
"CROSS",
"NATURAL",
"USE",
"FORCE",
"ON",
"USING",
"'('",
"','",
"')'",
"ID",
"HEX",
"STRING",
"INTEGRAL",
"FLOAT",
"HEXNUM",
"VALUE_ARG",
"LIST_ARG",
"COMMENT",
"COMMENT_KEYWORD",
"BIT_LITERAL",
"NULL",
"TRUE",
"FALSE",
"OFF",
"OR",
"AND",
"NOT",
"'!'",
"BETWEEN",
"CASE",
"WHEN",
"THEN",
"ELSE",
"END",
"'='",
"'<'",
"'>'",
"LE",
"GE",
"NE",
"NULL_SAFE_EQUAL",
"IS",
"LIKE",
"REGEXP",
"IN",
"'|'",
"'&'",
"SHIFT_LEFT",
"SHIFT_RIGHT",
"'+'",
"'-'",
"'*'",
"'/'",
"DIV",
"'%'",
"MOD",
"'^'",
"'~'",
"UNARY",
"COLLATE",
"BINARY",
"UNDERSCORE_BINARY",
"UNDERSCORE_UTF8MB4",
"INTERVAL",
"'.'",
"JSON_EXTRACT_OP",
"JSON_UNQUOTE_EXTRACT_OP",
"CREATE",
"ALTER",
"DROP",
"RENAME",
"ANALYZE",
"ADD",
"FLUSH",
"SCHEMA",
"TABLE",
"INDEX",
"VIEW",
"TO",
"IGNORE",
"IF",
"UNIQUE",
"PRIMARY",
"COLUMN",
"SPATIAL",
"FULLTEXT",
"KEY_BLOCK_SIZE",
"CHECK",
"ACTION",
"CASCADE",
"CONSTRAINT",
"FOREIGN",
"NO",
"REFERENCES",
"RESTRICT",
"SHOW",
"DESCRIBE",
"EXPLAIN",
"DATE",
"ESCAPE",
"REPAIR",
"OPTIMIZE",
"TRUNCATE",
"MAXVALUE",
"PARTITION",
"REORGANIZE",
"LESS",
"THAN",
"PROCEDURE",
"TRIGGER",
"VINDEX",
"VINDEXES",
"STATUS",
"VARIABLES",
"WARNINGS",
"SEQUENCE",
"BEGIN",
"START",
"TRANSACTION",
"COMMIT",
"ROLLBACK",
"BIT",
"TINYINT",
"SMALLINT",
"MEDIUMINT",
"INT",
"INTEGER",
"BIGINT",
"INTNUM",
"REAL",
"DOUBLE",
"FLOAT_TYPE",
"DECIMAL",
"NUMERIC",
"TIME",
"TIMESTAMP",
"DATETIME",
"YEAR",
"CHAR",
"VARCHAR",
"BOOL",
"CHARACTER",
"VARBINARY",
"NCHAR",
"TEXT",
"TINYTEXT",
"MEDIUMTEXT",
"LONGTEXT",
"BLOB",
"TINYBLOB",
"MEDIUMBLOB",
"LONGBLOB",
"JSON",
"ENUM",
"GEOMETRY",
"POINT",
"LINESTRING",
"POLYGON",
"GEOMETRYCOLLECTION",
"MULTIPOINT",
"MULTILINESTRING",
"MULTIPOLYGON",
"NULLX",
"AUTO_INCREMENT",
"APPROXNUM",
"SIGNED",
"UNSIGNED",
"ZEROFILL",
"COLLATION",
"DATABASES",
"TABLES",
"VITESS_METADATA",
"VSCHEMA",
"FULL",
"PROCESSLIST",
"COLUMNS",
"FIELDS",
"ENGINES",
"PLUGINS",
"NAMES",
"CHARSET",
"GLOBAL",
"SESSION",
"ISOLATION",
"LEVEL",
"READ",
"WRITE",
"ONLY",
"REPEATABLE",
"COMMITTED",
"UNCOMMITTED",
"SERIALIZABLE",
"CURRENT_TIMESTAMP",
"DATABASE",
"CURRENT_DATE",
"CURRENT_TIME",
"LOCALTIME",
"LOCALTIMESTAMP",
"UTC_DATE",
"UTC_TIME",
"UTC_TIMESTAMP",
"REPLACE",
"CONVERT",
"CAST",
"SUBSTR",
"SUBSTRING",
"GROUP_CONCAT",
"SEPARATOR",
"TIMESTAMPADD",
"TIMESTAMPDIFF",
"MATCH",
"AGAINST",
"BOOLEAN",
"LANGUAGE",
"WITH",
"QUERY",
"EXPANSION",
"UNUSED",
"ARRAY",
"CUME_DIST",
"DESCRIPTION",
"DENSE_RANK",
"EMPTY",
"EXCEPT",
"FIRST_VALUE",
"GROUPING",
"GROUPS",
"JSON_TABLE",
"LAG",
"LAST_VALUE",
"LATERAL",
"LEAD",
"MEMBER",
"NTH_VALUE",
"NTILE",
"OF",
"OVER",
"PERCENT_RANK",
"RANK",
"RECURSIVE",
"ROW_NUMBER",
"SYSTEM",
"WINDOW",
"ACTIVE",
"ADMIN",
"BUCKETS",
"CLONE",
"COMPONENT",
"DEFINITION",
"ENFORCED",
"EXCLUDE",
"FOLLOWING",
"GEOMCOLLECTION",
"GET_MASTER_PUBLIC_KEY",
"HISTOGRAM",
"HISTORY",
"INACTIVE",
"INVISIBLE",
"LOCKED",
"MASTER_COMPRESSION_ALGORITHMS",
"MASTER_PUBLIC_KEY_PATH",
"MASTER_TLS_CIPHERSUITES",
"MASTER_ZSTD_COMPRESSION_LEVEL",
"NESTED",
"NETWORK_NAMESPACE",
"NOWAIT",
"NULLS",
"OJ",
"OLD",
"OPTIONAL",
"ORDINALITY",
"ORGANIZATION",
"OTHERS",
"PATH",
"PERSIST",
"PERSIST_ONLY",
"PRECEDING",
"PRIVILEGE_CHECKS_USER",
"PROCESS",
"RANDOM",
"REFERENCE",
"REQUIRE_ROW_FORMAT",
"RESOURCE",
"RESPECT",
"RESTART",
"RETAIN",
"REUSE",
"ROLE",
"SECONDARY",
"SECONDARY_ENGINE",
"SECONDARY_LOAD",
"SECONDARY_UNLOAD",
"SKIP",
"SRID",
"THREAD_PRIORITY",
"TIES",
"UNBOUNDED",
"VCPU",
"VISIBLE",
"';'",
}
var yyStatenames = [...]string{}
const yyEofCode = 1
const yyErrCode = 2
const yyInitialStackSize = 16
//line yacctab:1
var yyExca = [...]int{
-1, 1,
1, -1,
-2, 0,
-1, 3,
5, 29,
-2, 4,
-1, 37,
160, 300,
161, 300,
-2, 288,
-1, 320,
112, 640,
-2, 636,
-1, 321,
112, 641,
-2, 637,
-1, 389,
82, 888,
-2, 63,
-1, 390,
82, 806,
-2, 64,
-1, 395,
82, 775,
-2, 602,
-1, 397,
82, 836,
-2, 604,
-1, 689,
1, 352,
5, 352,
12, 352,
13, 352,
14, 352,
15, 352,
17, 352,
19, 352,
30, 352,
31, 352,
42, 352,
43, 352,
44, 352,
45, 352,
46, 352,
48, 352,
49, 352,
52, 352,
53, 352,
55, 352,
56, 352,
347, 352,
-2, 370,
-1, 692,
53, 44,
55, 44,
-2, 48,
-1, 840,
112, 643,
-2, 639,
-1, 1069,
5, 30,
-2, 437,
-1, 1099,
5, 29,
-2, 576,
-1, 1344,
5, 30,
-2, 577,
-1, 1397,
5, 29,
-2, 579,
-1, 1475,
5, 30,
-2, 580,
}
const yyPrivate = 57344
const yyLast = 16596
var yyAct = [...]int{
321, 1509, 1499, 1306, 1463, 1102, 1194, 645, 1377, 1364,
953, 1120, 1280, 351, 1246, 1409, 338, 926, 299, 982,
546, 1243, 1247, 996, 1103, 325, 924, 57, 1033, 1147,
962, 952, 81, 1253, 1218, 1259, 264, 865, 789, 264,
1061, 872, 803, 1126, 1173, 875, 686, 1164, 966, 705,
842, 992, 394, 290, 928, 644, 3, 913, 893, 577,
388, 352, 51, 704, 583, 517, 589, 264, 81, 597,
323, 685, 264, 383, 264, 385, 694, 659, 906, 949,
56, 308, 1502, 1486, 660, 1497, 1473, 1494, 380, 1307,
1485, 1015, 691, 1472, 1235, 1336, 61, 535, 291, 292,
293, 294, 522, 1274, 297, 1014, 943, 298, 1135, 312,
1155, 1134, 550, 51, 1136, 571, 976, 259, 255, 256,
257, 304, 63, 64, 65, 66, 67, 296, 261, 1275,
1276, 944, 945, 1019, 706, 566, 707, 548, 295, 567,
564, 565, 1013, 1438, 610, 609, 619, 620, 612, 613,
614, 615, 616, 617, 618, 611, 975, 1196, 621, 382,
1367, 251, 983, 253, 519, 363, 521, 369, 370, 367,
368, 366, 365, 364, 570, 1384, 1327, 1325, 552, 289,
554, 371, 372, 778, 559, 560, 569, 777, 1198, 775,
1496, 1493, 1010, 1007, 1008, 1464, 1006, 1193, 907, 1456,
967, 1517, 1410, 536, 253, 391, 1219, 1513, 524, 1199,
1197, 551, 553, 1121, 1123, 1412, 782, 768, 1269, 1418,
1190, 1268, 776, 779, 1267, 520, 1192, 969, 1017, 1020,
527, 969, 266, 254, 1027, 1445, 258, 1026, 532, 1347,
1078, 633, 634, 1205, 1221, 1131, 1088, 1055, 814, 1075,
700, 601, 264, 542, 950, 264, 252, 1292, 621, 611,
1148, 264, 621, 939, 811, 1012, 808, 264, 596, 518,
81, 1454, 81, 804, 81, 81, 1427, 81, 1223, 81,
1227, 969, 1222, 1411, 1220, 81, 1257, 1011, 708, 1225,
1122, 1237, 555, 894, 556, 557, 549, 558, 1224, 561,
594, 529, 516, 530, 1471, 572, 531, 983, 1293, 70,
518, 1226, 1228, 1439, 1511, 81, 596, 1512, 770, 1510,
1419, 1417, 1191, 968, 1189, 1035, 1016, 968, 1153, 318,
585, 547, 894, 547, 1085, 547, 547, 1459, 547, 591,
547, 1018, 633, 634, 528, 71, 547, 534, 849, 573,
574, 633, 634, 541, 805, 538, 539, 540, 1477, 543,
586, 972, 847, 848, 846, 1373, 51, 973, 614, 615,
616, 617, 618, 611, 1518, 1181, 621, 968, 264, 264,
264, 630, 965, 963, 632, 964, 1372, 81, 523, 595,
594, 961, 967, 81, 595, 594, 1239, 1052, 1053, 1054,
54, 1168, 587, 1034, 1179, 684, 596, 22, 817, 818,
845, 596, 643, 1519, 647, 648, 649, 650, 651, 652,
653, 654, 655, 1167, 658, 661, 661, 661, 667, 661,
661, 667, 661, 675, 676, 677, 678, 679, 680, 866,
690, 867, 662, 664, 666, 668, 670, 672, 673, 663,
665, 1156, 669, 671, 1479, 674, 595, 594, 698, 1137,
250, 1138, 702, 1455, 813, 525, 526, 303, 693, 1391,
683, 1180, 692, 596, 1370, 1202, 1185, 1182, 1175, 1183,
1178, 1074, 1174, 1165, 1038, 1176, 1177, 1415, 1495, 350,
612, 613, 614, 615, 616, 617, 618, 611, 1452, 1184,
621, 812, 610, 609, 619, 620, 612, 613, 614, 615,
616, 617, 618, 611, 1309, 1148, 621, 264, 595, 594,
1143, 79, 81, 868, 391, 377, 378, 264, 264, 81,
788, 595, 594, 264, 787, 596, 264, 1481, 576, 264,
1415, 1467, 767, 264, 771, 81, 81, 769, 596, 774,
81, 81, 81, 264, 81, 81, 1062, 393, 1415, 576,
81, 81, 832, 834, 835, 792, 793, 1073, 833, 1072,
794, 795, 796, 766, 798, 799, 1415, 1446, 1415, 1414,
800, 801, 544, 547, 1362, 1361, 595, 594, 537, 81,
547, 1349, 576, 264, 576, 791, 1346, 576, 1424, 81,
1299, 1298, 1423, 596, 819, 1244, 547, 547, 1256, 716,
1289, 547, 547, 547, 970, 547, 547, 1256, 843, 772,
773, 547, 547, 898, 783, 780, 1295, 1296, 382, 1195,
877, 786, 341, 340, 343, 344, 345, 346, 1295, 1294,
838, 342, 347, 81, 1127, 797, 915, 918, 919, 920,
916, 1342, 917, 921, 840, 1127, 1260, 1261, 635, 636,
637, 638, 639, 640, 641, 642, 1067, 576, 836, 821,
910, 576, 877, 576, 715, 714, 81, 81, 884, 887,
1208, 1426, 909, 264, 895, 828, 910, 910, 54, 576,
24, 264, 264, 24, 51, 264, 264, 1297, 1256, 264,
264, 264, 81, 879, 869, 870, 58, 910, 933, 647,
695, 1139, 942, 696, 1097, 81, 1091, 24, 1098, 1090,
903, 934, 891, 1067, 1067, 936, 610, 609, 619, 620,
612, 613, 614, 615, 616, 617, 618, 611, 54, 839,
621, 54, 1504, 695, 701, 1396, 1067, 815, 781, 984,
985, 986, 925, 791, 696, 697, 690, 699, 1487, 393,
690, 393, 940, 393, 393, 54, 393, 941, 393, 264,
81, 932, 81, 937, 393, 908, 264, 264, 264, 264,
264, 957, 264, 264, 305, 1379, 264, 81, 935, 998,
1002, 977, 1004, 1354, 997, 1285, 697, 1380, 695, 1260,
1261, 1500, 1142, 264, 599, 264, 264, 1031, 993, 988,
264, 987, 1000, 1287, 994, 995, 609, 619, 620, 612,
613, 614, 615, 616, 617, 618, 611, 314, 1263, 621,
827, 547, 54, 547, 1244, 1169, 809, 785, 1266, 391,
1114, 978, 979, 980, 981, 1115, 1112, 1116, 547, 919,
920, 1113, 954, 1043, 1265, 1111, 1110, 989, 990, 991,
843, 1001, 309, 310, 1491, 1484, 1204, 840, 1021, 1022,
1023, 1024, 1025, 1040, 1028, 1029, 393, 1489, 1030, 1045,
1044, 1050, 710, 590, 619, 620, 612, 613, 614, 615,
616, 617, 618, 611, 1049, 1032, 621, 1057, 588, 1160,
713, 1056, 1039, 545, 578, 1152, 327, 1461, 1460, 1394,
1150, 264, 264, 264, 264, 264, 579, 1144, 874, 1340,
1375, 1003, 575, 264, 784, 923, 264, 306, 307, 590,
264, 300, 1432, 841, 264, 1104, 850, 851, 852, 853,
854, 855, 856, 857, 858, 859, 860, 861, 862, 863,
864, 1084, 839, 81, 301, 58, 1048, 1431, 1106, 1107,
1128, 1109, 1099, 1140, 1047, 1382, 1127, 568, 1100, 1101,
1079, 1076, 690, 690, 690, 690, 690, 802, 1129, 1117,
1130, 879, 1105, 592, 1125, 1108, 1506, 925, 1442, 1124,
1368, 899, 1132, 1506, 1505, 690, 1149, 810, 1157, 1158,
60, 81, 81, 915, 918, 919, 920, 916, 62, 917,
921, 393, 55, 1145, 1146, 1, 1498, 1308, 393, 1376,
1009, 1462, 1171, 1408, 1279, 960, 951, 69, 515, 68,
1453, 81, 959, 958, 393, 393, 1166, 1416, 1366, 393,
393, 393, 971, 393, 393, 1154, 974, 264, 1286, 393,
393, 1200, 1186, 1151, 1458, 721, 81, 719, 720, 1172,
718, 723, 1159, 547, 1161, 1162, 1163, 722, 717, 277,
386, 922, 709, 999, 593, 1201, 72, 1188, 823, 1187,
1005, 807, 562, 563, 279, 629, 1046, 1133, 599, 392,
954, 393, 547, 1251, 816, 582, 1430, 1381, 1211, 1212,
1083, 81, 81, 1245, 656, 892, 326, 831, 339, 1230,
1236, 1229, 1248, 1217, 336, 337, 822, 1096, 603, 324,
316, 688, 681, 1104, 914, 81, 912, 1043, 580, 584,
911, 381, 871, 1262, 1258, 687, 1207, 1335, 1437, 1206,
81, 840, 81, 81, 1264, 602, 1255, 826, 896, 26,
59, 311, 1278, 19, 1271, 18, 1250, 17, 1270, 20,
1249, 16, 51, 15, 14, 900, 901, 533, 30, 21,
264, 1277, 1273, 1339, 1282, 1283, 1284, 1058, 1059, 1060,
646, 13, 12, 11, 10, 9, 8, 7, 264, 657,
6, 393, 5, 1210, 81, 4, 302, 81, 81, 81,
264, 23, 2, 0, 393, 0, 81, 0, 0, 264,
820, 610, 609, 619, 620, 612, 613, 614, 615, 616,
617, 618, 611, 0, 0, 621, 1240, 1301, 0, 631,
1314, 0, 0, 0, 0, 1316, 0, 1290, 1291, 0,
1302, 0, 1304, 0, 0, 0, 0, 1323, 0, 0,