forked from ggyy0515/WCDBOptimizedSQLCipher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
parse.c
4215 lines (4156 loc) · 162 KB
/
parse.c
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
/*
** 2000-05-29
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
**
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
** Driver template for the LEMON parser generator.
**
** The "lemon" program processes an LALR(1) input grammar file, then uses
** this template to construct a parser. The "lemon" program inserts text
** at each "%%" line. Also, any "P-a-r-s-e" identifer prefix (without the
** interstitial "-" characters) contained in this template is changed into
** the value of the %name directive from the grammar. Otherwise, the content
** of this template is copied straight through into the generate parser
** source file.
**
** The following is the concatenation of all %include directives from the
** input grammar file:
*/
#include <stdio.h>
/************ Begin %include sections from the grammar ************************/
#line 48 "parse.y"
#include "sqliteInt.h"
/*
** Disable all error recovery processing in the parser push-down
** automaton.
*/
#define YYNOERRORRECOVERY 1
/*
** Make yytestcase() the same as testcase()
*/
#define yytestcase(X) testcase(X)
/*
** Indicate that sqlite3ParserFree() will never be called with a null
** pointer.
*/
#define YYPARSEFREENEVERNULL 1
/*
** Alternative datatype for the argument to the malloc() routine passed
** into sqlite3ParserAlloc(). The default is size_t.
*/
#define YYMALLOCARGTYPE u64
/*
** An instance of this structure holds information about the
** LIMIT clause of a SELECT statement.
*/
struct LimitVal {
Expr *pLimit; /* The LIMIT expression. NULL if there is no limit */
Expr *pOffset; /* The OFFSET expression. NULL if there is none */
};
/*
** An instance of the following structure describes the event of a
** TRIGGER. "a" is the event type, one of TK_UPDATE, TK_INSERT,
** TK_DELETE, or TK_INSTEAD. If the event is of the form
**
** UPDATE ON (a,b,c)
**
** Then the "b" IdList records the list "a,b,c".
*/
struct TrigEvent { int a; IdList * b; };
/*
** Disable lookaside memory allocation for objects that might be
** shared across database connections.
*/
static void disableLookaside(Parse *pParse){
pParse->disableLookaside++;
pParse->db->lookaside.bDisable++;
}
#line 402 "parse.y"
/*
** For a compound SELECT statement, make sure p->pPrior->pNext==p for
** all elements in the list. And make sure list length does not exceed
** SQLITE_LIMIT_COMPOUND_SELECT.
*/
static void parserDoubleLinkSelect(Parse *pParse, Select *p){
if( p->pPrior ){
Select *pNext = 0, *pLoop;
int mxSelect, cnt = 0;
for(pLoop=p; pLoop; pNext=pLoop, pLoop=pLoop->pPrior, cnt++){
pLoop->pNext = pNext;
pLoop->selFlags |= SF_Compound;
}
if( (p->selFlags & SF_MultiValue)==0 &&
(mxSelect = pParse->db->aLimit[SQLITE_LIMIT_COMPOUND_SELECT])>0 &&
cnt>mxSelect
){
sqlite3ErrorMsg(pParse, "too many terms in compound SELECT");
}
}
}
#line 825 "parse.y"
/* This is a utility routine used to set the ExprSpan.zStart and
** ExprSpan.zEnd values of pOut so that the span covers the complete
** range of text beginning with pStart and going to the end of pEnd.
*/
static void spanSet(ExprSpan *pOut, Token *pStart, Token *pEnd){
pOut->zStart = pStart->z;
pOut->zEnd = &pEnd->z[pEnd->n];
}
/* Construct a new Expr object from a single identifier. Use the
** new Expr to populate pOut. Set the span of pOut to be the identifier
** that created the expression.
*/
static void spanExpr(ExprSpan *pOut, Parse *pParse, int op, Token t){
Expr *p = sqlite3DbMallocRawNN(pParse->db, sizeof(Expr)+t.n+1);
if( p ){
memset(p, 0, sizeof(Expr));
p->op = (u8)op;
p->flags = EP_Leaf;
p->iAgg = -1;
p->u.zToken = (char*)&p[1];
memcpy(p->u.zToken, t.z, t.n);
p->u.zToken[t.n] = 0;
if( sqlite3Isquote(p->u.zToken[0]) ){
if( p->u.zToken[0]=='"' ) p->flags |= EP_DblQuoted;
sqlite3Dequote(p->u.zToken);
}
#if SQLITE_MAX_EXPR_DEPTH>0
p->nHeight = 1;
#endif
}
pOut->pExpr = p;
pOut->zStart = t.z;
pOut->zEnd = &t.z[t.n];
}
#line 941 "parse.y"
/* This routine constructs a binary expression node out of two ExprSpan
** objects and uses the result to populate a new ExprSpan object.
*/
static void spanBinaryExpr(
Parse *pParse, /* The parsing context. Errors accumulate here */
int op, /* The binary operation */
ExprSpan *pLeft, /* The left operand, and output */
ExprSpan *pRight /* The right operand */
){
pLeft->pExpr = sqlite3PExpr(pParse, op, pLeft->pExpr, pRight->pExpr, 0);
pLeft->zEnd = pRight->zEnd;
}
/* If doNot is true, then add a TK_NOT Expr-node wrapper around the
** outside of *ppExpr.
*/
static void exprNot(Parse *pParse, int doNot, ExprSpan *pSpan){
if( doNot ){
pSpan->pExpr = sqlite3PExpr(pParse, TK_NOT, pSpan->pExpr, 0, 0);
}
}
#line 1015 "parse.y"
/* Construct an expression node for a unary postfix operator
*/
static void spanUnaryPostfix(
Parse *pParse, /* Parsing context to record errors */
int op, /* The operator */
ExprSpan *pOperand, /* The operand, and output */
Token *pPostOp /* The operand token for setting the span */
){
pOperand->pExpr = sqlite3PExpr(pParse, op, pOperand->pExpr, 0, 0);
pOperand->zEnd = &pPostOp->z[pPostOp->n];
}
#line 1032 "parse.y"
/* A routine to convert a binary TK_IS or TK_ISNOT expression into a
** unary TK_ISNULL or TK_NOTNULL expression. */
static void binaryToUnaryIfNull(Parse *pParse, Expr *pY, Expr *pA, int op){
sqlite3 *db = pParse->db;
if( pA && pY && pY->op==TK_NULL ){
pA->op = (u8)op;
sqlite3ExprDelete(db, pA->pRight);
pA->pRight = 0;
}
}
#line 1060 "parse.y"
/* Construct an expression node for a unary prefix operator
*/
static void spanUnaryPrefix(
ExprSpan *pOut, /* Write the new expression node here */
Parse *pParse, /* Parsing context to record errors */
int op, /* The operator */
ExprSpan *pOperand, /* The operand */
Token *pPreOp /* The operand token for setting the span */
){
pOut->zStart = pPreOp->z;
pOut->pExpr = sqlite3PExpr(pParse, op, pOperand->pExpr, 0, 0);
pOut->zEnd = pOperand->zEnd;
}
#line 1272 "parse.y"
/* Add a single new term to an ExprList that is used to store a
** list of identifiers. Report an error if the ID list contains
** a COLLATE clause or an ASC or DESC keyword, except ignore the
** error while parsing a legacy schema.
*/
static ExprList *parserAddExprIdListTerm(
Parse *pParse,
ExprList *pPrior,
Token *pIdToken,
int hasCollate,
int sortOrder
){
ExprList *p = sqlite3ExprListAppend(pParse, pPrior, 0);
if( (hasCollate || sortOrder!=SQLITE_SO_UNDEFINED)
&& pParse->db->init.busy==0
){
sqlite3ErrorMsg(pParse, "syntax error after column name \"%.*s\"",
pIdToken->n, pIdToken->z);
}
sqlite3ExprListSetName(pParse, p, pIdToken, 1);
return p;
}
#line 231 "parse.c"
/**************** End of %include directives **********************************/
/* These constants specify the various numeric values for terminal symbols
** in a format understandable to "makeheaders". This section is blank unless
** "lemon" is run with the "-m" command-line option.
***************** Begin makeheaders token definitions *************************/
/**************** End makeheaders token definitions ***************************/
/* The next sections is a series of control #defines.
** various aspects of the generated parser.
** YYCODETYPE is the data type used to store the integer codes
** that represent terminal and non-terminal symbols.
** "unsigned char" is used if there are fewer than
** 256 symbols. Larger types otherwise.
** YYNOCODE is a number of type YYCODETYPE that is not used for
** any terminal or nonterminal symbol.
** YYFALLBACK If defined, this indicates that one or more tokens
** (also known as: "terminal symbols") have fall-back
** values which should be used if the original symbol
** would not parse. This permits keywords to sometimes
** be used as identifiers, for example.
** YYACTIONTYPE is the data type used for "action codes" - numbers
** that indicate what to do in response to the next
** token.
** sqlite3ParserTOKENTYPE is the data type used for minor type for terminal
** symbols. Background: A "minor type" is a semantic
** value associated with a terminal or non-terminal
** symbols. For example, for an "ID" terminal symbol,
** the minor type might be the name of the identifier.
** Each non-terminal can have a different minor type.
** Terminal symbols all have the same minor type, though.
** This macros defines the minor type for terminal
** symbols.
** YYMINORTYPE is the data type used for all minor types.
** This is typically a union of many types, one of
** which is sqlite3ParserTOKENTYPE. The entry in the union
** for terminal symbols is called "yy0".
** YYSTACKDEPTH is the maximum depth of the parser's stack. If
** zero the stack is dynamically sized using realloc()
** sqlite3ParserARG_SDECL A static variable declaration for the %extra_argument
** sqlite3ParserARG_PDECL A parameter declaration for the %extra_argument
** sqlite3ParserARG_STORE Code to store %extra_argument into yypParser
** sqlite3ParserARG_FETCH Code to extract %extra_argument from yypParser
** YYERRORSYMBOL is the code number of the error symbol. If not
** defined, then do no error processing.
** YYNSTATE the combined number of states.
** YYNRULE the number of rules in the grammar
** YY_MAX_SHIFT Maximum value for shift actions
** YY_MIN_SHIFTREDUCE Minimum value for shift-reduce actions
** YY_MAX_SHIFTREDUCE Maximum value for shift-reduce actions
** YY_MIN_REDUCE Maximum value for reduce actions
** YY_ERROR_ACTION The yy_action[] code for syntax error
** YY_ACCEPT_ACTION The yy_action[] code for accept
** YY_NO_ACTION The yy_action[] code for no-op
*/
#ifndef INTERFACE
# define INTERFACE 1
#endif
/************* Begin control #defines *****************************************/
#define YYCODETYPE unsigned char
#define YYNOCODE 252
#define YYACTIONTYPE unsigned short int
#define YYWILDCARD 96
#define sqlite3ParserTOKENTYPE Token
typedef union {
int yyinit;
sqlite3ParserTOKENTYPE yy0;
Expr* yy72;
TriggerStep* yy145;
ExprList* yy148;
SrcList* yy185;
ExprSpan yy190;
int yy194;
Select* yy243;
IdList* yy254;
With* yy285;
struct TrigEvent yy332;
struct LimitVal yy354;
struct {int value; int mask;} yy497;
} YYMINORTYPE;
#ifndef YYSTACKDEPTH
#define YYSTACKDEPTH 100
#endif
#define sqlite3ParserARG_SDECL Parse *pParse;
#define sqlite3ParserARG_PDECL ,Parse *pParse
#define sqlite3ParserARG_FETCH Parse *pParse = yypParser->pParse
#define sqlite3ParserARG_STORE yypParser->pParse = pParse
#define YYFALLBACK 1
#define YYNSTATE 460
#define YYNRULE 332
#define YY_MAX_SHIFT 459
#define YY_MIN_SHIFTREDUCE 672
#define YY_MAX_SHIFTREDUCE 1003
#define YY_MIN_REDUCE 1004
#define YY_MAX_REDUCE 1335
#define YY_ERROR_ACTION 1336
#define YY_ACCEPT_ACTION 1337
#define YY_NO_ACTION 1338
/************* End control #defines *******************************************/
/* Define the yytestcase() macro to be a no-op if is not already defined
** otherwise.
**
** Applications can choose to define yytestcase() in the %include section
** to a macro that can assist in verifying code coverage. For production
** code the yytestcase() macro should be turned off. But it is useful
** for testing.
*/
#ifndef yytestcase
# define yytestcase(X)
#endif
/* Next are the tables used to determine what action to take based on the
** current state and lookahead token. These tables are used to implement
** functions that take a state number and lookahead value and return an
** action integer.
**
** Suppose the action integer is N. Then the action is determined as
** follows
**
** 0 <= N <= YY_MAX_SHIFT Shift N. That is, push the lookahead
** token onto the stack and goto state N.
**
** N between YY_MIN_SHIFTREDUCE Shift to an arbitrary state then
** and YY_MAX_SHIFTREDUCE reduce by rule N-YY_MIN_SHIFTREDUCE.
**
** N between YY_MIN_REDUCE Reduce by rule N-YY_MIN_REDUCE
** and YY_MAX_REDUCE
**
** N == YY_ERROR_ACTION A syntax error has occurred.
**
** N == YY_ACCEPT_ACTION The parser accepts its input.
**
** N == YY_NO_ACTION No such action. Denotes unused
** slots in the yy_action[] table.
**
** The action table is constructed as a single large table named yy_action[].
** Given state S and lookahead X, the action is computed as either:
**
** (A) N = yy_action[ yy_shift_ofst[S] + X ]
** (B) N = yy_default[S]
**
** The (A) formula is preferred. The B formula is used instead if:
** (1) The yy_shift_ofst[S]+X value is out of range, or
** (2) yy_lookahead[yy_shift_ofst[S]+X] is not equal to X, or
** (3) yy_shift_ofst[S] equal YY_SHIFT_USE_DFLT.
** (Implementation note: YY_SHIFT_USE_DFLT is chosen so that
** YY_SHIFT_USE_DFLT+X will be out of range for all possible lookaheads X.
** Hence only tests (1) and (2) need to be evaluated.)
**
** The formulas above are for computing the action when the lookahead is
** a terminal symbol. If the lookahead is a non-terminal (as occurs after
** a reduce action) then the yy_reduce_ofst[] array is used in place of
** the yy_shift_ofst[] array and YY_REDUCE_USE_DFLT is used in place of
** YY_SHIFT_USE_DFLT.
**
** The following are the tables generated in this section:
**
** yy_action[] A single table containing all actions.
** yy_lookahead[] A table containing the lookahead for each entry in
** yy_action. Used to detect hash collisions.
** yy_shift_ofst[] For each state, the offset into yy_action for
** shifting terminals.
** yy_reduce_ofst[] For each state, the offset into yy_action for
** shifting non-terminals after a reduce.
** yy_default[] Default action for each state.
**
*********** Begin parsing tables **********************************************/
#define YY_ACTTAB_COUNT (1570)
static const YYACTIONTYPE yy_action[] = {
/* 0 */ 329, 836, 355, 829, 5, 203, 203, 823, 99, 100,
/* 10 */ 90, 846, 846, 858, 861, 850, 850, 97, 97, 98,
/* 20 */ 98, 98, 98, 305, 96, 96, 96, 96, 95, 95,
/* 30 */ 94, 94, 94, 93, 355, 329, 981, 981, 828, 828,
/* 40 */ 830, 951, 358, 99, 100, 90, 846, 846, 858, 861,
/* 50 */ 850, 850, 97, 97, 98, 98, 98, 98, 342, 96,
/* 60 */ 96, 96, 96, 95, 95, 94, 94, 94, 93, 355,
/* 70 */ 95, 95, 94, 94, 94, 93, 355, 795, 981, 981,
/* 80 */ 329, 94, 94, 94, 93, 355, 796, 75, 99, 100,
/* 90 */ 90, 846, 846, 858, 861, 850, 850, 97, 97, 98,
/* 100 */ 98, 98, 98, 454, 96, 96, 96, 96, 95, 95,
/* 110 */ 94, 94, 94, 93, 355, 1337, 155, 155, 2, 329,
/* 120 */ 279, 146, 132, 52, 52, 93, 355, 99, 100, 90,
/* 130 */ 846, 846, 858, 861, 850, 850, 97, 97, 98, 98,
/* 140 */ 98, 98, 101, 96, 96, 96, 96, 95, 95, 94,
/* 150 */ 94, 94, 93, 355, 962, 962, 329, 272, 432, 417,
/* 160 */ 415, 61, 756, 756, 99, 100, 90, 846, 846, 858,
/* 170 */ 861, 850, 850, 97, 97, 98, 98, 98, 98, 60,
/* 180 */ 96, 96, 96, 96, 95, 95, 94, 94, 94, 93,
/* 190 */ 355, 329, 274, 333, 277, 281, 963, 964, 250, 99,
/* 200 */ 100, 90, 846, 846, 858, 861, 850, 850, 97, 97,
/* 210 */ 98, 98, 98, 98, 305, 96, 96, 96, 96, 95,
/* 220 */ 95, 94, 94, 94, 93, 355, 329, 942, 1330, 702,
/* 230 */ 710, 1330, 242, 416, 99, 100, 90, 846, 846, 858,
/* 240 */ 861, 850, 850, 97, 97, 98, 98, 98, 98, 351,
/* 250 */ 96, 96, 96, 96, 95, 95, 94, 94, 94, 93,
/* 260 */ 355, 329, 942, 1331, 388, 703, 1331, 385, 383, 99,
/* 270 */ 100, 90, 846, 846, 858, 861, 850, 850, 97, 97,
/* 280 */ 98, 98, 98, 98, 705, 96, 96, 96, 96, 95,
/* 290 */ 95, 94, 94, 94, 93, 355, 329, 92, 89, 178,
/* 300 */ 837, 940, 377, 704, 99, 100, 90, 846, 846, 858,
/* 310 */ 861, 850, 850, 97, 97, 98, 98, 98, 98, 379,
/* 320 */ 96, 96, 96, 96, 95, 95, 94, 94, 94, 93,
/* 330 */ 355, 329, 1280, 951, 358, 822, 940, 743, 743, 99,
/* 340 */ 100, 90, 846, 846, 858, 861, 850, 850, 97, 97,
/* 350 */ 98, 98, 98, 98, 230, 96, 96, 96, 96, 95,
/* 360 */ 95, 94, 94, 94, 93, 355, 329, 973, 227, 92,
/* 370 */ 89, 178, 377, 304, 99, 100, 90, 846, 846, 858,
/* 380 */ 861, 850, 850, 97, 97, 98, 98, 98, 98, 925,
/* 390 */ 96, 96, 96, 96, 95, 95, 94, 94, 94, 93,
/* 400 */ 355, 329, 453, 451, 451, 451, 147, 741, 741, 99,
/* 410 */ 100, 90, 846, 846, 858, 861, 850, 850, 97, 97,
/* 420 */ 98, 98, 98, 98, 300, 96, 96, 96, 96, 95,
/* 430 */ 95, 94, 94, 94, 93, 355, 329, 423, 231, 962,
/* 440 */ 962, 158, 25, 426, 99, 100, 90, 846, 846, 858,
/* 450 */ 861, 850, 850, 97, 97, 98, 98, 98, 98, 454,
/* 460 */ 96, 96, 96, 96, 95, 95, 94, 94, 94, 93,
/* 470 */ 355, 447, 224, 224, 424, 962, 962, 966, 329, 52,
/* 480 */ 52, 963, 964, 176, 419, 78, 99, 100, 90, 846,
/* 490 */ 846, 858, 861, 850, 850, 97, 97, 98, 98, 98,
/* 500 */ 98, 383, 96, 96, 96, 96, 95, 95, 94, 94,
/* 510 */ 94, 93, 355, 329, 432, 422, 302, 963, 964, 966,
/* 520 */ 81, 99, 88, 90, 846, 846, 858, 861, 850, 850,
/* 530 */ 97, 97, 98, 98, 98, 98, 721, 96, 96, 96,
/* 540 */ 96, 95, 95, 94, 94, 94, 93, 355, 329, 847,
/* 550 */ 847, 859, 862, 1000, 322, 347, 383, 100, 90, 846,
/* 560 */ 846, 858, 861, 850, 850, 97, 97, 98, 98, 98,
/* 570 */ 98, 454, 96, 96, 96, 96, 95, 95, 94, 94,
/* 580 */ 94, 93, 355, 329, 354, 354, 354, 264, 381, 344,
/* 590 */ 933, 52, 52, 90, 846, 846, 858, 861, 850, 850,
/* 600 */ 97, 97, 98, 98, 98, 98, 365, 96, 96, 96,
/* 610 */ 96, 95, 95, 94, 94, 94, 93, 355, 86, 449,
/* 620 */ 851, 3, 1207, 365, 364, 382, 348, 817, 962, 962,
/* 630 */ 1304, 86, 449, 733, 3, 212, 169, 291, 409, 286,
/* 640 */ 408, 199, 232, 454, 304, 764, 83, 84, 284, 245,
/* 650 */ 266, 369, 253, 85, 356, 356, 92, 89, 178, 83,
/* 660 */ 84, 242, 416, 52, 52, 452, 85, 356, 356, 246,
/* 670 */ 963, 964, 194, 459, 674, 406, 403, 402, 452, 243,
/* 680 */ 221, 114, 438, 780, 365, 454, 401, 272, 751, 224,
/* 690 */ 224, 132, 132, 198, 836, 438, 456, 455, 432, 431,
/* 700 */ 823, 419, 738, 717, 132, 52, 52, 836, 272, 456,
/* 710 */ 455, 738, 194, 823, 367, 406, 403, 402, 454, 1275,
/* 720 */ 1275, 23, 962, 962, 86, 449, 401, 3, 228, 433,
/* 730 */ 899, 828, 828, 830, 831, 19, 203, 724, 52, 52,
/* 740 */ 432, 412, 443, 249, 828, 828, 830, 831, 19, 229,
/* 750 */ 407, 153, 83, 84, 765, 177, 241, 454, 725, 85,
/* 760 */ 356, 356, 120, 157, 963, 964, 58, 981, 413, 359,
/* 770 */ 334, 452, 272, 432, 434, 324, 794, 32, 32, 86,
/* 780 */ 449, 780, 3, 345, 98, 98, 98, 98, 438, 96,
/* 790 */ 96, 96, 96, 95, 95, 94, 94, 94, 93, 355,
/* 800 */ 836, 120, 456, 455, 817, 891, 823, 83, 84, 981,
/* 810 */ 817, 132, 414, 924, 85, 356, 356, 132, 411, 793,
/* 820 */ 962, 962, 92, 89, 178, 921, 452, 266, 374, 265,
/* 830 */ 82, 918, 80, 266, 374, 265, 780, 828, 828, 830,
/* 840 */ 831, 19, 938, 438, 96, 96, 96, 96, 95, 95,
/* 850 */ 94, 94, 94, 93, 355, 836, 74, 456, 455, 962,
/* 860 */ 962, 823, 963, 964, 120, 92, 89, 178, 949, 2,
/* 870 */ 922, 969, 272, 1, 980, 76, 449, 766, 3, 712,
/* 880 */ 905, 905, 391, 962, 962, 761, 923, 375, 744, 782,
/* 890 */ 760, 261, 828, 828, 830, 831, 19, 421, 745, 454,
/* 900 */ 24, 963, 964, 83, 84, 373, 962, 962, 177, 226,
/* 910 */ 85, 356, 356, 889, 319, 318, 317, 215, 315, 10,
/* 920 */ 10, 687, 452, 353, 352, 963, 964, 913, 781, 157,
/* 930 */ 120, 962, 962, 341, 780, 420, 715, 314, 454, 438,
/* 940 */ 454, 325, 454, 795, 103, 200, 175, 454, 963, 964,
/* 950 */ 912, 836, 796, 456, 455, 9, 9, 823, 10, 10,
/* 960 */ 52, 52, 51, 51, 180, 720, 248, 10, 10, 171,
/* 970 */ 170, 167, 343, 963, 964, 247, 988, 706, 706, 454,
/* 980 */ 719, 233, 690, 986, 893, 987, 182, 918, 828, 828,
/* 990 */ 830, 831, 19, 183, 260, 427, 132, 181, 398, 10,
/* 1000 */ 10, 893, 895, 753, 962, 962, 921, 272, 989, 198,
/* 1010 */ 989, 353, 352, 429, 419, 303, 821, 836, 330, 829,
/* 1020 */ 120, 336, 133, 823, 272, 98, 98, 98, 98, 91,
/* 1030 */ 96, 96, 96, 96, 95, 95, 94, 94, 94, 93,
/* 1040 */ 355, 157, 814, 375, 386, 363, 963, 964, 362, 272,
/* 1050 */ 454, 922, 372, 328, 828, 828, 830, 454, 713, 454,
/* 1060 */ 268, 384, 893, 454, 881, 750, 257, 923, 259, 437,
/* 1070 */ 36, 36, 234, 454, 234, 120, 273, 37, 37, 12,
/* 1080 */ 12, 338, 276, 27, 27, 454, 334, 118, 454, 162,
/* 1090 */ 746, 284, 454, 38, 38, 454, 989, 360, 989, 454,
/* 1100 */ 713, 1214, 454, 132, 454, 39, 39, 454, 40, 40,
/* 1110 */ 454, 366, 41, 41, 454, 42, 42, 454, 258, 28,
/* 1120 */ 28, 454, 29, 29, 31, 31, 454, 43, 43, 454,
/* 1130 */ 44, 44, 454, 718, 45, 45, 454, 11, 11, 771,
/* 1140 */ 454, 46, 46, 454, 272, 454, 105, 105, 454, 47,
/* 1150 */ 47, 454, 48, 48, 454, 237, 33, 33, 454, 172,
/* 1160 */ 49, 49, 454, 50, 50, 34, 34, 278, 122, 122,
/* 1170 */ 454, 123, 123, 454, 124, 124, 454, 902, 56, 56,
/* 1180 */ 454, 901, 35, 35, 454, 271, 454, 821, 454, 821,
/* 1190 */ 106, 106, 454, 53, 53, 389, 107, 107, 454, 821,
/* 1200 */ 108, 108, 821, 454, 104, 104, 121, 121, 119, 119,
/* 1210 */ 454, 117, 112, 112, 454, 280, 454, 225, 111, 111,
/* 1220 */ 454, 734, 454, 109, 109, 454, 677, 678, 679, 916,
/* 1230 */ 110, 110, 321, 1002, 55, 55, 57, 57, 696, 335,
/* 1240 */ 54, 54, 26, 26, 700, 30, 30, 321, 941, 197,
/* 1250 */ 196, 195, 339, 285, 340, 450, 335, 749, 693, 440,
/* 1260 */ 444, 448, 120, 72, 390, 223, 175, 349, 761, 937,
/* 1270 */ 20, 290, 323, 760, 819, 376, 378, 202, 202, 202,
/* 1280 */ 267, 399, 289, 74, 208, 21, 700, 723, 722, 888,
/* 1290 */ 120, 120, 120, 120, 120, 758, 282, 832, 77, 74,
/* 1300 */ 730, 731, 789, 787, 884, 202, 1003, 208, 898, 897,
/* 1310 */ 898, 897, 698, 820, 767, 116, 778, 1294, 435, 436,
/* 1320 */ 306, 1003, 394, 307, 827, 701, 695, 684, 159, 293,
/* 1330 */ 683, 888, 685, 956, 295, 218, 297, 7, 320, 832,
/* 1340 */ 173, 252, 263, 368, 256, 915, 380, 717, 299, 439,
/* 1350 */ 312, 168, 959, 997, 135, 404, 994, 288, 886, 885,
/* 1360 */ 205, 932, 930, 59, 337, 62, 144, 156, 102, 430,
/* 1370 */ 809, 72, 130, 251, 137, 370, 371, 397, 185, 160,
/* 1380 */ 387, 189, 67, 393, 139, 140, 141, 779, 142, 148,
/* 1390 */ 816, 806, 255, 900, 254, 270, 219, 154, 190, 917,
/* 1400 */ 880, 395, 410, 275, 326, 191, 737, 736, 686, 735,
/* 1410 */ 346, 728, 192, 327, 715, 425, 6, 71, 350, 79,
/* 1420 */ 775, 292, 204, 776, 709, 774, 294, 296, 301, 773,
/* 1430 */ 287, 708, 866, 298, 707, 971, 757, 213, 428, 442,
/* 1440 */ 238, 727, 446, 73, 239, 240, 692, 22, 957, 457,
/* 1450 */ 214, 216, 217, 458, 681, 680, 675, 125, 115, 126,
/* 1460 */ 673, 235, 357, 166, 127, 244, 179, 361, 308, 309,
/* 1470 */ 310, 311, 896, 113, 815, 331, 894, 136, 128, 332,
/* 1480 */ 747, 138, 262, 911, 143, 184, 145, 63, 129, 64,
/* 1490 */ 914, 65, 66, 186, 187, 910, 8, 13, 188, 903,
/* 1500 */ 202, 991, 269, 149, 392, 150, 689, 161, 396, 289,
/* 1510 */ 193, 283, 151, 134, 68, 400, 405, 14, 15, 726,
/* 1520 */ 69, 236, 835, 834, 864, 755, 131, 16, 70, 759,
/* 1530 */ 4, 201, 174, 418, 220, 222, 788, 152, 868, 783,
/* 1540 */ 77, 17, 74, 18, 879, 865, 863, 920, 210, 919,
/* 1550 */ 207, 206, 946, 163, 441, 211, 947, 164, 209, 165,
/* 1560 */ 445, 867, 833, 699, 87, 1296, 1295, 313, 316, 952,
};
static const YYCODETYPE yy_lookahead[] = {
/* 0 */ 19, 95, 53, 97, 22, 24, 24, 101, 27, 28,
/* 10 */ 29, 30, 31, 32, 33, 34, 35, 36, 37, 38,
/* 20 */ 39, 40, 41, 152, 43, 44, 45, 46, 47, 48,
/* 30 */ 49, 50, 51, 52, 53, 19, 55, 55, 132, 133,
/* 40 */ 134, 1, 2, 27, 28, 29, 30, 31, 32, 33,
/* 50 */ 34, 35, 36, 37, 38, 39, 40, 41, 187, 43,
/* 60 */ 44, 45, 46, 47, 48, 49, 50, 51, 52, 53,
/* 70 */ 47, 48, 49, 50, 51, 52, 53, 61, 97, 97,
/* 80 */ 19, 49, 50, 51, 52, 53, 70, 26, 27, 28,
/* 90 */ 29, 30, 31, 32, 33, 34, 35, 36, 37, 38,
/* 100 */ 39, 40, 41, 152, 43, 44, 45, 46, 47, 48,
/* 110 */ 49, 50, 51, 52, 53, 144, 145, 146, 147, 19,
/* 120 */ 16, 22, 92, 172, 173, 52, 53, 27, 28, 29,
/* 130 */ 30, 31, 32, 33, 34, 35, 36, 37, 38, 39,
/* 140 */ 40, 41, 81, 43, 44, 45, 46, 47, 48, 49,
/* 150 */ 50, 51, 52, 53, 55, 56, 19, 152, 207, 208,
/* 160 */ 115, 24, 117, 118, 27, 28, 29, 30, 31, 32,
/* 170 */ 33, 34, 35, 36, 37, 38, 39, 40, 41, 79,
/* 180 */ 43, 44, 45, 46, 47, 48, 49, 50, 51, 52,
/* 190 */ 53, 19, 88, 157, 90, 23, 97, 98, 193, 27,
/* 200 */ 28, 29, 30, 31, 32, 33, 34, 35, 36, 37,
/* 210 */ 38, 39, 40, 41, 152, 43, 44, 45, 46, 47,
/* 220 */ 48, 49, 50, 51, 52, 53, 19, 22, 23, 172,
/* 230 */ 23, 26, 119, 120, 27, 28, 29, 30, 31, 32,
/* 240 */ 33, 34, 35, 36, 37, 38, 39, 40, 41, 187,
/* 250 */ 43, 44, 45, 46, 47, 48, 49, 50, 51, 52,
/* 260 */ 53, 19, 22, 23, 228, 23, 26, 231, 152, 27,
/* 270 */ 28, 29, 30, 31, 32, 33, 34, 35, 36, 37,
/* 280 */ 38, 39, 40, 41, 172, 43, 44, 45, 46, 47,
/* 290 */ 48, 49, 50, 51, 52, 53, 19, 221, 222, 223,
/* 300 */ 23, 96, 152, 172, 27, 28, 29, 30, 31, 32,
/* 310 */ 33, 34, 35, 36, 37, 38, 39, 40, 41, 152,
/* 320 */ 43, 44, 45, 46, 47, 48, 49, 50, 51, 52,
/* 330 */ 53, 19, 0, 1, 2, 23, 96, 190, 191, 27,
/* 340 */ 28, 29, 30, 31, 32, 33, 34, 35, 36, 37,
/* 350 */ 38, 39, 40, 41, 238, 43, 44, 45, 46, 47,
/* 360 */ 48, 49, 50, 51, 52, 53, 19, 185, 218, 221,
/* 370 */ 222, 223, 152, 152, 27, 28, 29, 30, 31, 32,
/* 380 */ 33, 34, 35, 36, 37, 38, 39, 40, 41, 241,
/* 390 */ 43, 44, 45, 46, 47, 48, 49, 50, 51, 52,
/* 400 */ 53, 19, 152, 168, 169, 170, 22, 190, 191, 27,
/* 410 */ 28, 29, 30, 31, 32, 33, 34, 35, 36, 37,
/* 420 */ 38, 39, 40, 41, 152, 43, 44, 45, 46, 47,
/* 430 */ 48, 49, 50, 51, 52, 53, 19, 19, 218, 55,
/* 440 */ 56, 24, 22, 152, 27, 28, 29, 30, 31, 32,
/* 450 */ 33, 34, 35, 36, 37, 38, 39, 40, 41, 152,
/* 460 */ 43, 44, 45, 46, 47, 48, 49, 50, 51, 52,
/* 470 */ 53, 250, 194, 195, 56, 55, 56, 55, 19, 172,
/* 480 */ 173, 97, 98, 152, 206, 138, 27, 28, 29, 30,
/* 490 */ 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
/* 500 */ 41, 152, 43, 44, 45, 46, 47, 48, 49, 50,
/* 510 */ 51, 52, 53, 19, 207, 208, 152, 97, 98, 97,
/* 520 */ 138, 27, 28, 29, 30, 31, 32, 33, 34, 35,
/* 530 */ 36, 37, 38, 39, 40, 41, 181, 43, 44, 45,
/* 540 */ 46, 47, 48, 49, 50, 51, 52, 53, 19, 30,
/* 550 */ 31, 32, 33, 247, 248, 19, 152, 28, 29, 30,
/* 560 */ 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
/* 570 */ 41, 152, 43, 44, 45, 46, 47, 48, 49, 50,
/* 580 */ 51, 52, 53, 19, 168, 169, 170, 238, 19, 53,
/* 590 */ 152, 172, 173, 29, 30, 31, 32, 33, 34, 35,
/* 600 */ 36, 37, 38, 39, 40, 41, 152, 43, 44, 45,
/* 610 */ 46, 47, 48, 49, 50, 51, 52, 53, 19, 20,
/* 620 */ 101, 22, 23, 169, 170, 56, 207, 85, 55, 56,
/* 630 */ 23, 19, 20, 26, 22, 99, 100, 101, 102, 103,
/* 640 */ 104, 105, 238, 152, 152, 210, 47, 48, 112, 152,
/* 650 */ 108, 109, 110, 54, 55, 56, 221, 222, 223, 47,
/* 660 */ 48, 119, 120, 172, 173, 66, 54, 55, 56, 152,
/* 670 */ 97, 98, 99, 148, 149, 102, 103, 104, 66, 154,
/* 680 */ 23, 156, 83, 26, 230, 152, 113, 152, 163, 194,
/* 690 */ 195, 92, 92, 30, 95, 83, 97, 98, 207, 208,
/* 700 */ 101, 206, 179, 180, 92, 172, 173, 95, 152, 97,
/* 710 */ 98, 188, 99, 101, 219, 102, 103, 104, 152, 119,
/* 720 */ 120, 196, 55, 56, 19, 20, 113, 22, 193, 163,
/* 730 */ 11, 132, 133, 134, 135, 136, 24, 65, 172, 173,
/* 740 */ 207, 208, 250, 152, 132, 133, 134, 135, 136, 193,
/* 750 */ 78, 84, 47, 48, 49, 98, 199, 152, 86, 54,
/* 760 */ 55, 56, 196, 152, 97, 98, 209, 55, 163, 244,
/* 770 */ 107, 66, 152, 207, 208, 164, 175, 172, 173, 19,
/* 780 */ 20, 124, 22, 111, 38, 39, 40, 41, 83, 43,
/* 790 */ 44, 45, 46, 47, 48, 49, 50, 51, 52, 53,
/* 800 */ 95, 196, 97, 98, 85, 152, 101, 47, 48, 97,
/* 810 */ 85, 92, 207, 193, 54, 55, 56, 92, 49, 175,
/* 820 */ 55, 56, 221, 222, 223, 12, 66, 108, 109, 110,
/* 830 */ 137, 163, 139, 108, 109, 110, 26, 132, 133, 134,
/* 840 */ 135, 136, 152, 83, 43, 44, 45, 46, 47, 48,
/* 850 */ 49, 50, 51, 52, 53, 95, 26, 97, 98, 55,
/* 860 */ 56, 101, 97, 98, 196, 221, 222, 223, 146, 147,
/* 870 */ 57, 171, 152, 22, 26, 19, 20, 49, 22, 179,
/* 880 */ 108, 109, 110, 55, 56, 116, 73, 219, 75, 124,
/* 890 */ 121, 152, 132, 133, 134, 135, 136, 163, 85, 152,
/* 900 */ 232, 97, 98, 47, 48, 237, 55, 56, 98, 5,
/* 910 */ 54, 55, 56, 193, 10, 11, 12, 13, 14, 172,
/* 920 */ 173, 17, 66, 47, 48, 97, 98, 152, 124, 152,
/* 930 */ 196, 55, 56, 186, 124, 152, 106, 160, 152, 83,
/* 940 */ 152, 164, 152, 61, 22, 211, 212, 152, 97, 98,
/* 950 */ 152, 95, 70, 97, 98, 172, 173, 101, 172, 173,
/* 960 */ 172, 173, 172, 173, 60, 181, 62, 172, 173, 47,
/* 970 */ 48, 123, 186, 97, 98, 71, 100, 55, 56, 152,
/* 980 */ 181, 186, 21, 107, 152, 109, 82, 163, 132, 133,
/* 990 */ 134, 135, 136, 89, 16, 207, 92, 93, 19, 172,
/* 1000 */ 173, 169, 170, 195, 55, 56, 12, 152, 132, 30,
/* 1010 */ 134, 47, 48, 186, 206, 225, 152, 95, 114, 97,
/* 1020 */ 196, 245, 246, 101, 152, 38, 39, 40, 41, 42,
/* 1030 */ 43, 44, 45, 46, 47, 48, 49, 50, 51, 52,
/* 1040 */ 53, 152, 163, 219, 152, 141, 97, 98, 193, 152,
/* 1050 */ 152, 57, 91, 164, 132, 133, 134, 152, 55, 152,
/* 1060 */ 152, 237, 230, 152, 103, 193, 88, 73, 90, 75,
/* 1070 */ 172, 173, 183, 152, 185, 196, 152, 172, 173, 172,
/* 1080 */ 173, 217, 152, 172, 173, 152, 107, 22, 152, 24,
/* 1090 */ 193, 112, 152, 172, 173, 152, 132, 242, 134, 152,
/* 1100 */ 97, 140, 152, 92, 152, 172, 173, 152, 172, 173,
/* 1110 */ 152, 100, 172, 173, 152, 172, 173, 152, 140, 172,
/* 1120 */ 173, 152, 172, 173, 172, 173, 152, 172, 173, 152,
/* 1130 */ 172, 173, 152, 152, 172, 173, 152, 172, 173, 213,
/* 1140 */ 152, 172, 173, 152, 152, 152, 172, 173, 152, 172,
/* 1150 */ 173, 152, 172, 173, 152, 210, 172, 173, 152, 26,
/* 1160 */ 172, 173, 152, 172, 173, 172, 173, 152, 172, 173,
/* 1170 */ 152, 172, 173, 152, 172, 173, 152, 59, 172, 173,
/* 1180 */ 152, 63, 172, 173, 152, 193, 152, 152, 152, 152,
/* 1190 */ 172, 173, 152, 172, 173, 77, 172, 173, 152, 152,
/* 1200 */ 172, 173, 152, 152, 172, 173, 172, 173, 172, 173,
/* 1210 */ 152, 22, 172, 173, 152, 152, 152, 22, 172, 173,
/* 1220 */ 152, 152, 152, 172, 173, 152, 7, 8, 9, 163,
/* 1230 */ 172, 173, 22, 23, 172, 173, 172, 173, 166, 167,
/* 1240 */ 172, 173, 172, 173, 55, 172, 173, 22, 23, 108,
/* 1250 */ 109, 110, 217, 152, 217, 166, 167, 163, 163, 163,
/* 1260 */ 163, 163, 196, 130, 217, 211, 212, 217, 116, 23,
/* 1270 */ 22, 101, 26, 121, 23, 23, 23, 26, 26, 26,
/* 1280 */ 23, 23, 112, 26, 26, 37, 97, 100, 101, 55,
/* 1290 */ 196, 196, 196, 196, 196, 23, 23, 55, 26, 26,
/* 1300 */ 7, 8, 23, 152, 23, 26, 96, 26, 132, 132,
/* 1310 */ 134, 134, 23, 152, 152, 26, 152, 122, 152, 191,
/* 1320 */ 152, 96, 234, 152, 152, 152, 152, 152, 197, 210,
/* 1330 */ 152, 97, 152, 152, 210, 233, 210, 198, 150, 97,
/* 1340 */ 184, 201, 239, 214, 214, 201, 239, 180, 214, 227,
/* 1350 */ 200, 198, 155, 67, 243, 176, 69, 175, 175, 175,
/* 1360 */ 122, 159, 159, 240, 159, 240, 22, 220, 129, 126,
/* 1370 */ 205, 130, 27, 204, 189, 18, 159, 18, 158, 220,
/* 1380 */ 159, 158, 137, 74, 192, 192, 192, 159, 192, 189,
/* 1390 */ 189, 205, 201, 236, 204, 235, 159, 22, 158, 201,
/* 1400 */ 201, 177, 107, 159, 177, 158, 174, 174, 159, 174,
/* 1410 */ 76, 182, 158, 177, 106, 125, 22, 107, 53, 137,
/* 1420 */ 216, 215, 159, 216, 174, 216, 215, 215, 159, 216,
/* 1430 */ 174, 176, 224, 215, 174, 174, 205, 25, 127, 177,
/* 1440 */ 226, 182, 177, 128, 229, 229, 162, 26, 13, 161,
/* 1450 */ 153, 153, 6, 151, 151, 151, 151, 165, 178, 165,
/* 1460 */ 4, 178, 3, 22, 165, 142, 15, 94, 204, 203,
/* 1470 */ 202, 201, 23, 16, 120, 249, 23, 131, 111, 249,
/* 1480 */ 20, 123, 16, 1, 123, 125, 131, 37, 111, 37,
/* 1490 */ 56, 37, 37, 64, 122, 1, 5, 22, 107, 80,
/* 1500 */ 26, 87, 140, 80, 72, 107, 20, 24, 19, 112,
/* 1510 */ 105, 23, 22, 246, 22, 79, 79, 22, 22, 58,
/* 1520 */ 22, 79, 23, 23, 23, 116, 68, 22, 26, 23,
/* 1530 */ 22, 64, 122, 26, 23, 23, 56, 22, 11, 124,
/* 1540 */ 26, 64, 26, 64, 23, 23, 23, 23, 122, 23,
/* 1550 */ 22, 26, 23, 22, 24, 122, 23, 22, 26, 22,
/* 1560 */ 24, 23, 23, 23, 22, 122, 122, 23, 15, 1,
};
#define YY_SHIFT_USE_DFLT (1570)
#define YY_SHIFT_COUNT (459)
#define YY_SHIFT_MIN (-94)
#define YY_SHIFT_MAX (1568)
static const short yy_shift_ofst[] = {
/* 0 */ 40, 599, 904, 612, 760, 760, 760, 760, 725, -19,
/* 10 */ 16, 16, 100, 760, 760, 760, 760, 760, 760, 760,
/* 20 */ 876, 876, 573, 542, 719, 600, 61, 137, 172, 207,
/* 30 */ 242, 277, 312, 347, 382, 417, 459, 459, 459, 459,
/* 40 */ 459, 459, 459, 459, 459, 459, 459, 459, 459, 459,
/* 50 */ 459, 459, 459, 494, 459, 529, 564, 564, 705, 760,
/* 60 */ 760, 760, 760, 760, 760, 760, 760, 760, 760, 760,
/* 70 */ 760, 760, 760, 760, 760, 760, 760, 760, 760, 760,
/* 80 */ 760, 760, 760, 760, 760, 760, 760, 760, 760, 760,
/* 90 */ 856, 760, 760, 760, 760, 760, 760, 760, 760, 760,
/* 100 */ 760, 760, 760, 760, 987, 746, 746, 746, 746, 746,
/* 110 */ 801, 23, 32, 949, 961, 979, 964, 964, 949, 73,
/* 120 */ 113, -51, 1570, 1570, 1570, 536, 536, 536, 99, 99,
/* 130 */ 813, 813, 667, 205, 240, 949, 949, 949, 949, 949,
/* 140 */ 949, 949, 949, 949, 949, 949, 949, 949, 949, 949,
/* 150 */ 949, 949, 949, 949, 949, 332, 1011, 422, 422, 113,
/* 160 */ 30, 30, 30, 30, 30, 30, 1570, 1570, 1570, 922,
/* 170 */ -94, -94, 384, 613, 828, 420, 765, 804, 851, 949,
/* 180 */ 949, 949, 949, 949, 949, 949, 949, 949, 949, 949,
/* 190 */ 949, 949, 949, 949, 949, 672, 672, 672, 949, 949,
/* 200 */ 657, 949, 949, 949, -18, 949, 949, 994, 949, 949,
/* 210 */ 949, 949, 949, 949, 949, 949, 949, 949, 772, 1118,
/* 220 */ 712, 712, 712, 810, 45, 769, 1219, 1133, 418, 418,
/* 230 */ 569, 1133, 569, 830, 607, 663, 882, 418, 693, 882,
/* 240 */ 882, 848, 1152, 1065, 1286, 1238, 1238, 1287, 1287, 1238,
/* 250 */ 1344, 1239, 1243, 1345, 1239, 1243, 1241, 1357, 1357, 1357,
/* 260 */ 1357, 1238, 1359, 1241, 1344, 1345, 1345, 1241, 1238, 1359,
/* 270 */ 1245, 1309, 1238, 1238, 1359, 1375, 1238, 1359, 1238, 1359,
/* 280 */ 1375, 1295, 1295, 1295, 1334, 1375, 1295, 1308, 1295, 1334,
/* 290 */ 1295, 1295, 1290, 1310, 1290, 1310, 1290, 1310, 1290, 1310,
/* 300 */ 1238, 1394, 1238, 1282, 1375, 1365, 1365, 1375, 1239, 1243,
/* 310 */ 1315, 1311, 1241, 1412, 1421, 1435, 1435, 1446, 1446, 1446,
/* 320 */ 1446, 1570, 1570, 1570, 1570, 1570, 1570, 1570, 1570, 519,
/* 330 */ 978, 1210, 1225, 104, 1141, 1189, 1246, 1248, 1251, 1252,
/* 340 */ 1253, 1257, 1258, 1273, 1003, 1187, 1293, 1170, 1272, 1279,
/* 350 */ 1234, 1281, 1176, 1177, 1289, 1242, 1195, 1456, 1459, 1441,
/* 360 */ 1323, 1451, 1373, 1457, 1449, 1453, 1354, 1346, 1367, 1358,
/* 370 */ 1460, 1360, 1466, 1482, 1361, 1355, 1450, 1452, 1454, 1455,
/* 380 */ 1377, 1434, 1429, 1372, 1494, 1491, 1475, 1391, 1362, 1419,
/* 390 */ 1474, 1423, 1414, 1432, 1398, 1483, 1486, 1489, 1397, 1405,
/* 400 */ 1490, 1436, 1492, 1495, 1488, 1496, 1437, 1461, 1498, 1442,
/* 410 */ 1458, 1499, 1500, 1501, 1502, 1409, 1505, 1506, 1508, 1507,
/* 420 */ 1410, 1511, 1512, 1480, 1467, 1515, 1415, 1514, 1477, 1516,
/* 430 */ 1479, 1521, 1514, 1522, 1523, 1524, 1525, 1526, 1528, 1527,
/* 440 */ 1529, 1531, 1530, 1532, 1533, 1535, 1536, 1532, 1538, 1537,
/* 450 */ 1539, 1540, 1542, 1426, 1433, 1443, 1444, 1544, 1553, 1568,
};
#define YY_REDUCE_USE_DFLT (-130)
#define YY_REDUCE_COUNT (328)
#define YY_REDUCE_MIN (-129)
#define YY_REDUCE_MAX (1305)
static const short yy_reduce_ofst[] = {
/* 0 */ -29, 566, 525, 605, -49, 307, 491, 533, 668, 435,
/* 10 */ 601, 644, 148, 747, 786, 795, 419, 788, 827, 790,
/* 20 */ 454, 832, 889, 495, 824, 734, 76, 76, 76, 76,
/* 30 */ 76, 76, 76, 76, 76, 76, 76, 76, 76, 76,
/* 40 */ 76, 76, 76, 76, 76, 76, 76, 76, 76, 76,
/* 50 */ 76, 76, 76, 76, 76, 76, 76, 76, 783, 898,
/* 60 */ 905, 907, 911, 921, 933, 936, 940, 943, 947, 950,
/* 70 */ 952, 955, 958, 962, 965, 969, 974, 977, 980, 984,
/* 80 */ 988, 991, 993, 996, 999, 1002, 1006, 1010, 1018, 1021,
/* 90 */ 1024, 1028, 1032, 1034, 1036, 1040, 1046, 1051, 1058, 1062,
/* 100 */ 1064, 1068, 1070, 1073, 76, 76, 76, 76, 76, 76,
/* 110 */ 76, 76, 76, 855, 36, 523, 235, 416, 777, 76,
/* 120 */ 278, 76, 76, 76, 76, 700, 700, 700, 150, 220,
/* 130 */ 147, 217, 221, 306, 306, 611, 5, 535, 556, 620,
/* 140 */ 720, 872, 897, 116, 864, 349, 1035, 1037, 404, 1047,
/* 150 */ 992, -129, 1050, 492, 62, 722, 879, 1072, 1089, 808,
/* 160 */ 1066, 1094, 1095, 1096, 1097, 1098, 776, 1054, 557, 57,
/* 170 */ 112, 131, 167, 182, 250, 272, 291, 331, 364, 438,
/* 180 */ 497, 517, 591, 653, 690, 739, 775, 798, 892, 908,
/* 190 */ 924, 930, 1015, 1063, 1069, 355, 784, 799, 981, 1101,
/* 200 */ 926, 1151, 1161, 1162, 945, 1164, 1166, 1128, 1168, 1171,
/* 210 */ 1172, 250, 1173, 1174, 1175, 1178, 1180, 1181, 1088, 1102,
/* 220 */ 1119, 1124, 1126, 926, 1131, 1139, 1188, 1140, 1129, 1130,
/* 230 */ 1103, 1144, 1107, 1179, 1156, 1167, 1182, 1134, 1122, 1183,
/* 240 */ 1184, 1150, 1153, 1197, 1111, 1202, 1203, 1123, 1125, 1205,
/* 250 */ 1147, 1165, 1169, 1185, 1186, 1190, 1191, 1192, 1193, 1194,
/* 260 */ 1196, 1217, 1220, 1198, 1159, 1200, 1201, 1199, 1221, 1223,
/* 270 */ 1157, 1160, 1228, 1237, 1240, 1224, 1244, 1247, 1249, 1254,
/* 280 */ 1227, 1232, 1233, 1235, 1229, 1236, 1250, 1255, 1256, 1259,
/* 290 */ 1260, 1261, 1204, 1206, 1207, 1211, 1209, 1212, 1213, 1218,
/* 300 */ 1263, 1208, 1269, 1214, 1262, 1215, 1216, 1265, 1231, 1264,
/* 310 */ 1266, 1268, 1270, 1284, 1288, 1297, 1298, 1302, 1303, 1304,
/* 320 */ 1305, 1226, 1230, 1267, 1292, 1294, 1280, 1283, 1299,
};
static const YYACTIONTYPE yy_default[] = {
/* 0 */ 1285, 1275, 1275, 1275, 1207, 1207, 1207, 1207, 1275, 1100,
/* 10 */ 1129, 1129, 1259, 1336, 1336, 1336, 1336, 1336, 1336, 1206,
/* 20 */ 1336, 1336, 1336, 1336, 1275, 1104, 1135, 1336, 1336, 1336,
/* 30 */ 1336, 1208, 1209, 1336, 1336, 1336, 1258, 1260, 1145, 1144,
/* 40 */ 1143, 1142, 1241, 1116, 1140, 1133, 1137, 1208, 1202, 1203,
/* 50 */ 1201, 1205, 1209, 1336, 1136, 1171, 1186, 1170, 1336, 1336,
/* 60 */ 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336,
/* 70 */ 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336,
/* 80 */ 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336,
/* 90 */ 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336,
/* 100 */ 1336, 1336, 1336, 1336, 1180, 1185, 1192, 1184, 1181, 1173,
/* 110 */ 1172, 1174, 1175, 1336, 1023, 1071, 1336, 1336, 1336, 1176,
/* 120 */ 1336, 1177, 1189, 1188, 1187, 1266, 1293, 1292, 1336, 1336,
/* 130 */ 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336,
/* 140 */ 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336,
/* 150 */ 1336, 1336, 1336, 1336, 1336, 1285, 1275, 1029, 1029, 1336,
/* 160 */ 1275, 1275, 1275, 1275, 1275, 1275, 1271, 1104, 1095, 1336,
/* 170 */ 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336,
/* 180 */ 1263, 1261, 1336, 1222, 1336, 1336, 1336, 1336, 1336, 1336,
/* 190 */ 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336,
/* 200 */ 1336, 1336, 1336, 1336, 1100, 1336, 1336, 1336, 1336, 1336,
/* 210 */ 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1287, 1336, 1236,
/* 220 */ 1100, 1100, 1100, 1102, 1084, 1094, 1008, 1139, 1118, 1118,
/* 230 */ 1325, 1139, 1325, 1046, 1307, 1043, 1129, 1118, 1204, 1129,
/* 240 */ 1129, 1101, 1094, 1336, 1328, 1109, 1109, 1327, 1327, 1109,
/* 250 */ 1150, 1134, 1123, 1074, 1134, 1123, 1139, 1080, 1080, 1080,
/* 260 */ 1080, 1109, 1020, 1139, 1150, 1074, 1074, 1139, 1109, 1020,
/* 270 */ 1240, 1322, 1109, 1109, 1020, 1215, 1109, 1020, 1109, 1020,
/* 280 */ 1215, 1072, 1072, 1072, 1061, 1215, 1072, 1046, 1072, 1061,
/* 290 */ 1072, 1072, 1122, 1117, 1122, 1117, 1122, 1117, 1122, 1117,
/* 300 */ 1109, 1210, 1109, 1336, 1215, 1219, 1219, 1215, 1134, 1123,
/* 310 */ 1132, 1130, 1139, 1026, 1064, 1290, 1290, 1286, 1286, 1286,
/* 320 */ 1286, 1333, 1333, 1271, 1302, 1302, 1048, 1048, 1302, 1336,
/* 330 */ 1336, 1336, 1336, 1336, 1336, 1297, 1336, 1224, 1336, 1336,
/* 340 */ 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336,
/* 350 */ 1336, 1336, 1336, 1336, 1336, 1336, 1156, 1336, 1004, 1268,
/* 360 */ 1336, 1336, 1267, 1336, 1336, 1336, 1336, 1336, 1336, 1336,
/* 370 */ 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336,
/* 380 */ 1336, 1336, 1336, 1324, 1336, 1336, 1336, 1336, 1336, 1336,
/* 390 */ 1239, 1238, 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336,
/* 400 */ 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1336,
/* 410 */ 1336, 1336, 1336, 1336, 1336, 1086, 1336, 1336, 1336, 1311,
/* 420 */ 1336, 1336, 1336, 1336, 1336, 1336, 1336, 1131, 1336, 1124,
/* 430 */ 1336, 1336, 1315, 1336, 1336, 1336, 1336, 1336, 1336, 1336,
/* 440 */ 1336, 1336, 1336, 1277, 1336, 1336, 1336, 1276, 1336, 1336,
/* 450 */ 1336, 1336, 1336, 1158, 1336, 1157, 1161, 1336, 1014, 1336,
};
/********** End of lemon-generated parsing tables *****************************/
/* The next table maps tokens (terminal symbols) into fallback tokens.
** If a construct like the following:
**
** %fallback ID X Y Z.
**
** appears in the grammar, then ID becomes a fallback token for X, Y,
** and Z. Whenever one of the tokens X, Y, or Z is input to the parser
** but it does not parse, the type of the token is changed to ID and
** the parse is retried before an error is thrown.
**
** This feature can be used, for example, to cause some keywords in a language
** to revert to identifiers if they keyword does not apply in the context where
** it appears.
*/
#ifdef YYFALLBACK
static const YYCODETYPE yyFallback[] = {
0, /* $ => nothing */
0, /* SEMI => nothing */
55, /* EXPLAIN => ID */
55, /* QUERY => ID */
55, /* PLAN => ID */
55, /* BEGIN => ID */
0, /* TRANSACTION => nothing */
55, /* DEFERRED => ID */
55, /* IMMEDIATE => ID */
55, /* EXCLUSIVE => ID */
0, /* COMMIT => nothing */
55, /* END => ID */
55, /* ROLLBACK => ID */
55, /* SAVEPOINT => ID */
55, /* RELEASE => ID */
0, /* TO => nothing */
0, /* TABLE => nothing */
0, /* CREATE => nothing */
55, /* IF => ID */
0, /* NOT => nothing */
0, /* EXISTS => nothing */
55, /* TEMP => ID */
0, /* LP => nothing */
0, /* RP => nothing */
0, /* AS => nothing */
55, /* WITHOUT => ID */
0, /* COMMA => nothing */
0, /* OR => nothing */
0, /* AND => nothing */
0, /* IS => nothing */
55, /* MATCH => ID */
55, /* LIKE_KW => ID */
0, /* BETWEEN => nothing */
0, /* IN => nothing */
0, /* ISNULL => nothing */
0, /* NOTNULL => nothing */
0, /* NE => nothing */
0, /* EQ => nothing */
0, /* GT => nothing */
0, /* LE => nothing */
0, /* LT => nothing */
0, /* GE => nothing */
0, /* ESCAPE => nothing */
0, /* BITAND => nothing */
0, /* BITOR => nothing */
0, /* LSHIFT => nothing */
0, /* RSHIFT => nothing */
0, /* PLUS => nothing */
0, /* MINUS => nothing */
0, /* STAR => nothing */
0, /* SLASH => nothing */
0, /* REM => nothing */
0, /* CONCAT => nothing */
0, /* COLLATE => nothing */
0, /* BITNOT => nothing */
0, /* ID => nothing */
0, /* INDEXED => nothing */
55, /* ABORT => ID */
55, /* ACTION => ID */
55, /* AFTER => ID */
55, /* ANALYZE => ID */
55, /* ASC => ID */
55, /* ATTACH => ID */
55, /* BEFORE => ID */
55, /* BY => ID */
55, /* CASCADE => ID */
55, /* CAST => ID */
55, /* COLUMNKW => ID */
55, /* CONFLICT => ID */
55, /* DATABASE => ID */
55, /* DESC => ID */
55, /* DETACH => ID */
55, /* EACH => ID */
55, /* FAIL => ID */
55, /* FOR => ID */
55, /* IGNORE => ID */
55, /* INITIALLY => ID */
55, /* INSTEAD => ID */
55, /* NO => ID */
55, /* KEY => ID */
55, /* OF => ID */
55, /* OFFSET => ID */
55, /* PRAGMA => ID */
55, /* RAISE => ID */
55, /* RECURSIVE => ID */
55, /* REPLACE => ID */
55, /* RESTRICT => ID */
55, /* ROW => ID */
55, /* TRIGGER => ID */
55, /* VACUUM => ID */
55, /* VIEW => ID */
55, /* VIRTUAL => ID */
55, /* WITH => ID */
55, /* REINDEX => ID */
55, /* RENAME => ID */
55, /* CTIME_KW => ID */
};
#endif /* YYFALLBACK */
/* The following structure represents a single element of the
** parser's stack. Information stored includes:
**
** + The state number for the parser at this level of the stack.
**
** + The value of the token stored at this level of the stack.
** (In other words, the "major" token.)
**
** + The semantic value stored at this level of the stack. This is
** the information used by the action routines in the grammar.
** It is sometimes called the "minor" token.
**
** After the "shift" half of a SHIFTREDUCE action, the stateno field
** actually contains the reduce action for the second half of the
** SHIFTREDUCE.
*/
struct yyStackEntry {
YYACTIONTYPE stateno; /* The state-number, or reduce action in SHIFTREDUCE */
YYCODETYPE major; /* The major token value. This is the code
** number for the token at this stack level */
YYMINORTYPE minor; /* The user-supplied minor token value. This
** is the value of the token */
};
typedef struct yyStackEntry yyStackEntry;
/* The state of the parser is completely contained in an instance of
** the following structure */