1 : /* Driver template for the LEMON parser generator.
2 : ** The author disclaims copyright to this source code.
3 : */
4 : /* First off, code is include which follows the "include" declaration
5 : ** in the input file. */
6 : #include <stdio.h>
7 : #line 56 "ext/pdo_sqlite/sqlite/src/parse.y"
8 :
9 : #include "sqliteInt.h"
10 : #include "parse.h"
11 :
12 : /*
13 : ** An instance of this structure holds information about the
14 : ** LIMIT clause of a SELECT statement.
15 : */
16 : struct LimitVal {
17 : Expr *pLimit; /* The LIMIT expression. NULL if there is no limit */
18 : Expr *pOffset; /* The OFFSET expression. NULL if there is none */
19 : };
20 :
21 : /*
22 : ** An instance of this structure is used to store the LIKE,
23 : ** GLOB, NOT LIKE, and NOT GLOB operators.
24 : */
25 : struct LikeOp {
26 : Token eOperator; /* "like" or "glob" or "regexp" */
27 : int not; /* True if the NOT keyword is present */
28 : };
29 :
30 : /*
31 : ** An instance of the following structure describes the event of a
32 : ** TRIGGER. "a" is the event type, one of TK_UPDATE, TK_INSERT,
33 : ** TK_DELETE, or TK_INSTEAD. If the event is of the form
34 : **
35 : ** UPDATE ON (a,b,c)
36 : **
37 : ** Then the "b" IdList records the list "a,b,c".
38 : */
39 : struct TrigEvent { int a; IdList * b; };
40 :
41 : /*
42 : ** An instance of this structure holds the ATTACH key and the key type.
43 : */
44 : struct AttachKey { int type; Token key; };
45 :
46 : #line 48 "ext/pdo_sqlite/sqlite/src/parse.c"
47 : /* Next is all token values, in a form suitable for use by makeheaders.
48 : ** This section will be null unless lemon is run with the -m switch.
49 : */
50 : /*
51 : ** These constants (all generated automatically by the parser generator)
52 : ** specify the various kinds of tokens (terminals) that the parser
53 : ** understands.
54 : **
55 : ** Each symbol here is a terminal symbol in the grammar.
56 : */
57 : /* Make sure the INTERFACE macro is defined.
58 : */
59 : #ifndef INTERFACE
60 : # define INTERFACE 1
61 : #endif
62 : /* The next thing included is series of defines which control
63 : ** various aspects of the generated parser.
64 : ** YYCODETYPE is the data type used for storing terminal
65 : ** and nonterminal numbers. "unsigned char" is
66 : ** used if there are fewer than 250 terminals
67 : ** and nonterminals. "int" is used otherwise.
68 : ** YYNOCODE is a number of type YYCODETYPE which corresponds
69 : ** to no legal terminal or nonterminal number. This
70 : ** number is used to fill in empty slots of the hash
71 : ** table.
72 : ** YYFALLBACK If defined, this indicates that one or more tokens
73 : ** have fall-back values which should be used if the
74 : ** original value of the token will not parse.
75 : ** YYACTIONTYPE is the data type used for storing terminal
76 : ** and nonterminal numbers. "unsigned char" is
77 : ** used if there are fewer than 250 rules and
78 : ** states combined. "int" is used otherwise.
79 : ** sqlite3ParserTOKENTYPE is the data type used for minor tokens given
80 : ** directly to the parser from the tokenizer.
81 : ** YYMINORTYPE is the data type used for all minor tokens.
82 : ** This is typically a union of many types, one of
83 : ** which is sqlite3ParserTOKENTYPE. The entry in the union
84 : ** for base tokens is called "yy0".
85 : ** YYSTACKDEPTH is the maximum depth of the parser's stack. If
86 : ** zero the stack is dynamically sized using realloc()
87 : ** sqlite3ParserARG_SDECL A static variable declaration for the %extra_argument
88 : ** sqlite3ParserARG_PDECL A parameter declaration for the %extra_argument
89 : ** sqlite3ParserARG_STORE Code to store %extra_argument into yypParser
90 : ** sqlite3ParserARG_FETCH Code to extract %extra_argument from yypParser
91 : ** YYNSTATE the combined number of states.
92 : ** YYNRULE the number of rules in the grammar
93 : ** YYERRORSYMBOL is the code number of the error symbol. If not
94 : ** defined, then do no error processing.
95 : */
96 : #define YYCODETYPE unsigned char
97 : #define YYNOCODE 248
98 : #define YYACTIONTYPE unsigned short int
99 : #define YYWILDCARD 59
100 : #define sqlite3ParserTOKENTYPE Token
101 : typedef union {
102 : sqlite3ParserTOKENTYPE yy0;
103 : int yy46;
104 : struct LikeOp yy72;
105 : Expr* yy172;
106 : ExprList* yy174;
107 : Select* yy219;
108 : struct LimitVal yy234;
109 : TriggerStep* yy243;
110 : struct TrigEvent yy370;
111 : SrcList* yy373;
112 : Expr * yy386;
113 : struct {int value; int mask;} yy405;
114 : Token yy410;
115 : IdList* yy432;
116 : int yy495;
117 : } YYMINORTYPE;
118 : #ifndef YYSTACKDEPTH
119 : #define YYSTACKDEPTH 100
120 : #endif
121 : #define sqlite3ParserARG_SDECL Parse *pParse;
122 : #define sqlite3ParserARG_PDECL ,Parse *pParse
123 : #define sqlite3ParserARG_FETCH Parse *pParse = yypParser->pParse
124 : #define sqlite3ParserARG_STORE yypParser->pParse = pParse
125 : #define YYNSTATE 586
126 : #define YYNRULE 311
127 : #define YYERRORSYMBOL 138
128 : #define YYERRSYMDT yy495
129 : #define YYFALLBACK 1
130 : #define YY_NO_ACTION (YYNSTATE+YYNRULE+2)
131 : #define YY_ACCEPT_ACTION (YYNSTATE+YYNRULE+1)
132 : #define YY_ERROR_ACTION (YYNSTATE+YYNRULE)
133 :
134 : /* Next are that tables used to determine what action to take based on the
135 : ** current state and lookahead token. These tables are used to implement
136 : ** functions that take a state number and lookahead value and return an
137 : ** action integer.
138 : **
139 : ** Suppose the action integer is N. Then the action is determined as
140 : ** follows
141 : **
142 : ** 0 <= N < YYNSTATE Shift N. That is, push the lookahead
143 : ** token onto the stack and goto state N.
144 : **
145 : ** YYNSTATE <= N < YYNSTATE+YYNRULE Reduce by rule N-YYNSTATE.
146 : **
147 : ** N == YYNSTATE+YYNRULE A syntax error has occurred.
148 : **
149 : ** N == YYNSTATE+YYNRULE+1 The parser accepts its input.
150 : **
151 : ** N == YYNSTATE+YYNRULE+2 No such action. Denotes unused
152 : ** slots in the yy_action[] table.
153 : **
154 : ** The action table is constructed as a single large table named yy_action[].
155 : ** Given state S and lookahead X, the action is computed as
156 : **
157 : ** yy_action[ yy_shift_ofst[S] + X ]
158 : **
159 : ** If the index value yy_shift_ofst[S]+X is out of range or if the value
160 : ** yy_lookahead[yy_shift_ofst[S]+X] is not equal to X or if yy_shift_ofst[S]
161 : ** is equal to YY_SHIFT_USE_DFLT, it means that the action is not in the table
162 : ** and that yy_default[S] should be used instead.
163 : **
164 : ** The formula above is for computing the action when the lookahead is
165 : ** a terminal symbol. If the lookahead is a non-terminal (as occurs after
166 : ** a reduce action) then the yy_reduce_ofst[] array is used in place of
167 : ** the yy_shift_ofst[] array and YY_REDUCE_USE_DFLT is used in place of
168 : ** YY_SHIFT_USE_DFLT.
169 : **
170 : ** The following are the tables generated in this section:
171 : **
172 : ** yy_action[] A single table containing all actions.
173 : ** yy_lookahead[] A table containing the lookahead for each entry in
174 : ** yy_action. Used to detect hash collisions.
175 : ** yy_shift_ofst[] For each state, the offset into yy_action for
176 : ** shifting terminals.
177 : ** yy_reduce_ofst[] For each state, the offset into yy_action for
178 : ** shifting non-terminals after a reduce.
179 : ** yy_default[] Default action for each state.
180 : */
181 : static const YYACTIONTYPE yy_action[] = {
182 : /* 0 */ 289, 898, 121, 585, 405, 169, 2, 435, 61, 61,
183 : /* 10 */ 61, 61, 517, 63, 63, 63, 63, 64, 64, 65,
184 : /* 20 */ 65, 65, 66, 230, 387, 384, 420, 426, 68, 63,
185 : /* 30 */ 63, 63, 63, 64, 64, 65, 65, 65, 66, 230,
186 : /* 40 */ 443, 208, 392, 447, 60, 59, 294, 430, 431, 427,
187 : /* 50 */ 427, 62, 62, 61, 61, 61, 61, 205, 63, 63,
188 : /* 60 */ 63, 63, 64, 64, 65, 65, 65, 66, 230, 289,
189 : /* 70 */ 368, 316, 435, 487, 205, 80, 67, 415, 69, 151,
190 : /* 80 */ 63, 63, 63, 63, 64, 64, 65, 65, 65, 66,
191 : /* 90 */ 230, 515, 162, 410, 35, 420, 426, 443, 571, 58,
192 : /* 100 */ 64, 64, 65, 65, 65, 66, 230, 393, 394, 417,
193 : /* 110 */ 417, 417, 289, 60, 59, 294, 430, 431, 427, 427,
194 : /* 120 */ 62, 62, 61, 61, 61, 61, 302, 63, 63, 63,
195 : /* 130 */ 63, 64, 64, 65, 65, 65, 66, 230, 420, 426,
196 : /* 140 */ 92, 65, 65, 65, 66, 230, 392, 456, 472, 67,
197 : /* 150 */ 56, 69, 151, 169, 406, 435, 60, 59, 294, 430,
198 : /* 160 */ 431, 427, 427, 62, 62, 61, 61, 61, 61, 247,
199 : /* 170 */ 63, 63, 63, 63, 64, 64, 65, 65, 65, 66,
200 : /* 180 */ 230, 289, 569, 522, 292, 620, 111, 478, 515, 447,
201 : /* 190 */ 230, 316, 403, 21, 67, 460, 69, 151, 66, 230,
202 : /* 200 */ 568, 443, 208, 67, 224, 69, 151, 420, 426, 146,
203 : /* 210 */ 147, 393, 394, 410, 41, 386, 148, 531, 2, 487,
204 : /* 220 */ 435, 566, 232, 415, 289, 60, 59, 294, 430, 431,
205 : /* 230 */ 427, 427, 62, 62, 61, 61, 61, 61, 316, 63,
206 : /* 240 */ 63, 63, 63, 64, 64, 65, 65, 65, 66, 230,
207 : /* 250 */ 420, 426, 486, 330, 211, 417, 417, 417, 359, 270,
208 : /* 260 */ 410, 41, 378, 207, 362, 542, 245, 289, 60, 59,
209 : /* 270 */ 294, 430, 431, 427, 427, 62, 62, 61, 61, 61,
210 : /* 280 */ 61, 392, 63, 63, 63, 63, 64, 64, 65, 65,
211 : /* 290 */ 65, 66, 230, 420, 426, 260, 299, 273, 522, 271,
212 : /* 300 */ 522, 210, 370, 319, 223, 433, 433, 532, 21, 576,
213 : /* 310 */ 21, 60, 59, 294, 430, 431, 427, 427, 62, 62,
214 : /* 320 */ 61, 61, 61, 61, 191, 63, 63, 63, 63, 64,
215 : /* 330 */ 64, 65, 65, 65, 66, 230, 261, 316, 239, 76,
216 : /* 340 */ 289, 544, 299, 149, 482, 150, 393, 394, 178, 240,
217 : /* 350 */ 569, 341, 344, 345, 404, 520, 445, 322, 165, 410,
218 : /* 360 */ 28, 540, 346, 517, 248, 539, 420, 426, 568, 567,
219 : /* 370 */ 161, 115, 238, 339, 243, 340, 173, 358, 272, 411,
220 : /* 380 */ 821, 488, 79, 249, 60, 59, 294, 430, 431, 427,
221 : /* 390 */ 427, 62, 62, 61, 61, 61, 61, 530, 63, 63,
222 : /* 400 */ 63, 63, 64, 64, 65, 65, 65, 66, 230, 289,
223 : /* 410 */ 248, 178, 465, 485, 341, 344, 345, 115, 238, 339,
224 : /* 420 */ 243, 340, 173, 82, 316, 346, 316, 491, 492, 249,
225 : /* 430 */ 565, 207, 152, 523, 489, 420, 426, 178, 529, 503,
226 : /* 440 */ 341, 344, 345, 407, 472, 528, 410, 35, 410, 35,
227 : /* 450 */ 171, 346, 198, 60, 59, 294, 430, 431, 427, 427,
228 : /* 460 */ 62, 62, 61, 61, 61, 61, 411, 63, 63, 63,
229 : /* 470 */ 63, 64, 64, 65, 65, 65, 66, 230, 289, 548,
230 : /* 480 */ 579, 288, 502, 234, 411, 316, 411, 316, 296, 283,
231 : /* 490 */ 298, 316, 445, 521, 165, 476, 172, 157, 421, 422,
232 : /* 500 */ 457, 335, 457, 144, 420, 426, 366, 410, 35, 410,
233 : /* 510 */ 36, 435, 1, 410, 49, 327, 392, 547, 193, 424,
234 : /* 520 */ 425, 156, 60, 59, 294, 430, 431, 427, 427, 62,
235 : /* 530 */ 62, 61, 61, 61, 61, 333, 63, 63, 63, 63,
236 : /* 540 */ 64, 64, 65, 65, 65, 66, 230, 289, 423, 332,
237 : /* 550 */ 452, 252, 411, 295, 438, 439, 297, 316, 349, 307,
238 : /* 560 */ 231, 457, 453, 321, 438, 439, 392, 369, 266, 265,
239 : /* 570 */ 189, 217, 392, 420, 426, 454, 435, 493, 205, 410,
240 : /* 580 */ 49, 393, 394, 583, 889, 174, 889, 494, 545, 492,
241 : /* 590 */ 392, 60, 59, 294, 430, 431, 427, 427, 62, 62,
242 : /* 600 */ 61, 61, 61, 61, 411, 63, 63, 63, 63, 64,
243 : /* 610 */ 64, 65, 65, 65, 66, 230, 289, 207, 586, 387,
244 : /* 620 */ 384, 91, 10, 580, 336, 308, 392, 207, 367, 480,
245 : /* 630 */ 316, 393, 394, 583, 888, 219, 888, 393, 394, 476,
246 : /* 640 */ 291, 233, 420, 426, 481, 249, 410, 3, 434, 260,
247 : /* 650 */ 317, 363, 410, 29, 448, 393, 394, 468, 260, 289,
248 : /* 660 */ 60, 59, 294, 430, 431, 427, 427, 62, 62, 61,
249 : /* 670 */ 61, 61, 61, 580, 63, 63, 63, 63, 64, 64,
250 : /* 680 */ 65, 65, 65, 66, 230, 420, 426, 391, 312, 388,
251 : /* 690 */ 555, 393, 394, 75, 204, 77, 395, 396, 397, 557,
252 : /* 700 */ 357, 197, 289, 60, 59, 294, 430, 431, 427, 427,
253 : /* 710 */ 62, 62, 61, 61, 61, 61, 316, 63, 63, 63,
254 : /* 720 */ 63, 64, 64, 65, 65, 65, 66, 230, 420, 426,
255 : /* 730 */ 319, 116, 433, 433, 319, 411, 433, 433, 410, 24,
256 : /* 740 */ 319, 515, 433, 433, 515, 289, 60, 70, 294, 430,
257 : /* 750 */ 431, 427, 427, 62, 62, 61, 61, 61, 61, 375,
258 : /* 760 */ 63, 63, 63, 63, 64, 64, 65, 65, 65, 66,
259 : /* 770 */ 230, 420, 426, 538, 356, 538, 216, 260, 472, 303,
260 : /* 780 */ 175, 176, 177, 254, 476, 515, 260, 383, 289, 5,
261 : /* 790 */ 59, 294, 430, 431, 427, 427, 62, 62, 61, 61,
262 : /* 800 */ 61, 61, 316, 63, 63, 63, 63, 64, 64, 65,
263 : /* 810 */ 65, 65, 66, 230, 420, 426, 392, 236, 380, 247,
264 : /* 820 */ 304, 258, 247, 256, 410, 33, 260, 558, 125, 467,
265 : /* 830 */ 515, 416, 168, 157, 294, 430, 431, 427, 427, 62,
266 : /* 840 */ 62, 61, 61, 61, 61, 306, 63, 63, 63, 63,
267 : /* 850 */ 64, 64, 65, 65, 65, 66, 230, 72, 323, 452,
268 : /* 860 */ 4, 153, 22, 247, 293, 305, 435, 559, 316, 382,
269 : /* 870 */ 316, 453, 320, 72, 323, 316, 4, 366, 316, 180,
270 : /* 880 */ 293, 393, 394, 20, 454, 141, 326, 316, 320, 325,
271 : /* 890 */ 410, 53, 410, 52, 316, 411, 155, 410, 96, 447,
272 : /* 900 */ 410, 94, 316, 500, 316, 325, 328, 469, 247, 410,
273 : /* 910 */ 99, 444, 260, 411, 318, 447, 410, 100, 316, 74,
274 : /* 920 */ 73, 467, 183, 260, 410, 110, 410, 112, 72, 314,
275 : /* 930 */ 315, 435, 337, 415, 458, 74, 73, 479, 316, 377,
276 : /* 940 */ 410, 17, 218, 19, 72, 314, 315, 72, 323, 415,
277 : /* 950 */ 4, 205, 316, 274, 293, 316, 411, 466, 205, 409,
278 : /* 960 */ 410, 97, 320, 408, 374, 417, 417, 417, 418, 419,
279 : /* 970 */ 12, 376, 316, 206, 410, 34, 174, 410, 95, 325,
280 : /* 980 */ 55, 417, 417, 417, 418, 419, 12, 310, 120, 447,
281 : /* 990 */ 428, 159, 9, 260, 410, 25, 220, 221, 222, 102,
282 : /* 1000 */ 441, 441, 316, 471, 409, 316, 475, 316, 408, 74,
283 : /* 1010 */ 73, 436, 202, 23, 278, 455, 244, 13, 72, 314,
284 : /* 1020 */ 315, 279, 316, 415, 410, 54, 316, 410, 113, 410,
285 : /* 1030 */ 114, 291, 581, 200, 276, 547, 462, 497, 498, 199,
286 : /* 1040 */ 316, 504, 201, 463, 410, 26, 316, 524, 410, 37,
287 : /* 1050 */ 316, 474, 316, 170, 253, 417, 417, 417, 418, 419,
288 : /* 1060 */ 12, 505, 410, 38, 510, 483, 316, 13, 410, 27,
289 : /* 1070 */ 508, 582, 410, 39, 410, 40, 316, 255, 507, 506,
290 : /* 1080 */ 512, 316, 125, 316, 511, 373, 275, 265, 410, 42,
291 : /* 1090 */ 509, 290, 316, 251, 316, 125, 205, 257, 410, 43,
292 : /* 1100 */ 316, 259, 316, 410, 44, 410, 30, 348, 316, 125,
293 : /* 1110 */ 316, 353, 186, 316, 410, 31, 410, 45, 316, 543,
294 : /* 1120 */ 379, 125, 410, 46, 410, 47, 316, 551, 264, 170,
295 : /* 1130 */ 410, 48, 410, 32, 401, 410, 11, 552, 440, 89,
296 : /* 1140 */ 410, 50, 301, 562, 578, 89, 287, 361, 410, 51,
297 : /* 1150 */ 364, 365, 267, 268, 269, 554, 143, 564, 277, 324,
298 : /* 1160 */ 280, 281, 575, 225, 442, 461, 464, 503, 241, 513,
299 : /* 1170 */ 516, 550, 343, 160, 561, 390, 8, 313, 398, 399,
300 : /* 1180 */ 400, 412, 82, 226, 331, 329, 81, 406, 57, 78,
301 : /* 1190 */ 209, 167, 83, 459, 122, 414, 227, 334, 228, 338,
302 : /* 1200 */ 300, 500, 103, 496, 246, 519, 514, 490, 495, 242,
303 : /* 1210 */ 214, 518, 499, 229, 501, 413, 350, 533, 284, 525,
304 : /* 1220 */ 526, 527, 235, 181, 473, 237, 285, 477, 182, 354,
305 : /* 1230 */ 352, 184, 86, 185, 118, 535, 187, 546, 360, 190,
306 : /* 1240 */ 129, 553, 139, 371, 372, 130, 215, 309, 560, 131,
307 : /* 1250 */ 132, 133, 572, 577, 135, 573, 98, 574, 389, 262,
308 : /* 1260 */ 402, 621, 536, 213, 101, 622, 432, 163, 164, 429,
309 : /* 1270 */ 138, 71, 449, 437, 446, 140, 470, 154, 6, 450,
310 : /* 1280 */ 7, 158, 166, 451, 14, 123, 13, 124, 484, 212,
311 : /* 1290 */ 84, 342, 104, 105, 90, 250, 85, 117, 106, 347,
312 : /* 1300 */ 179, 240, 351, 142, 534, 126, 18, 170, 93, 263,
313 : /* 1310 */ 188, 107, 355, 286, 109, 127, 549, 541, 128, 119,
314 : /* 1320 */ 537, 192, 15, 194, 195, 136, 196, 134, 556, 563,
315 : /* 1330 */ 311, 137, 16, 108, 570, 203, 145, 385, 381, 282,
316 : /* 1340 */ 584, 899, 899, 899, 899, 899, 87, 899, 88,
317 : };
318 : static const YYCODETYPE yy_lookahead[] = {
319 : /* 0 */ 16, 139, 140, 141, 168, 21, 144, 23, 69, 70,
320 : /* 10 */ 71, 72, 176, 74, 75, 76, 77, 78, 79, 80,
321 : /* 20 */ 81, 82, 83, 84, 1, 2, 42, 43, 73, 74,
322 : /* 30 */ 75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
323 : /* 40 */ 78, 79, 23, 58, 60, 61, 62, 63, 64, 65,
324 : /* 50 */ 66, 67, 68, 69, 70, 71, 72, 110, 74, 75,
325 : /* 60 */ 76, 77, 78, 79, 80, 81, 82, 83, 84, 16,
326 : /* 70 */ 123, 147, 88, 88, 110, 22, 216, 92, 218, 219,
327 : /* 80 */ 74, 75, 76, 77, 78, 79, 80, 81, 82, 83,
328 : /* 90 */ 84, 147, 19, 169, 170, 42, 43, 78, 238, 46,
329 : /* 100 */ 78, 79, 80, 81, 82, 83, 84, 88, 89, 124,
330 : /* 110 */ 125, 126, 16, 60, 61, 62, 63, 64, 65, 66,
331 : /* 120 */ 67, 68, 69, 70, 71, 72, 182, 74, 75, 76,
332 : /* 130 */ 77, 78, 79, 80, 81, 82, 83, 84, 42, 43,
333 : /* 140 */ 44, 80, 81, 82, 83, 84, 23, 223, 161, 216,
334 : /* 150 */ 19, 218, 219, 21, 23, 23, 60, 61, 62, 63,
335 : /* 160 */ 64, 65, 66, 67, 68, 69, 70, 71, 72, 225,
336 : /* 170 */ 74, 75, 76, 77, 78, 79, 80, 81, 82, 83,
337 : /* 180 */ 84, 16, 147, 147, 150, 112, 21, 200, 147, 58,
338 : /* 190 */ 84, 147, 156, 157, 216, 217, 218, 219, 83, 84,
339 : /* 200 */ 165, 78, 79, 216, 190, 218, 219, 42, 43, 78,
340 : /* 210 */ 79, 88, 89, 169, 170, 141, 180, 181, 144, 88,
341 : /* 220 */ 88, 98, 147, 92, 16, 60, 61, 62, 63, 64,
342 : /* 230 */ 65, 66, 67, 68, 69, 70, 71, 72, 147, 74,
343 : /* 240 */ 75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
344 : /* 250 */ 42, 43, 169, 209, 210, 124, 125, 126, 224, 14,
345 : /* 260 */ 169, 170, 227, 228, 230, 18, 225, 16, 60, 61,
346 : /* 270 */ 62, 63, 64, 65, 66, 67, 68, 69, 70, 71,
347 : /* 280 */ 72, 23, 74, 75, 76, 77, 78, 79, 80, 81,
348 : /* 290 */ 82, 83, 84, 42, 43, 147, 16, 52, 147, 54,
349 : /* 300 */ 147, 210, 55, 106, 153, 108, 109, 156, 157, 156,
350 : /* 310 */ 157, 60, 61, 62, 63, 64, 65, 66, 67, 68,
351 : /* 320 */ 69, 70, 71, 72, 22, 74, 75, 76, 77, 78,
352 : /* 330 */ 79, 80, 81, 82, 83, 84, 188, 147, 92, 131,
353 : /* 340 */ 16, 94, 16, 22, 20, 155, 88, 89, 90, 103,
354 : /* 350 */ 147, 93, 94, 95, 167, 168, 161, 162, 163, 169,
355 : /* 360 */ 170, 25, 104, 176, 84, 29, 42, 43, 165, 166,
356 : /* 370 */ 90, 91, 92, 93, 94, 95, 96, 41, 133, 189,
357 : /* 380 */ 133, 169, 131, 103, 60, 61, 62, 63, 64, 65,
358 : /* 390 */ 66, 67, 68, 69, 70, 71, 72, 181, 74, 75,
359 : /* 400 */ 76, 77, 78, 79, 80, 81, 82, 83, 84, 16,
360 : /* 410 */ 84, 90, 22, 20, 93, 94, 95, 91, 92, 93,
361 : /* 420 */ 94, 95, 96, 121, 147, 104, 147, 185, 186, 103,
362 : /* 430 */ 227, 228, 155, 181, 160, 42, 43, 90, 176, 177,
363 : /* 440 */ 93, 94, 95, 169, 161, 183, 169, 170, 169, 170,
364 : /* 450 */ 155, 104, 155, 60, 61, 62, 63, 64, 65, 66,
365 : /* 460 */ 67, 68, 69, 70, 71, 72, 189, 74, 75, 76,
366 : /* 470 */ 77, 78, 79, 80, 81, 82, 83, 84, 16, 11,
367 : /* 480 */ 244, 245, 20, 200, 189, 147, 189, 147, 211, 158,
368 : /* 490 */ 211, 147, 161, 162, 163, 147, 201, 202, 42, 43,
369 : /* 500 */ 223, 206, 223, 113, 42, 43, 147, 169, 170, 169,
370 : /* 510 */ 170, 23, 19, 169, 170, 186, 23, 49, 155, 63,
371 : /* 520 */ 64, 147, 60, 61, 62, 63, 64, 65, 66, 67,
372 : /* 530 */ 68, 69, 70, 71, 72, 147, 74, 75, 76, 77,
373 : /* 540 */ 78, 79, 80, 81, 82, 83, 84, 16, 92, 211,
374 : /* 550 */ 12, 20, 189, 164, 165, 166, 208, 147, 16, 215,
375 : /* 560 */ 220, 223, 24, 164, 165, 166, 23, 99, 100, 101,
376 : /* 570 */ 155, 212, 23, 42, 43, 37, 88, 39, 110, 169,
377 : /* 580 */ 170, 88, 89, 19, 20, 43, 22, 49, 185, 186,
378 : /* 590 */ 23, 60, 61, 62, 63, 64, 65, 66, 67, 68,
379 : /* 600 */ 69, 70, 71, 72, 189, 74, 75, 76, 77, 78,
380 : /* 610 */ 79, 80, 81, 82, 83, 84, 16, 228, 0, 1,
381 : /* 620 */ 2, 21, 19, 59, 147, 215, 23, 228, 213, 80,
382 : /* 630 */ 147, 88, 89, 19, 20, 145, 22, 88, 89, 147,
383 : /* 640 */ 98, 147, 42, 43, 20, 103, 169, 170, 20, 147,
384 : /* 650 */ 147, 236, 169, 170, 20, 88, 89, 114, 147, 16,
385 : /* 660 */ 60, 61, 62, 63, 64, 65, 66, 67, 68, 69,
386 : /* 670 */ 70, 71, 72, 59, 74, 75, 76, 77, 78, 79,
387 : /* 680 */ 80, 81, 82, 83, 84, 42, 43, 147, 142, 143,
388 : /* 690 */ 188, 88, 89, 130, 148, 132, 7, 8, 9, 188,
389 : /* 700 */ 208, 155, 16, 60, 61, 62, 63, 64, 65, 66,
390 : /* 710 */ 67, 68, 69, 70, 71, 72, 147, 74, 75, 76,
391 : /* 720 */ 77, 78, 79, 80, 81, 82, 83, 84, 42, 43,
392 : /* 730 */ 106, 147, 108, 109, 106, 189, 108, 109, 169, 170,
393 : /* 740 */ 106, 147, 108, 109, 147, 16, 60, 61, 62, 63,
394 : /* 750 */ 64, 65, 66, 67, 68, 69, 70, 71, 72, 213,
395 : /* 760 */ 74, 75, 76, 77, 78, 79, 80, 81, 82, 83,
396 : /* 770 */ 84, 42, 43, 99, 100, 101, 182, 147, 161, 182,
397 : /* 780 */ 99, 100, 101, 14, 147, 147, 147, 241, 16, 191,
398 : /* 790 */ 61, 62, 63, 64, 65, 66, 67, 68, 69, 70,
399 : /* 800 */ 71, 72, 147, 74, 75, 76, 77, 78, 79, 80,
400 : /* 810 */ 81, 82, 83, 84, 42, 43, 23, 200, 188, 225,
401 : /* 820 */ 182, 52, 225, 54, 169, 170, 147, 188, 22, 22,
402 : /* 830 */ 147, 147, 201, 202, 62, 63, 64, 65, 66, 67,
403 : /* 840 */ 68, 69, 70, 71, 72, 208, 74, 75, 76, 77,
404 : /* 850 */ 78, 79, 80, 81, 82, 83, 84, 16, 17, 12,
405 : /* 860 */ 19, 155, 19, 225, 23, 182, 23, 188, 147, 239,
406 : /* 870 */ 147, 24, 31, 16, 17, 147, 19, 147, 147, 155,
407 : /* 880 */ 23, 88, 89, 19, 37, 21, 39, 147, 31, 48,
408 : /* 890 */ 169, 170, 169, 170, 147, 189, 89, 169, 170, 58,
409 : /* 900 */ 169, 170, 147, 97, 147, 48, 147, 114, 225, 169,
410 : /* 910 */ 170, 161, 147, 189, 16, 58, 169, 170, 147, 78,
411 : /* 920 */ 79, 114, 155, 147, 169, 170, 169, 170, 87, 88,
412 : /* 930 */ 89, 88, 80, 92, 147, 78, 79, 80, 147, 91,
413 : /* 940 */ 169, 170, 212, 19, 87, 88, 89, 16, 17, 92,
414 : /* 950 */ 19, 110, 147, 188, 23, 147, 189, 203, 110, 107,
415 : /* 960 */ 169, 170, 31, 111, 188, 124, 125, 126, 127, 128,
416 : /* 970 */ 129, 123, 147, 192, 169, 170, 43, 169, 170, 48,
417 : /* 980 */ 199, 124, 125, 126, 127, 128, 129, 242, 243, 58,
418 : /* 990 */ 92, 5, 68, 147, 169, 170, 10, 11, 12, 13,
419 : /* 1000 */ 124, 125, 147, 147, 107, 147, 147, 147, 111, 78,
420 : /* 1010 */ 79, 20, 26, 22, 28, 20, 147, 22, 87, 88,
421 : /* 1020 */ 89, 35, 147, 92, 169, 170, 147, 169, 170, 169,
422 : /* 1030 */ 170, 98, 20, 47, 188, 49, 27, 7, 8, 53,
423 : /* 1040 */ 147, 147, 56, 34, 169, 170, 147, 147, 169, 170,
424 : /* 1050 */ 147, 20, 147, 22, 147, 124, 125, 126, 127, 128,
425 : /* 1060 */ 129, 178, 169, 170, 178, 20, 147, 22, 169, 170,
426 : /* 1070 */ 30, 59, 169, 170, 169, 170, 147, 147, 91, 92,
427 : /* 1080 */ 20, 147, 22, 147, 178, 99, 100, 101, 169, 170,
428 : /* 1090 */ 50, 105, 147, 20, 147, 22, 110, 147, 169, 170,
429 : /* 1100 */ 147, 147, 147, 169, 170, 169, 170, 20, 147, 22,
430 : /* 1110 */ 147, 233, 232, 147, 169, 170, 169, 170, 147, 20,
431 : /* 1120 */ 134, 22, 169, 170, 169, 170, 147, 20, 147, 22,
432 : /* 1130 */ 169, 170, 169, 170, 149, 169, 170, 20, 229, 22,
433 : /* 1140 */ 169, 170, 102, 20, 20, 22, 22, 147, 169, 170,
434 : /* 1150 */ 147, 147, 147, 147, 147, 147, 191, 147, 147, 222,
435 : /* 1160 */ 147, 147, 147, 193, 229, 172, 172, 177, 172, 172,
436 : /* 1170 */ 172, 194, 173, 6, 194, 146, 22, 154, 146, 146,
437 : /* 1180 */ 146, 189, 121, 194, 118, 116, 119, 23, 120, 130,
438 : /* 1190 */ 221, 112, 98, 152, 152, 160, 195, 115, 196, 98,
439 : /* 1200 */ 40, 97, 19, 179, 84, 179, 160, 171, 171, 171,
440 : /* 1210 */ 226, 160, 173, 197, 171, 198, 15, 152, 174, 171,
441 : /* 1220 */ 171, 171, 204, 151, 205, 204, 174, 205, 151, 38,
442 : /* 1230 */ 152, 151, 130, 152, 60, 152, 151, 184, 152, 184,
443 : /* 1240 */ 19, 194, 214, 152, 15, 187, 226, 152, 194, 187,
444 : /* 1250 */ 187, 187, 33, 137, 184, 152, 159, 152, 1, 234,
445 : /* 1260 */ 20, 112, 235, 175, 175, 112, 107, 112, 112, 92,
446 : /* 1270 */ 214, 19, 11, 20, 20, 19, 114, 19, 117, 20,
447 : /* 1280 */ 117, 112, 22, 20, 22, 19, 22, 20, 20, 44,
448 : /* 1290 */ 19, 44, 19, 19, 237, 20, 19, 32, 19, 44,
449 : /* 1300 */ 96, 103, 16, 21, 17, 98, 231, 22, 237, 133,
450 : /* 1310 */ 98, 19, 36, 5, 240, 45, 1, 45, 102, 243,
451 : /* 1320 */ 51, 122, 19, 113, 14, 102, 115, 113, 17, 123,
452 : /* 1330 */ 246, 122, 19, 14, 20, 135, 19, 3, 57, 136,
453 : /* 1340 */ 4, 247, 247, 247, 247, 247, 68, 247, 68,
454 : };
455 : #define YY_SHIFT_USE_DFLT (-62)
456 : #define YY_SHIFT_MAX 385
457 : static const short yy_shift_ofst[] = {
458 : /* 0 */ 23, 841, 986, -16, 841, 931, 931, 931, 258, 123,
459 : /* 10 */ -36, 96, 931, 931, 931, 931, 931, -45, 468, 19,
460 : /* 20 */ 567, 488, -38, -38, 53, 165, 208, 251, 324, 393,
461 : /* 30 */ 462, 531, 600, 643, 686, 643, 643, 643, 643, 643,
462 : /* 40 */ 643, 643, 643, 643, 643, 643, 643, 643, 643, 643,
463 : /* 50 */ 643, 643, 729, 772, 772, 857, 931, 931, 931, 931,
464 : /* 60 */ 931, 931, 931, 931, 931, 931, 931, 931, 931, 931,
465 : /* 70 */ 931, 931, 931, 931, 931, 931, 931, 931, 931, 931,
466 : /* 80 */ 931, 931, 931, 931, 931, 931, 931, 931, 931, 931,
467 : /* 90 */ 931, 931, 931, 931, -61, -61, 6, 6, 280, 22,
468 : /* 100 */ 61, 542, 247, 567, 567, 567, 567, 567, 567, 567,
469 : /* 110 */ 115, 488, 106, -62, -62, 131, 326, 538, 538, 564,
470 : /* 120 */ 614, 618, 132, 567, 132, 567, 567, 567, 567, 567,
471 : /* 130 */ 567, 567, 567, 567, 567, 567, 567, 567, 848, -53,
472 : /* 140 */ -36, -36, -36, -62, -62, -62, -15, -15, 321, 347,
473 : /* 150 */ 624, 493, 628, 634, 847, 543, 793, 603, 549, 689,
474 : /* 160 */ 567, 567, 852, 567, 567, 843, 567, 567, 807, 567,
475 : /* 170 */ 567, 197, 807, 567, 567, 1040, 1040, 1040, 567, 567,
476 : /* 180 */ 197, 567, 567, 197, 567, 336, 674, 567, 567, 197,
477 : /* 190 */ 567, 567, 567, 197, 567, 567, 567, 197, 197, 567,
478 : /* 200 */ 567, 567, 567, 567, 864, 897, 390, 876, 876, 563,
479 : /* 210 */ 1009, 1009, 1009, 933, 1009, 1009, 806, 302, 302, 1167,
480 : /* 220 */ 1167, 1167, 1167, 1154, -36, 1061, 1066, 1067, 1069, 1068,
481 : /* 230 */ 1164, 1059, 1079, 1079, 1094, 1082, 1094, 1082, 1101, 1101,
482 : /* 240 */ 1160, 1101, 1104, 1101, 1183, 1120, 1164, 1120, 1164, 1160,
483 : /* 250 */ 1101, 1101, 1101, 1183, 1201, 1079, 1201, 1079, 1201, 1079,
484 : /* 260 */ 1079, 1191, 1102, 1201, 1079, 1174, 1174, 1221, 1061, 1079,
485 : /* 270 */ 1229, 1229, 1229, 1229, 1061, 1174, 1221, 1079, 1219, 1219,
486 : /* 280 */ 1079, 1079, 1116, -62, -62, -62, -62, -62, -62, 456,
487 : /* 290 */ 245, 681, 769, 73, 898, 991, 995, 1031, 1045, 246,
488 : /* 300 */ 1030, 987, 1060, 1073, 1087, 1099, 1107, 1117, 1123, 924,
489 : /* 310 */ 1124, 1012, 1257, 1240, 1149, 1153, 1155, 1156, 1177, 1159,
490 : /* 320 */ 1252, 1253, 1254, 1256, 1261, 1258, 1259, 1260, 1263, 1161,
491 : /* 330 */ 1262, 1163, 1264, 1162, 1266, 1267, 1169, 1268, 1265, 1245,
492 : /* 340 */ 1271, 1247, 1273, 1275, 1274, 1277, 1255, 1279, 1204, 1198,
493 : /* 350 */ 1286, 1287, 1282, 1207, 1276, 1269, 1270, 1285, 1272, 1176,
494 : /* 360 */ 1212, 1292, 1308, 1315, 1216, 1278, 1280, 1199, 1303, 1210,
495 : /* 370 */ 1310, 1211, 1311, 1214, 1223, 1209, 1313, 1206, 1314, 1319,
496 : /* 380 */ 1281, 1200, 1203, 1317, 1334, 1336,
497 : };
498 : #define YY_REDUCE_USE_DFLT (-165)
499 : #define YY_REDUCE_MAX 288
500 : static const short yy_reduce_ofst[] = {
501 : /* 0 */ -138, 277, 546, -13, 190, 279, 44, 338, 36, 203,
502 : /* 10 */ 295, -140, 340, -76, 91, 344, 410, -22, 415, 35,
503 : /* 20 */ 151, 331, 389, 399, -67, -67, -67, -67, -67, -67,
504 : /* 30 */ -67, -67, -67, -67, -67, -67, -67, -67, -67, -67,
505 : /* 40 */ -67, -67, -67, -67, -67, -67, -67, -67, -67, -67,
506 : /* 50 */ -67, -67, -67, -67, -67, 477, 483, 569, 655, 721,
507 : /* 60 */ 723, 728, 731, 740, 747, 755, 757, 771, 791, 805,
508 : /* 70 */ 808, 825, 855, 858, 860, 875, 879, 893, 899, 903,
509 : /* 80 */ 905, 919, 929, 934, 936, 945, 947, 953, 955, 961,
510 : /* 90 */ 963, 966, 971, 979, -67, -67, -67, -67, 187, -67,
511 : /* 100 */ -67, 262, 34, -56, 594, 597, 638, 683, 630, 153,
512 : /* 110 */ -67, 195, -67, -67, -67, 274, -164, 242, 403, 236,
513 : /* 120 */ 236, 74, 283, 348, 617, 41, 148, 492, 359, 637,
514 : /* 130 */ 502, 511, 639, 679, 765, 776, 730, 846, 297, 363,
515 : /* 140 */ 706, 724, 767, 781, 631, 745, 83, 212, 216, 252,
516 : /* 150 */ 14, 75, 14, 14, 329, 374, 388, 494, 503, 490,
517 : /* 160 */ 540, 584, 598, 503, 684, 750, 759, 787, 754, 856,
518 : /* 170 */ 859, 14, 754, 869, 894, 883, 886, 906, 900, 907,
519 : /* 180 */ 14, 930, 950, 14, 954, 880, 878, 981, 1000, 14,
520 : /* 190 */ 1003, 1004, 1005, 14, 1006, 1007, 1008, 14, 14, 1010,
521 : /* 200 */ 1011, 1013, 1014, 1015, 985, 965, 970, 909, 935, 937,
522 : /* 210 */ 993, 994, 996, 990, 997, 998, 999, 977, 980, 1029,
523 : /* 220 */ 1032, 1033, 1034, 1023, 992, 989, 1001, 1002, 1016, 1017,
524 : /* 230 */ 1035, 969, 1041, 1042, 1018, 1019, 1021, 1022, 1036, 1037,
525 : /* 240 */ 1024, 1038, 1039, 1043, 1044, 984, 1046, 1020, 1051, 1026,
526 : /* 250 */ 1048, 1049, 1050, 1052, 1072, 1065, 1077, 1078, 1080, 1081,
527 : /* 260 */ 1083, 1025, 1027, 1085, 1086, 1053, 1055, 1028, 1047, 1091,
528 : /* 270 */ 1058, 1062, 1063, 1064, 1054, 1070, 1056, 1095, 1057, 1071,
529 : /* 280 */ 1103, 1105, 1074, 1097, 1088, 1089, 1075, 1076, 1084,
530 : };
531 : static const YYACTIONTYPE yy_default[] = {
532 : /* 0 */ 592, 818, 897, 707, 897, 818, 897, 818, 897, 843,
533 : /* 10 */ 711, 872, 814, 818, 897, 897, 897, 789, 897, 843,
534 : /* 20 */ 897, 623, 843, 843, 740, 897, 897, 897, 897, 897,
535 : /* 30 */ 897, 897, 897, 741, 897, 817, 813, 809, 811, 810,
536 : /* 40 */ 742, 731, 738, 745, 723, 856, 747, 748, 754, 755,
537 : /* 50 */ 873, 871, 777, 776, 795, 897, 897, 897, 897, 897,
538 : /* 60 */ 897, 897, 897, 897, 897, 897, 897, 897, 897, 897,
539 : /* 70 */ 897, 897, 897, 897, 897, 897, 897, 897, 897, 897,
540 : /* 80 */ 897, 897, 897, 897, 897, 897, 897, 897, 897, 897,
541 : /* 90 */ 897, 897, 897, 897, 779, 800, 778, 788, 616, 780,
542 : /* 100 */ 781, 676, 611, 897, 897, 897, 897, 897, 897, 897,
543 : /* 110 */ 782, 897, 783, 796, 797, 897, 897, 897, 897, 897,
544 : /* 120 */ 897, 592, 707, 897, 707, 897, 897, 897, 897, 897,
545 : /* 130 */ 897, 897, 897, 897, 897, 897, 897, 897, 897, 897,
546 : /* 140 */ 897, 897, 897, 701, 711, 890, 897, 897, 667, 897,
547 : /* 150 */ 897, 897, 897, 897, 897, 897, 897, 897, 897, 599,
548 : /* 160 */ 597, 897, 699, 897, 897, 625, 897, 897, 709, 897,
549 : /* 170 */ 897, 714, 715, 897, 897, 897, 897, 897, 897, 897,
550 : /* 180 */ 613, 897, 897, 688, 897, 849, 897, 897, 897, 863,
551 : /* 190 */ 897, 897, 897, 861, 897, 897, 897, 690, 750, 830,
552 : /* 200 */ 897, 876, 878, 897, 897, 699, 708, 897, 897, 812,
553 : /* 210 */ 734, 734, 734, 646, 734, 734, 649, 744, 744, 596,
554 : /* 220 */ 596, 596, 596, 666, 897, 744, 735, 737, 727, 739,
555 : /* 230 */ 897, 897, 716, 716, 724, 726, 724, 726, 678, 678,
556 : /* 240 */ 663, 678, 649, 678, 822, 827, 897, 827, 897, 663,
557 : /* 250 */ 678, 678, 678, 822, 608, 716, 608, 716, 608, 716,
558 : /* 260 */ 716, 853, 855, 608, 716, 680, 680, 756, 744, 716,
559 : /* 270 */ 687, 687, 687, 687, 744, 680, 756, 716, 875, 875,
560 : /* 280 */ 716, 716, 883, 633, 651, 651, 858, 890, 895, 897,
561 : /* 290 */ 897, 897, 897, 763, 897, 897, 897, 897, 897, 897,
562 : /* 300 */ 897, 897, 897, 897, 897, 897, 897, 897, 897, 836,
563 : /* 310 */ 897, 897, 897, 897, 768, 764, 897, 765, 897, 693,
564 : /* 320 */ 897, 897, 897, 897, 897, 897, 897, 897, 897, 897,
565 : /* 330 */ 728, 897, 736, 897, 897, 897, 897, 897, 897, 897,
566 : /* 340 */ 897, 897, 897, 897, 897, 897, 897, 897, 897, 897,
567 : /* 350 */ 897, 897, 897, 897, 897, 897, 851, 852, 897, 897,
568 : /* 360 */ 897, 897, 897, 897, 897, 897, 897, 897, 897, 897,
569 : /* 370 */ 897, 897, 897, 897, 897, 897, 897, 897, 897, 897,
570 : /* 380 */ 882, 897, 897, 885, 593, 897, 587, 590, 589, 591,
571 : /* 390 */ 595, 598, 620, 621, 622, 600, 601, 602, 603, 604,
572 : /* 400 */ 605, 606, 612, 614, 632, 634, 618, 636, 697, 698,
573 : /* 410 */ 760, 691, 692, 696, 771, 762, 766, 767, 769, 770,
574 : /* 420 */ 784, 785, 787, 793, 799, 802, 786, 791, 792, 794,
575 : /* 430 */ 798, 801, 694, 695, 805, 619, 626, 627, 630, 631,
576 : /* 440 */ 839, 841, 840, 842, 629, 628, 772, 775, 807, 808,
577 : /* 450 */ 864, 865, 866, 867, 868, 803, 815, 816, 717, 806,
578 : /* 460 */ 790, 729, 732, 733, 730, 700, 710, 719, 720, 721,
579 : /* 470 */ 722, 705, 706, 712, 725, 758, 759, 713, 702, 703,
580 : /* 480 */ 704, 804, 761, 773, 774, 637, 638, 768, 639, 640,
581 : /* 490 */ 641, 679, 682, 683, 684, 642, 661, 664, 665, 643,
582 : /* 500 */ 650, 644, 645, 652, 653, 654, 657, 658, 659, 660,
583 : /* 510 */ 655, 656, 823, 824, 828, 826, 825, 647, 648, 662,
584 : /* 520 */ 635, 624, 617, 668, 671, 672, 673, 674, 675, 677,
585 : /* 530 */ 669, 670, 615, 607, 609, 718, 845, 854, 850, 846,
586 : /* 540 */ 847, 848, 610, 819, 820, 681, 752, 753, 844, 857,
587 : /* 550 */ 859, 757, 860, 862, 887, 685, 686, 689, 829, 869,
588 : /* 560 */ 743, 746, 749, 751, 831, 832, 833, 834, 837, 838,
589 : /* 570 */ 835, 870, 874, 877, 879, 880, 881, 884, 886, 891,
590 : /* 580 */ 892, 893, 896, 894, 594, 588,
591 : };
592 : #define YY_SZ_ACTTAB (int)(sizeof(yy_action)/sizeof(yy_action[0]))
593 :
594 : /* The next table maps tokens into fallback tokens. If a construct
595 : ** like the following:
596 : **
597 : ** %fallback ID X Y Z.
598 : **
599 : ** appears in the grammer, then ID becomes a fallback token for X, Y,
600 : ** and Z. Whenever one of the tokens X, Y, or Z is input to the parser
601 : ** but it does not parse, the type of the token is changed to ID and
602 : ** the parse is retried before an error is thrown.
603 : */
604 : #ifdef YYFALLBACK
605 : static const YYCODETYPE yyFallback[] = {
606 : 0, /* $ => nothing */
607 : 0, /* SEMI => nothing */
608 : 23, /* EXPLAIN => ID */
609 : 23, /* QUERY => ID */
610 : 23, /* PLAN => ID */
611 : 23, /* BEGIN => ID */
612 : 0, /* TRANSACTION => nothing */
613 : 23, /* DEFERRED => ID */
614 : 23, /* IMMEDIATE => ID */
615 : 23, /* EXCLUSIVE => ID */
616 : 0, /* COMMIT => nothing */
617 : 23, /* END => ID */
618 : 0, /* ROLLBACK => nothing */
619 : 0, /* CREATE => nothing */
620 : 0, /* TABLE => nothing */
621 : 23, /* IF => ID */
622 : 0, /* NOT => nothing */
623 : 0, /* EXISTS => nothing */
624 : 23, /* TEMP => ID */
625 : 0, /* LP => nothing */
626 : 0, /* RP => nothing */
627 : 0, /* AS => nothing */
628 : 0, /* COMMA => nothing */
629 : 0, /* ID => nothing */
630 : 23, /* ABORT => ID */
631 : 23, /* AFTER => ID */
632 : 23, /* ANALYZE => ID */
633 : 23, /* ASC => ID */
634 : 23, /* ATTACH => ID */
635 : 23, /* BEFORE => ID */
636 : 23, /* CASCADE => ID */
637 : 23, /* CAST => ID */
638 : 23, /* CONFLICT => ID */
639 : 23, /* DATABASE => ID */
640 : 23, /* DESC => ID */
641 : 23, /* DETACH => ID */
642 : 23, /* EACH => ID */
643 : 23, /* FAIL => ID */
644 : 23, /* FOR => ID */
645 : 23, /* IGNORE => ID */
646 : 23, /* INITIALLY => ID */
647 : 23, /* INSTEAD => ID */
648 : 23, /* LIKE_KW => ID */
649 : 23, /* MATCH => ID */
650 : 23, /* KEY => ID */
651 : 23, /* OF => ID */
652 : 23, /* OFFSET => ID */
653 : 23, /* PRAGMA => ID */
654 : 23, /* RAISE => ID */
655 : 23, /* REPLACE => ID */
656 : 23, /* RESTRICT => ID */
657 : 23, /* ROW => ID */
658 : 23, /* TRIGGER => ID */
659 : 23, /* VACUUM => ID */
660 : 23, /* VIEW => ID */
661 : 23, /* VIRTUAL => ID */
662 : 23, /* REINDEX => ID */
663 : 23, /* RENAME => ID */
664 : 23, /* CTIME_KW => ID */
665 : 0, /* ANY => nothing */
666 : 0, /* OR => nothing */
667 : 0, /* AND => nothing */
668 : 0, /* IS => nothing */
669 : 0, /* BETWEEN => nothing */
670 : 0, /* IN => nothing */
671 : 0, /* ISNULL => nothing */
672 : 0, /* NOTNULL => nothing */
673 : 0, /* NE => nothing */
674 : 0, /* EQ => nothing */
675 : 0, /* GT => nothing */
676 : 0, /* LE => nothing */
677 : 0, /* LT => nothing */
678 : 0, /* GE => nothing */
679 : 0, /* ESCAPE => nothing */
680 : 0, /* BITAND => nothing */
681 : 0, /* BITOR => nothing */
682 : 0, /* LSHIFT => nothing */
683 : 0, /* RSHIFT => nothing */
684 : 0, /* PLUS => nothing */
685 : 0, /* MINUS => nothing */
686 : 0, /* STAR => nothing */
687 : 0, /* SLASH => nothing */
688 : 0, /* REM => nothing */
689 : 0, /* CONCAT => nothing */
690 : 0, /* COLLATE => nothing */
691 : 0, /* UMINUS => nothing */
692 : 0, /* UPLUS => nothing */
693 : 0, /* BITNOT => nothing */
694 : 0, /* STRING => nothing */
695 : 0, /* JOIN_KW => nothing */
696 : 0, /* CONSTRAINT => nothing */
697 : 0, /* DEFAULT => nothing */
698 : 0, /* NULL => nothing */
699 : 0, /* PRIMARY => nothing */
700 : 0, /* UNIQUE => nothing */
701 : 0, /* CHECK => nothing */
702 : 0, /* REFERENCES => nothing */
703 : 0, /* AUTOINCR => nothing */
704 : 0, /* ON => nothing */
705 : 0, /* DELETE => nothing */
706 : 0, /* UPDATE => nothing */
707 : 0, /* INSERT => nothing */
708 : 0, /* SET => nothing */
709 : 0, /* DEFERRABLE => nothing */
710 : 0, /* FOREIGN => nothing */
711 : 0, /* DROP => nothing */
712 : 0, /* UNION => nothing */
713 : 0, /* ALL => nothing */
714 : 0, /* EXCEPT => nothing */
715 : 0, /* INTERSECT => nothing */
716 : 0, /* SELECT => nothing */
717 : 0, /* DISTINCT => nothing */
718 : 0, /* DOT => nothing */
719 : 0, /* FROM => nothing */
720 : 0, /* JOIN => nothing */
721 : 0, /* USING => nothing */
722 : 0, /* ORDER => nothing */
723 : 0, /* BY => nothing */
724 : 0, /* GROUP => nothing */
725 : 0, /* HAVING => nothing */
726 : 0, /* LIMIT => nothing */
727 : 0, /* WHERE => nothing */
728 : 0, /* INTO => nothing */
729 : 0, /* VALUES => nothing */
730 : 0, /* INTEGER => nothing */
731 : 0, /* FLOAT => nothing */
732 : 0, /* BLOB => nothing */
733 : 0, /* REGISTER => nothing */
734 : 0, /* VARIABLE => nothing */
735 : 0, /* CASE => nothing */
736 : 0, /* WHEN => nothing */
737 : 0, /* THEN => nothing */
738 : 0, /* ELSE => nothing */
739 : 0, /* INDEX => nothing */
740 : 0, /* ALTER => nothing */
741 : 0, /* TO => nothing */
742 : 0, /* ADD => nothing */
743 : 0, /* COLUMNKW => nothing */
744 : };
745 : #endif /* YYFALLBACK */
746 :
747 : /* The following structure represents a single element of the
748 : ** parser's stack. Information stored includes:
749 : **
750 : ** + The state number for the parser at this level of the stack.
751 : **
752 : ** + The value of the token stored at this level of the stack.
753 : ** (In other words, the "major" token.)
754 : **
755 : ** + The semantic value stored at this level of the stack. This is
756 : ** the information used by the action routines in the grammar.
757 : ** It is sometimes called the "minor" token.
758 : */
759 : struct yyStackEntry {
760 : int stateno; /* The state-number */
761 : int major; /* The major token value. This is the code
762 : ** number for the token at this stack level */
763 : YYMINORTYPE minor; /* The user-supplied minor token value. This
764 : ** is the value of the token */
765 : };
766 : typedef struct yyStackEntry yyStackEntry;
767 :
768 : /* The state of the parser is completely contained in an instance of
769 : ** the following structure */
770 : struct yyParser {
771 : int yyidx; /* Index of top element in stack */
772 : int yyerrcnt; /* Shifts left before out of the error */
773 : sqlite3ParserARG_SDECL /* A place to hold %extra_argument */
774 : #if YYSTACKDEPTH<=0
775 : int yystksz; /* Current side of the stack */
776 : yyStackEntry *yystack; /* The parser's stack */
777 : #else
778 : yyStackEntry yystack[YYSTACKDEPTH]; /* The parser's stack */
779 : #endif
780 : };
781 : typedef struct yyParser yyParser;
782 :
783 : #ifndef NDEBUG
784 : #include <stdio.h>
785 : static FILE *yyTraceFILE = 0;
786 : static char *yyTracePrompt = 0;
787 : #endif /* NDEBUG */
788 :
789 : #ifndef NDEBUG
790 : /*
791 : ** Turn parser tracing on by giving a stream to which to write the trace
792 : ** and a prompt to preface each trace message. Tracing is turned off
793 : ** by making either argument NULL
794 : **
795 : ** Inputs:
796 : ** <ul>
797 : ** <li> A FILE* to which trace output should be written.
798 : ** If NULL, then tracing is turned off.
799 : ** <li> A prefix string written at the beginning of every
800 : ** line of trace output. If NULL, then tracing is
801 : ** turned off.
802 : ** </ul>
803 : **
804 : ** Outputs:
805 : ** None.
806 : */
807 : void sqlite3ParserTrace(FILE *TraceFILE, char *zTracePrompt){
808 : yyTraceFILE = TraceFILE;
809 : yyTracePrompt = zTracePrompt;
810 : if( yyTraceFILE==0 ) yyTracePrompt = 0;
811 : else if( yyTracePrompt==0 ) yyTraceFILE = 0;
812 : }
813 : #endif /* NDEBUG */
814 :
815 : #ifndef NDEBUG
816 : /* For tracing shifts, the names of all terminals and nonterminals
817 : ** are required. The following table supplies these names */
818 : static const char *const yyTokenName[] = {
819 : "$", "SEMI", "EXPLAIN", "QUERY",
820 : "PLAN", "BEGIN", "TRANSACTION", "DEFERRED",
821 : "IMMEDIATE", "EXCLUSIVE", "COMMIT", "END",
822 : "ROLLBACK", "CREATE", "TABLE", "IF",
823 : "NOT", "EXISTS", "TEMP", "LP",
824 : "RP", "AS", "COMMA", "ID",
825 : "ABORT", "AFTER", "ANALYZE", "ASC",
826 : "ATTACH", "BEFORE", "CASCADE", "CAST",
827 : "CONFLICT", "DATABASE", "DESC", "DETACH",
828 : "EACH", "FAIL", "FOR", "IGNORE",
829 : "INITIALLY", "INSTEAD", "LIKE_KW", "MATCH",
830 : "KEY", "OF", "OFFSET", "PRAGMA",
831 : "RAISE", "REPLACE", "RESTRICT", "ROW",
832 : "TRIGGER", "VACUUM", "VIEW", "VIRTUAL",
833 : "REINDEX", "RENAME", "CTIME_KW", "ANY",
834 : "OR", "AND", "IS", "BETWEEN",
835 : "IN", "ISNULL", "NOTNULL", "NE",
836 : "EQ", "GT", "LE", "LT",
837 : "GE", "ESCAPE", "BITAND", "BITOR",
838 : "LSHIFT", "RSHIFT", "PLUS", "MINUS",
839 : "STAR", "SLASH", "REM", "CONCAT",
840 : "COLLATE", "UMINUS", "UPLUS", "BITNOT",
841 : "STRING", "JOIN_KW", "CONSTRAINT", "DEFAULT",
842 : "NULL", "PRIMARY", "UNIQUE", "CHECK",
843 : "REFERENCES", "AUTOINCR", "ON", "DELETE",
844 : "UPDATE", "INSERT", "SET", "DEFERRABLE",
845 : "FOREIGN", "DROP", "UNION", "ALL",
846 : "EXCEPT", "INTERSECT", "SELECT", "DISTINCT",
847 : "DOT", "FROM", "JOIN", "USING",
848 : "ORDER", "BY", "GROUP", "HAVING",
849 : "LIMIT", "WHERE", "INTO", "VALUES",
850 : "INTEGER", "FLOAT", "BLOB", "REGISTER",
851 : "VARIABLE", "CASE", "WHEN", "THEN",
852 : "ELSE", "INDEX", "ALTER", "TO",
853 : "ADD", "COLUMNKW", "error", "input",
854 : "cmdlist", "ecmd", "cmdx", "cmd",
855 : "explain", "transtype", "trans_opt", "nm",
856 : "create_table", "create_table_args", "temp", "ifnotexists",
857 : "dbnm", "columnlist", "conslist_opt", "select",
858 : "column", "columnid", "type", "carglist",
859 : "id", "ids", "typetoken", "typename",
860 : "signed", "plus_num", "minus_num", "carg",
861 : "ccons", "term", "expr", "onconf",
862 : "sortorder", "autoinc", "idxlist_opt", "refargs",
863 : "defer_subclause", "refarg", "refact", "init_deferred_pred_opt",
864 : "conslist", "tcons", "idxlist", "defer_subclause_opt",
865 : "orconf", "resolvetype", "raisetype", "ifexists",
866 : "fullname", "oneselect", "multiselect_op", "distinct",
867 : "selcollist", "from", "where_opt", "groupby_opt",
868 : "having_opt", "orderby_opt", "limit_opt", "sclp",
869 : "as", "seltablist", "stl_prefix", "joinop",
870 : "on_opt", "using_opt", "seltablist_paren", "joinop2",
871 : "inscollist", "sortlist", "sortitem", "exprlist",
872 : "setlist", "insert_cmd", "inscollist_opt", "itemlist",
873 : "likeop", "escape", "between_op", "in_op",
874 : "case_operand", "case_exprlist", "case_else", "expritem",
875 : "uniqueflag", "idxitem", "collate", "nmnum",
876 : "plus_opt", "number", "trigger_decl", "trigger_cmd_list",
877 : "trigger_time", "trigger_event", "foreach_clause", "when_clause",
878 : "trigger_cmd", "database_kw_opt", "key_opt", "add_column_fullname",
879 : "kwcolumn_opt", "create_vtab", "vtabarglist", "vtabarg",
880 : "vtabargtoken", "lp", "anylist",
881 : };
882 : #endif /* NDEBUG */
883 :
884 : #ifndef NDEBUG
885 : /* For tracing reduce actions, the names of all rules are required.
886 : */
887 : static const char *const yyRuleName[] = {
888 : /* 0 */ "input ::= cmdlist",
889 : /* 1 */ "cmdlist ::= cmdlist ecmd",
890 : /* 2 */ "cmdlist ::= ecmd",
891 : /* 3 */ "cmdx ::= cmd",
892 : /* 4 */ "ecmd ::= SEMI",
893 : /* 5 */ "ecmd ::= explain cmdx SEMI",
894 : /* 6 */ "explain ::=",
895 : /* 7 */ "explain ::= EXPLAIN",
896 : /* 8 */ "explain ::= EXPLAIN QUERY PLAN",
897 : /* 9 */ "cmd ::= BEGIN transtype trans_opt",
898 : /* 10 */ "trans_opt ::=",
899 : /* 11 */ "trans_opt ::= TRANSACTION",
900 : /* 12 */ "trans_opt ::= TRANSACTION nm",
901 : /* 13 */ "transtype ::=",
902 : /* 14 */ "transtype ::= DEFERRED",
903 : /* 15 */ "transtype ::= IMMEDIATE",
904 : /* 16 */ "transtype ::= EXCLUSIVE",
905 : /* 17 */ "cmd ::= COMMIT trans_opt",
906 : /* 18 */ "cmd ::= END trans_opt",
907 : /* 19 */ "cmd ::= ROLLBACK trans_opt",
908 : /* 20 */ "cmd ::= create_table create_table_args",
909 : /* 21 */ "create_table ::= CREATE temp TABLE ifnotexists nm dbnm",
910 : /* 22 */ "ifnotexists ::=",
911 : /* 23 */ "ifnotexists ::= IF NOT EXISTS",
912 : /* 24 */ "temp ::= TEMP",
913 : /* 25 */ "temp ::=",
914 : /* 26 */ "create_table_args ::= LP columnlist conslist_opt RP",
915 : /* 27 */ "create_table_args ::= AS select",
916 : /* 28 */ "columnlist ::= columnlist COMMA column",
917 : /* 29 */ "columnlist ::= column",
918 : /* 30 */ "column ::= columnid type carglist",
919 : /* 31 */ "columnid ::= nm",
920 : /* 32 */ "id ::= ID",
921 : /* 33 */ "ids ::= ID|STRING",
922 : /* 34 */ "nm ::= ID",
923 : /* 35 */ "nm ::= STRING",
924 : /* 36 */ "nm ::= JOIN_KW",
925 : /* 37 */ "type ::=",
926 : /* 38 */ "type ::= typetoken",
927 : /* 39 */ "typetoken ::= typename",
928 : /* 40 */ "typetoken ::= typename LP signed RP",
929 : /* 41 */ "typetoken ::= typename LP signed COMMA signed RP",
930 : /* 42 */ "typename ::= ids",
931 : /* 43 */ "typename ::= typename ids",
932 : /* 44 */ "signed ::= plus_num",
933 : /* 45 */ "signed ::= minus_num",
934 : /* 46 */ "carglist ::= carglist carg",
935 : /* 47 */ "carglist ::=",
936 : /* 48 */ "carg ::= CONSTRAINT nm ccons",
937 : /* 49 */ "carg ::= ccons",
938 : /* 50 */ "ccons ::= DEFAULT term",
939 : /* 51 */ "ccons ::= DEFAULT LP expr RP",
940 : /* 52 */ "ccons ::= DEFAULT PLUS term",
941 : /* 53 */ "ccons ::= DEFAULT MINUS term",
942 : /* 54 */ "ccons ::= DEFAULT id",
943 : /* 55 */ "ccons ::= NULL onconf",
944 : /* 56 */ "ccons ::= NOT NULL onconf",
945 : /* 57 */ "ccons ::= PRIMARY KEY sortorder onconf autoinc",
946 : /* 58 */ "ccons ::= UNIQUE onconf",
947 : /* 59 */ "ccons ::= CHECK LP expr RP",
948 : /* 60 */ "ccons ::= REFERENCES nm idxlist_opt refargs",
949 : /* 61 */ "ccons ::= defer_subclause",
950 : /* 62 */ "ccons ::= COLLATE id",
951 : /* 63 */ "autoinc ::=",
952 : /* 64 */ "autoinc ::= AUTOINCR",
953 : /* 65 */ "refargs ::=",
954 : /* 66 */ "refargs ::= refargs refarg",
955 : /* 67 */ "refarg ::= MATCH nm",
956 : /* 68 */ "refarg ::= ON DELETE refact",
957 : /* 69 */ "refarg ::= ON UPDATE refact",
958 : /* 70 */ "refarg ::= ON INSERT refact",
959 : /* 71 */ "refact ::= SET NULL",
960 : /* 72 */ "refact ::= SET DEFAULT",
961 : /* 73 */ "refact ::= CASCADE",
962 : /* 74 */ "refact ::= RESTRICT",
963 : /* 75 */ "defer_subclause ::= NOT DEFERRABLE init_deferred_pred_opt",
964 : /* 76 */ "defer_subclause ::= DEFERRABLE init_deferred_pred_opt",
965 : /* 77 */ "init_deferred_pred_opt ::=",
966 : /* 78 */ "init_deferred_pred_opt ::= INITIALLY DEFERRED",
967 : /* 79 */ "init_deferred_pred_opt ::= INITIALLY IMMEDIATE",
968 : /* 80 */ "conslist_opt ::=",
969 : /* 81 */ "conslist_opt ::= COMMA conslist",
970 : /* 82 */ "conslist ::= conslist COMMA tcons",
971 : /* 83 */ "conslist ::= conslist tcons",
972 : /* 84 */ "conslist ::= tcons",
973 : /* 85 */ "tcons ::= CONSTRAINT nm",
974 : /* 86 */ "tcons ::= PRIMARY KEY LP idxlist autoinc RP onconf",
975 : /* 87 */ "tcons ::= UNIQUE LP idxlist RP onconf",
976 : /* 88 */ "tcons ::= CHECK LP expr RP onconf",
977 : /* 89 */ "tcons ::= FOREIGN KEY LP idxlist RP REFERENCES nm idxlist_opt refargs defer_subclause_opt",
978 : /* 90 */ "defer_subclause_opt ::=",
979 : /* 91 */ "defer_subclause_opt ::= defer_subclause",
980 : /* 92 */ "onconf ::=",
981 : /* 93 */ "onconf ::= ON CONFLICT resolvetype",
982 : /* 94 */ "orconf ::=",
983 : /* 95 */ "orconf ::= OR resolvetype",
984 : /* 96 */ "resolvetype ::= raisetype",
985 : /* 97 */ "resolvetype ::= IGNORE",
986 : /* 98 */ "resolvetype ::= REPLACE",
987 : /* 99 */ "cmd ::= DROP TABLE ifexists fullname",
988 : /* 100 */ "ifexists ::= IF EXISTS",
989 : /* 101 */ "ifexists ::=",
990 : /* 102 */ "cmd ::= CREATE temp VIEW ifnotexists nm dbnm AS select",
991 : /* 103 */ "cmd ::= DROP VIEW ifexists fullname",
992 : /* 104 */ "cmd ::= select",
993 : /* 105 */ "select ::= oneselect",
994 : /* 106 */ "select ::= select multiselect_op oneselect",
995 : /* 107 */ "multiselect_op ::= UNION",
996 : /* 108 */ "multiselect_op ::= UNION ALL",
997 : /* 109 */ "multiselect_op ::= EXCEPT|INTERSECT",
998 : /* 110 */ "oneselect ::= SELECT distinct selcollist from where_opt groupby_opt having_opt orderby_opt limit_opt",
999 : /* 111 */ "distinct ::= DISTINCT",
1000 : /* 112 */ "distinct ::= ALL",
1001 : /* 113 */ "distinct ::=",
1002 : /* 114 */ "sclp ::= selcollist COMMA",
1003 : /* 115 */ "sclp ::=",
1004 : /* 116 */ "selcollist ::= sclp expr as",
1005 : /* 117 */ "selcollist ::= sclp STAR",
1006 : /* 118 */ "selcollist ::= sclp nm DOT STAR",
1007 : /* 119 */ "as ::= AS nm",
1008 : /* 120 */ "as ::= ids",
1009 : /* 121 */ "as ::=",
1010 : /* 122 */ "from ::=",
1011 : /* 123 */ "from ::= FROM seltablist",
1012 : /* 124 */ "stl_prefix ::= seltablist joinop",
1013 : /* 125 */ "stl_prefix ::=",
1014 : /* 126 */ "seltablist ::= stl_prefix nm dbnm as on_opt using_opt",
1015 : /* 127 */ "seltablist ::= stl_prefix LP seltablist_paren RP as on_opt using_opt",
1016 : /* 128 */ "seltablist_paren ::= select",
1017 : /* 129 */ "seltablist_paren ::= seltablist",
1018 : /* 130 */ "dbnm ::=",
1019 : /* 131 */ "dbnm ::= DOT nm",
1020 : /* 132 */ "fullname ::= nm dbnm",
1021 : /* 133 */ "joinop ::= COMMA|JOIN",
1022 : /* 134 */ "joinop ::= JOIN_KW JOIN",
1023 : /* 135 */ "joinop ::= JOIN_KW nm JOIN",
1024 : /* 136 */ "joinop ::= JOIN_KW nm nm JOIN",
1025 : /* 137 */ "on_opt ::= ON expr",
1026 : /* 138 */ "on_opt ::=",
1027 : /* 139 */ "using_opt ::= USING LP inscollist RP",
1028 : /* 140 */ "using_opt ::=",
1029 : /* 141 */ "orderby_opt ::=",
1030 : /* 142 */ "orderby_opt ::= ORDER BY sortlist",
1031 : /* 143 */ "sortlist ::= sortlist COMMA sortitem sortorder",
1032 : /* 144 */ "sortlist ::= sortitem sortorder",
1033 : /* 145 */ "sortitem ::= expr",
1034 : /* 146 */ "sortorder ::= ASC",
1035 : /* 147 */ "sortorder ::= DESC",
1036 : /* 148 */ "sortorder ::=",
1037 : /* 149 */ "groupby_opt ::=",
1038 : /* 150 */ "groupby_opt ::= GROUP BY exprlist",
1039 : /* 151 */ "having_opt ::=",
1040 : /* 152 */ "having_opt ::= HAVING expr",
1041 : /* 153 */ "limit_opt ::=",
1042 : /* 154 */ "limit_opt ::= LIMIT expr",
1043 : /* 155 */ "limit_opt ::= LIMIT expr OFFSET expr",
1044 : /* 156 */ "limit_opt ::= LIMIT expr COMMA expr",
1045 : /* 157 */ "cmd ::= DELETE FROM fullname where_opt",
1046 : /* 158 */ "where_opt ::=",
1047 : /* 159 */ "where_opt ::= WHERE expr",
1048 : /* 160 */ "cmd ::= UPDATE orconf fullname SET setlist where_opt",
1049 : /* 161 */ "setlist ::= setlist COMMA nm EQ expr",
1050 : /* 162 */ "setlist ::= nm EQ expr",
1051 : /* 163 */ "cmd ::= insert_cmd INTO fullname inscollist_opt VALUES LP itemlist RP",
1052 : /* 164 */ "cmd ::= insert_cmd INTO fullname inscollist_opt select",
1053 : /* 165 */ "cmd ::= insert_cmd INTO fullname inscollist_opt DEFAULT VALUES",
1054 : /* 166 */ "insert_cmd ::= INSERT orconf",
1055 : /* 167 */ "insert_cmd ::= REPLACE",
1056 : /* 168 */ "itemlist ::= itemlist COMMA expr",
1057 : /* 169 */ "itemlist ::= expr",
1058 : /* 170 */ "inscollist_opt ::=",
1059 : /* 171 */ "inscollist_opt ::= LP inscollist RP",
1060 : /* 172 */ "inscollist ::= inscollist COMMA nm",
1061 : /* 173 */ "inscollist ::= nm",
1062 : /* 174 */ "expr ::= term",
1063 : /* 175 */ "expr ::= LP expr RP",
1064 : /* 176 */ "term ::= NULL",
1065 : /* 177 */ "expr ::= ID",
1066 : /* 178 */ "expr ::= JOIN_KW",
1067 : /* 179 */ "expr ::= nm DOT nm",
1068 : /* 180 */ "expr ::= nm DOT nm DOT nm",
1069 : /* 181 */ "term ::= INTEGER|FLOAT|BLOB",
1070 : /* 182 */ "term ::= STRING",
1071 : /* 183 */ "expr ::= REGISTER",
1072 : /* 184 */ "expr ::= VARIABLE",
1073 : /* 185 */ "expr ::= expr COLLATE id",
1074 : /* 186 */ "expr ::= CAST LP expr AS typetoken RP",
1075 : /* 187 */ "expr ::= ID LP distinct exprlist RP",
1076 : /* 188 */ "expr ::= ID LP STAR RP",
1077 : /* 189 */ "term ::= CTIME_KW",
1078 : /* 190 */ "expr ::= expr AND expr",
1079 : /* 191 */ "expr ::= expr OR expr",
1080 : /* 192 */ "expr ::= expr LT|GT|GE|LE expr",
1081 : /* 193 */ "expr ::= expr EQ|NE expr",
1082 : /* 194 */ "expr ::= expr BITAND|BITOR|LSHIFT|RSHIFT expr",
1083 : /* 195 */ "expr ::= expr PLUS|MINUS expr",
1084 : /* 196 */ "expr ::= expr STAR|SLASH|REM expr",
1085 : /* 197 */ "expr ::= expr CONCAT expr",
1086 : /* 198 */ "likeop ::= LIKE_KW",
1087 : /* 199 */ "likeop ::= NOT LIKE_KW",
1088 : /* 200 */ "likeop ::= MATCH",
1089 : /* 201 */ "likeop ::= NOT MATCH",
1090 : /* 202 */ "escape ::= ESCAPE expr",
1091 : /* 203 */ "escape ::=",
1092 : /* 204 */ "expr ::= expr likeop expr escape",
1093 : /* 205 */ "expr ::= expr ISNULL|NOTNULL",
1094 : /* 206 */ "expr ::= expr IS NULL",
1095 : /* 207 */ "expr ::= expr NOT NULL",
1096 : /* 208 */ "expr ::= expr IS NOT NULL",
1097 : /* 209 */ "expr ::= NOT|BITNOT expr",
1098 : /* 210 */ "expr ::= MINUS expr",
1099 : /* 211 */ "expr ::= PLUS expr",
1100 : /* 212 */ "between_op ::= BETWEEN",
1101 : /* 213 */ "between_op ::= NOT BETWEEN",
1102 : /* 214 */ "expr ::= expr between_op expr AND expr",
1103 : /* 215 */ "in_op ::= IN",
1104 : /* 216 */ "in_op ::= NOT IN",
1105 : /* 217 */ "expr ::= expr in_op LP exprlist RP",
1106 : /* 218 */ "expr ::= LP select RP",
1107 : /* 219 */ "expr ::= expr in_op LP select RP",
1108 : /* 220 */ "expr ::= expr in_op nm dbnm",
1109 : /* 221 */ "expr ::= EXISTS LP select RP",
1110 : /* 222 */ "expr ::= CASE case_operand case_exprlist case_else END",
1111 : /* 223 */ "case_exprlist ::= case_exprlist WHEN expr THEN expr",
1112 : /* 224 */ "case_exprlist ::= WHEN expr THEN expr",
1113 : /* 225 */ "case_else ::= ELSE expr",
1114 : /* 226 */ "case_else ::=",
1115 : /* 227 */ "case_operand ::= expr",
1116 : /* 228 */ "case_operand ::=",
1117 : /* 229 */ "exprlist ::= exprlist COMMA expritem",
1118 : /* 230 */ "exprlist ::= expritem",
1119 : /* 231 */ "expritem ::= expr",
1120 : /* 232 */ "expritem ::=",
1121 : /* 233 */ "cmd ::= CREATE uniqueflag INDEX ifnotexists nm dbnm ON nm LP idxlist RP",
1122 : /* 234 */ "uniqueflag ::= UNIQUE",
1123 : /* 235 */ "uniqueflag ::=",
1124 : /* 236 */ "idxlist_opt ::=",
1125 : /* 237 */ "idxlist_opt ::= LP idxlist RP",
1126 : /* 238 */ "idxlist ::= idxlist COMMA idxitem collate sortorder",
1127 : /* 239 */ "idxlist ::= idxitem collate sortorder",
1128 : /* 240 */ "idxitem ::= nm",
1129 : /* 241 */ "collate ::=",
1130 : /* 242 */ "collate ::= COLLATE id",
1131 : /* 243 */ "cmd ::= DROP INDEX ifexists fullname",
1132 : /* 244 */ "cmd ::= VACUUM",
1133 : /* 245 */ "cmd ::= VACUUM nm",
1134 : /* 246 */ "cmd ::= PRAGMA nm dbnm EQ nmnum",
1135 : /* 247 */ "cmd ::= PRAGMA nm dbnm EQ ON",
1136 : /* 248 */ "cmd ::= PRAGMA nm dbnm EQ minus_num",
1137 : /* 249 */ "cmd ::= PRAGMA nm dbnm LP nmnum RP",
1138 : /* 250 */ "cmd ::= PRAGMA nm dbnm",
1139 : /* 251 */ "nmnum ::= plus_num",
1140 : /* 252 */ "nmnum ::= nm",
1141 : /* 253 */ "plus_num ::= plus_opt number",
1142 : /* 254 */ "minus_num ::= MINUS number",
1143 : /* 255 */ "number ::= INTEGER|FLOAT",
1144 : /* 256 */ "plus_opt ::= PLUS",
1145 : /* 257 */ "plus_opt ::=",
1146 : /* 258 */ "cmd ::= CREATE trigger_decl BEGIN trigger_cmd_list END",
1147 : /* 259 */ "trigger_decl ::= temp TRIGGER ifnotexists nm dbnm trigger_time trigger_event ON fullname foreach_clause when_clause",
1148 : /* 260 */ "trigger_time ::= BEFORE",
1149 : /* 261 */ "trigger_time ::= AFTER",
1150 : /* 262 */ "trigger_time ::= INSTEAD OF",
1151 : /* 263 */ "trigger_time ::=",
1152 : /* 264 */ "trigger_event ::= DELETE|INSERT",
1153 : /* 265 */ "trigger_event ::= UPDATE",
1154 : /* 266 */ "trigger_event ::= UPDATE OF inscollist",
1155 : /* 267 */ "foreach_clause ::=",
1156 : /* 268 */ "foreach_clause ::= FOR EACH ROW",
1157 : /* 269 */ "when_clause ::=",
1158 : /* 270 */ "when_clause ::= WHEN expr",
1159 : /* 271 */ "trigger_cmd_list ::= trigger_cmd_list trigger_cmd SEMI",
1160 : /* 272 */ "trigger_cmd_list ::=",
1161 : /* 273 */ "trigger_cmd ::= UPDATE orconf nm SET setlist where_opt",
1162 : /* 274 */ "trigger_cmd ::= insert_cmd INTO nm inscollist_opt VALUES LP itemlist RP",
1163 : /* 275 */ "trigger_cmd ::= insert_cmd INTO nm inscollist_opt select",
1164 : /* 276 */ "trigger_cmd ::= DELETE FROM nm where_opt",
1165 : /* 277 */ "trigger_cmd ::= select",
1166 : /* 278 */ "expr ::= RAISE LP IGNORE RP",
1167 : /* 279 */ "expr ::= RAISE LP raisetype COMMA nm RP",
1168 : /* 280 */ "raisetype ::= ROLLBACK",
1169 : /* 281 */ "raisetype ::= ABORT",
1170 : /* 282 */ "raisetype ::= FAIL",
1171 : /* 283 */ "cmd ::= DROP TRIGGER ifexists fullname",
1172 : /* 284 */ "cmd ::= ATTACH database_kw_opt expr AS expr key_opt",
1173 : /* 285 */ "cmd ::= DETACH database_kw_opt expr",
1174 : /* 286 */ "key_opt ::=",
1175 : /* 287 */ "key_opt ::= KEY expr",
1176 : /* 288 */ "database_kw_opt ::= DATABASE",
1177 : /* 289 */ "database_kw_opt ::=",
1178 : /* 290 */ "cmd ::= REINDEX",
1179 : /* 291 */ "cmd ::= REINDEX nm dbnm",
1180 : /* 292 */ "cmd ::= ANALYZE",
1181 : /* 293 */ "cmd ::= ANALYZE nm dbnm",
1182 : /* 294 */ "cmd ::= ALTER TABLE fullname RENAME TO nm",
1183 : /* 295 */ "cmd ::= ALTER TABLE add_column_fullname ADD kwcolumn_opt column",
1184 : /* 296 */ "add_column_fullname ::= fullname",
1185 : /* 297 */ "kwcolumn_opt ::=",
1186 : /* 298 */ "kwcolumn_opt ::= COLUMNKW",
1187 : /* 299 */ "cmd ::= create_vtab",
1188 : /* 300 */ "cmd ::= create_vtab LP vtabarglist RP",
1189 : /* 301 */ "create_vtab ::= CREATE VIRTUAL TABLE nm dbnm USING nm",
1190 : /* 302 */ "vtabarglist ::= vtabarg",
1191 : /* 303 */ "vtabarglist ::= vtabarglist COMMA vtabarg",
1192 : /* 304 */ "vtabarg ::=",
1193 : /* 305 */ "vtabarg ::= vtabarg vtabargtoken",
1194 : /* 306 */ "vtabargtoken ::= ANY",
1195 : /* 307 */ "vtabargtoken ::= lp anylist RP",
1196 : /* 308 */ "lp ::= LP",
1197 : /* 309 */ "anylist ::=",
1198 : /* 310 */ "anylist ::= anylist ANY",
1199 : };
1200 : #endif /* NDEBUG */
1201 :
1202 :
1203 : #if YYSTACKDEPTH<=0
1204 : /*
1205 : ** Try to increase the size of the parser stack.
1206 : */
1207 : static void yyGrowStack(yyParser *p){
1208 : int newSize;
1209 : yyStackEntry *pNew;
1210 :
1211 : newSize = p->yystksz*2 + 100;
1212 : pNew = realloc(p->yystack, newSize*sizeof(pNew[0]));
1213 : if( pNew ){
1214 : p->yystack = pNew;
1215 : p->yystksz = newSize;
1216 : #ifndef NDEBUG
1217 : if( yyTraceFILE ){
1218 : fprintf(yyTraceFILE,"%sStack grows to %d entries!\n",
1219 : yyTracePrompt, p->yystksz);
1220 : }
1221 : #endif
1222 : }
1223 : }
1224 : #endif
1225 :
1226 : /*
1227 : ** This function allocates a new parser.
1228 : ** The only argument is a pointer to a function which works like
1229 : ** malloc.
1230 : **
1231 : ** Inputs:
1232 : ** A pointer to the function used to allocate memory.
1233 : **
1234 : ** Outputs:
1235 : ** A pointer to a parser. This pointer is used in subsequent calls
1236 : ** to sqlite3Parser and sqlite3ParserFree.
1237 : */
1238 : void *sqlite3ParserAlloc(void *(*mallocProc)(size_t)){
1239 1036 : yyParser *pParser;
1240 : pParser = (yyParser*)(*mallocProc)( (size_t)sizeof(yyParser) );
1241 1036 : if( pParser ){
1242 1036 : pParser->yyidx = -1;
1243 1036 : #if YYSTACKDEPTH<=0
1244 : yyGrowStack(pParser);
1245 : #endif
1246 : }
1247 : return pParser;
1248 1036 : }
1249 :
1250 : /* The following function deletes the value associated with a
1251 : ** symbol. The symbol can be either a terminal or nonterminal.
1252 : ** "yymajor" is the symbol code, and "yypminor" is a pointer to
1253 : ** the value.
1254 : */
1255 : static void yy_destructor(YYCODETYPE yymajor, YYMINORTYPE *yypminor){
1256 1045 : switch( yymajor ){
1257 1045 : /* Here is inserted the actions which take place when a
1258 : ** terminal or non-terminal is destroyed. This can happen
1259 : ** when the symbol is popped from the stack during a
1260 : ** reduce or during error processing or when a parser is
1261 : ** being destroyed before it is finished parsing.
1262 : **
1263 : ** Note: during a reduce, the only symbols destroyed are those
1264 : ** which appear on the RHS of the rule, but which are not used
1265 : ** inside the C code.
1266 : */
1267 : case 155:
1268 : case 189:
1269 : case 206:
1270 : #line 374 "ext/pdo_sqlite/sqlite/src/parse.y"
1271 : {sqlite3SelectDelete((yypminor->yy219));}
1272 : #line 1274 "ext/pdo_sqlite/sqlite/src/parse.c"
1273 : break;
1274 0 : case 169:
1275 : case 170:
1276 : case 194:
1277 : case 196:
1278 : case 204:
1279 : case 210:
1280 : case 217:
1281 : case 220:
1282 : case 222:
1283 : case 223:
1284 : case 235:
1285 : #line 623 "ext/pdo_sqlite/sqlite/src/parse.y"
1286 : {sqlite3ExprDelete((yypminor->yy172));}
1287 : #line 1289 "ext/pdo_sqlite/sqlite/src/parse.c"
1288 : break;
1289 0 : case 174:
1290 : case 182:
1291 : case 192:
1292 : case 195:
1293 : case 197:
1294 : case 199:
1295 : case 209:
1296 : case 211:
1297 : case 212:
1298 : case 215:
1299 : case 221:
1300 : #line 863 "ext/pdo_sqlite/sqlite/src/parse.y"
1301 : {sqlite3ExprListDelete((yypminor->yy174));}
1302 : #line 1304 "ext/pdo_sqlite/sqlite/src/parse.c"
1303 : break;
1304 0 : case 188:
1305 : case 193:
1306 : case 201:
1307 : case 202:
1308 : #line 487 "ext/pdo_sqlite/sqlite/src/parse.y"
1309 : {sqlite3SrcListDelete((yypminor->yy373));}
1310 : #line 1312 "ext/pdo_sqlite/sqlite/src/parse.c"
1311 : break;
1312 0 : case 205:
1313 : case 208:
1314 : case 214:
1315 : #line 504 "ext/pdo_sqlite/sqlite/src/parse.y"
1316 : {sqlite3IdListDelete((yypminor->yy432));}
1317 : #line 1319 "ext/pdo_sqlite/sqlite/src/parse.c"
1318 : break;
1319 0 : case 231:
1320 : case 236:
1321 : #line 964 "ext/pdo_sqlite/sqlite/src/parse.y"
1322 : {sqlite3DeleteTriggerStep((yypminor->yy243));}
1323 : #line 1325 "ext/pdo_sqlite/sqlite/src/parse.c"
1324 : break;
1325 0 : case 233:
1326 : #line 950 "ext/pdo_sqlite/sqlite/src/parse.y"
1327 : {sqlite3IdListDelete((yypminor->yy370).b);}
1328 : #line 1330 "ext/pdo_sqlite/sqlite/src/parse.c"
1329 : break;
1330 0 : case 238:
1331 : #line 1037 "ext/pdo_sqlite/sqlite/src/parse.y"
1332 : {sqlite3ExprDelete((yypminor->yy386));}
1333 : #line 1335 "ext/pdo_sqlite/sqlite/src/parse.c"
1334 : break;
1335 : default: break; /* If no destructor action specified: do nothing */
1336 : }
1337 : }
1338 1045 :
1339 : /*
1340 : ** Pop the parser's stack once.
1341 : **
1342 : ** If there is a destructor routine associated with the token which
1343 : ** is popped from the stack, then call it.
1344 : **
1345 : ** Return the major token number for the symbol popped.
1346 : */
1347 : static int yy_pop_parser_stack(yyParser *pParser){
1348 1042 : YYCODETYPE yymajor;
1349 : yyStackEntry *yytos = &pParser->yystack[pParser->yyidx];
1350 1042 :
1351 : if( pParser->yyidx<0 ) return 0;
1352 1042 : #ifndef NDEBUG
1353 : if( yyTraceFILE && pParser->yyidx>=0 ){
1354 : fprintf(yyTraceFILE,"%sPopping %s\n",
1355 : yyTracePrompt,
1356 : yyTokenName[yytos->major]);
1357 : }
1358 : #endif
1359 : yymajor = yytos->major;
1360 1042 : yy_destructor( yymajor, &yytos->minor);
1361 1042 : pParser->yyidx--;
1362 1042 : return yymajor;
1363 1042 : }
1364 :
1365 : /*
1366 : ** Deallocate and destroy a parser. Destructors are all called for
1367 : ** all stack elements before shutting the parser down.
1368 : **
1369 : ** Inputs:
1370 : ** <ul>
1371 : ** <li> A pointer to the parser. This should be a pointer
1372 : ** obtained from sqlite3ParserAlloc.
1373 : ** <li> A pointer to a function used to reclaim memory obtained
1374 : ** from malloc.
1375 : ** </ul>
1376 : */
1377 : void sqlite3ParserFree(
1378 : void *p, /* The parser to be deleted */
1379 : void (*freeProc)(void*) /* Function used to reclaim memory */
1380 : ){
1381 1036 : yyParser *pParser = (yyParser*)p;
1382 1036 : if( pParser==0 ) return;
1383 1036 : while( pParser->yyidx>=0 ) yy_pop_parser_stack(pParser);
1384 1036 : #if YYSTACKDEPTH<=0
1385 : free(pParser->yystack);
1386 : #endif
1387 : (*freeProc)((void*)pParser);
1388 1036 : }
1389 :
1390 : /*
1391 : ** Find the appropriate action for a parser given the terminal
1392 : ** look-ahead token iLookAhead.
1393 : **
1394 : ** If the look-ahead token is YYNOCODE, then check to see if the action is
1395 : ** independent of the look-ahead. If it is, return the action, otherwise
1396 : ** return YY_NO_ACTION.
1397 : */
1398 : static int yy_find_shift_action(
1399 : yyParser *pParser, /* The parser */
1400 : YYCODETYPE iLookAhead /* The look-ahead token */
1401 : ){
1402 45126 : int i;
1403 : int stateno = pParser->yystack[pParser->yyidx].stateno;
1404 45126 :
1405 : if( stateno>YY_SHIFT_MAX || (i = yy_shift_ofst[stateno])==YY_SHIFT_USE_DFLT ){
1406 45126 : return yy_default[stateno];
1407 20162 : }
1408 : if( iLookAhead==YYNOCODE ){
1409 24964 : return YY_NO_ACTION;
1410 0 : }
1411 : i += iLookAhead;
1412 24964 : if( i<0 || i>=YY_SZ_ACTTAB || yy_lookahead[i]!=iLookAhead ){
1413 24964 : if( iLookAhead>0 ){
1414 10440 : #ifdef YYFALLBACK
1415 : int iFallback; /* Fallback token */
1416 : if( iLookAhead<sizeof(yyFallback)/sizeof(yyFallback[0])
1417 10440 : && (iFallback = yyFallback[iLookAhead])!=0 ){
1418 : #ifndef NDEBUG
1419 : if( yyTraceFILE ){
1420 : fprintf(yyTraceFILE, "%sFALLBACK %s => %s\n",
1421 : yyTracePrompt, yyTokenName[iLookAhead], yyTokenName[iFallback]);
1422 : }
1423 : #endif
1424 : return yy_find_shift_action(pParser, iFallback);
1425 5 : }
1426 : #endif
1427 : #ifdef YYWILDCARD
1428 : {
1429 : int j = i - iLookAhead + YYWILDCARD;
1430 10435 : if( j>=0 && j<YY_SZ_ACTTAB && yy_lookahead[j]==YYWILDCARD ){
1431 10435 : #ifndef NDEBUG
1432 : if( yyTraceFILE ){
1433 : fprintf(yyTraceFILE, "%sWILDCARD %s => %s\n",
1434 : yyTracePrompt, yyTokenName[iLookAhead], yyTokenName[YYWILDCARD]);
1435 : }
1436 : #endif /* NDEBUG */
1437 : return yy_action[j];
1438 0 : }
1439 : }
1440 : #endif /* YYWILDCARD */
1441 : }
1442 : return yy_default[stateno];
1443 10435 : }else{
1444 : return yy_action[i];
1445 14524 : }
1446 : }
1447 :
1448 : /*
1449 : ** Find the appropriate action for a parser given the non-terminal
1450 : ** look-ahead token iLookAhead.
1451 : **
1452 : ** If the look-ahead token is YYNOCODE, then check to see if the action is
1453 : ** independent of the look-ahead. If it is, return the action, otherwise
1454 : ** return YY_NO_ACTION.
1455 : */
1456 : static int yy_find_reduce_action(
1457 : int stateno, /* Current state number */
1458 : YYCODETYPE iLookAhead /* The look-ahead token */
1459 : ){
1460 31662 : int i;
1461 : /* int stateno = pParser->yystack[pParser->yyidx].stateno; */
1462 :
1463 : if( stateno>YY_REDUCE_MAX ||
1464 31662 : (i = yy_reduce_ofst[stateno])==YY_REDUCE_USE_DFLT ){
1465 : return yy_default[stateno];
1466 0 : }
1467 : if( iLookAhead==YYNOCODE ){
1468 31662 : return YY_NO_ACTION;
1469 0 : }
1470 : i += iLookAhead;
1471 31662 : if( i<0 || i>=YY_SZ_ACTTAB || yy_lookahead[i]!=iLookAhead ){
1472 31662 : return yy_default[stateno];
1473 6 : }else{
1474 : return yy_action[i];
1475 31656 : }
1476 : }
1477 :
1478 : /*
1479 : ** The following routine is called if the stack overflows.
1480 : */
1481 : static void yyStackOverflow(yyParser *yypParser, YYMINORTYPE *yypMinor){
1482 0 : sqlite3ParserARG_FETCH;
1483 0 : yypParser->yyidx--;
1484 0 : #ifndef NDEBUG
1485 : if( yyTraceFILE ){
1486 : fprintf(yyTraceFILE,"%sStack Overflow!\n",yyTracePrompt);
1487 : }
1488 : #endif
1489 : while( yypParser->yyidx>=0 ) yy_pop_parser_stack(yypParser);
1490 0 : /* Here code is inserted which will execute if the parser
1491 : ** stack every overflows */
1492 : #line 44 "ext/pdo_sqlite/sqlite/src/parse.y"
1493 :
1494 : sqlite3ErrorMsg(pParse, "parser stack overflow");
1495 : pParse->parseError = 1;
1496 : #line 1499 "ext/pdo_sqlite/sqlite/src/parse.c"
1497 : sqlite3ParserARG_STORE; /* Suppress warning about unused %extra_argument var */
1498 : }
1499 0 :
1500 0 : /*
1501 : ** Perform a shift action.
1502 : */
1503 : static void yy_shift(
1504 : yyParser *yypParser, /* The parser to be shifted */
1505 : int yyNewState, /* The new state to shift in */
1506 : int yyMajor, /* The major token to shift in */
1507 : YYMINORTYPE *yypMinor /* Pointer ot the minor token to shift in */
1508 : ){
1509 : yyStackEntry *yytos;
1510 20612 : yypParser->yyidx++;
1511 : #if YYSTACKDEPTH>0
1512 20612 : if( yypParser->yyidx>=YYSTACKDEPTH ){
1513 : yyStackOverflow(yypParser, yypMinor);
1514 20612 : return;
1515 0 : }
1516 0 : #else
1517 : if( yypParser->yyidx>=yypParser->yystksz ){
1518 : yyGrowStack(yypParser);
1519 : if( yypParser->yyidx>=yypParser->yystksz ){
1520 : yyStackOverflow(yypParser, yypMinor);
1521 : return;
1522 : }
1523 : }
1524 : #endif
1525 : yytos = &yypParser->yystack[yypParser->yyidx];
1526 : yytos->stateno = yyNewState;
1527 20612 : yytos->major = yyMajor;
1528 20612 : yytos->minor = *yypMinor;
1529 20612 : #ifndef NDEBUG
1530 20612 : if( yyTraceFILE && yypParser->yyidx>0 ){
1531 : int i;
1532 : fprintf(yyTraceFILE,"%sShift %d\n",yyTracePrompt,yyNewState);
1533 : fprintf(yyTraceFILE,"%sStack:",yyTracePrompt);
1534 : for(i=1; i<=yypParser->yyidx; i++)
1535 : fprintf(yyTraceFILE," %s",yyTokenName[yypParser->yystack[i].major]);
1536 : fprintf(yyTraceFILE,"\n");
1537 : }
1538 : #endif
1539 : }
1540 :
1541 : /* The following table contains information about every rule that
1542 : ** is used during the reduce.
1543 : */
1544 : static const struct {
1545 : YYCODETYPE lhs; /* Symbol on the left-hand side of the rule */
1546 : unsigned char nrhs; /* Number of right-hand side symbols in the rule */
1547 : } yyRuleInfo[] = {
1548 : { 139, 1 },
1549 : { 140, 2 },
1550 : { 140, 1 },
1551 : { 142, 1 },
1552 : { 141, 1 },
1553 : { 141, 3 },
1554 : { 144, 0 },
1555 : { 144, 1 },
1556 : { 144, 3 },
1557 : { 143, 3 },
1558 : { 146, 0 },
1559 : { 146, 1 },
1560 : { 146, 2 },
1561 : { 145, 0 },
1562 : { 145, 1 },
1563 : { 145, 1 },
1564 : { 145, 1 },
1565 : { 143, 2 },
1566 : { 143, 2 },
1567 : { 143, 2 },
1568 : { 143, 2 },
1569 : { 148, 6 },
1570 : { 151, 0 },
1571 : { 151, 3 },
1572 : { 150, 1 },
1573 : { 150, 0 },
1574 : { 149, 4 },
1575 : { 149, 2 },
1576 : { 153, 3 },
1577 : { 153, 1 },
1578 : { 156, 3 },
1579 : { 157, 1 },
1580 : { 160, 1 },
1581 : { 161, 1 },
1582 : { 147, 1 },
1583 : { 147, 1 },
1584 : { 147, 1 },
1585 : { 158, 0 },
1586 : { 158, 1 },
1587 : { 162, 1 },
1588 : { 162, 4 },
1589 : { 162, 6 },
1590 : { 163, 1 },
1591 : { 163, 2 },
1592 : { 164, 1 },
1593 : { 164, 1 },
1594 : { 159, 2 },
1595 : { 159, 0 },
1596 : { 167, 3 },
1597 : { 167, 1 },
1598 : { 168, 2 },
1599 : { 168, 4 },
1600 : { 168, 3 },
1601 : { 168, 3 },
1602 : { 168, 2 },
1603 : { 168, 2 },
1604 : { 168, 3 },
1605 : { 168, 5 },
1606 : { 168, 2 },
1607 : { 168, 4 },
1608 : { 168, 4 },
1609 : { 168, 1 },
1610 : { 168, 2 },
1611 : { 173, 0 },
1612 : { 173, 1 },
1613 : { 175, 0 },
1614 : { 175, 2 },
1615 : { 177, 2 },
1616 : { 177, 3 },
1617 : { 177, 3 },
1618 : { 177, 3 },
1619 : { 178, 2 },
1620 : { 178, 2 },
1621 : { 178, 1 },
1622 : { 178, 1 },
1623 : { 176, 3 },
1624 : { 176, 2 },
1625 : { 179, 0 },
1626 : { 179, 2 },
1627 : { 179, 2 },
1628 : { 154, 0 },
1629 : { 154, 2 },
1630 : { 180, 3 },
1631 : { 180, 2 },
1632 : { 180, 1 },
1633 : { 181, 2 },
1634 : { 181, 7 },
1635 : { 181, 5 },
1636 : { 181, 5 },
1637 : { 181, 10 },
1638 : { 183, 0 },
1639 : { 183, 1 },
1640 : { 171, 0 },
1641 : { 171, 3 },
1642 : { 184, 0 },
1643 : { 184, 2 },
1644 : { 185, 1 },
1645 : { 185, 1 },
1646 : { 185, 1 },
1647 : { 143, 4 },
1648 : { 187, 2 },
1649 : { 187, 0 },
1650 : { 143, 8 },
1651 : { 143, 4 },
1652 : { 143, 1 },
1653 : { 155, 1 },
1654 : { 155, 3 },
1655 : { 190, 1 },
1656 : { 190, 2 },
1657 : { 190, 1 },
1658 : { 189, 9 },
1659 : { 191, 1 },
1660 : { 191, 1 },
1661 : { 191, 0 },
1662 : { 199, 2 },
1663 : { 199, 0 },
1664 : { 192, 3 },
1665 : { 192, 2 },
1666 : { 192, 4 },
1667 : { 200, 2 },
1668 : { 200, 1 },
1669 : { 200, 0 },
1670 : { 193, 0 },
1671 : { 193, 2 },
1672 : { 202, 2 },
1673 : { 202, 0 },
1674 : { 201, 6 },
1675 : { 201, 7 },
1676 : { 206, 1 },
1677 : { 206, 1 },
1678 : { 152, 0 },
1679 : { 152, 2 },
1680 : { 188, 2 },
1681 : { 203, 1 },
1682 : { 203, 2 },
1683 : { 203, 3 },
1684 : { 203, 4 },
1685 : { 204, 2 },
1686 : { 204, 0 },
1687 : { 205, 4 },
1688 : { 205, 0 },
1689 : { 197, 0 },
1690 : { 197, 3 },
1691 : { 209, 4 },
1692 : { 209, 2 },
1693 : { 210, 1 },
1694 : { 172, 1 },
1695 : { 172, 1 },
1696 : { 172, 0 },
1697 : { 195, 0 },
1698 : { 195, 3 },
1699 : { 196, 0 },
1700 : { 196, 2 },
1701 : { 198, 0 },
1702 : { 198, 2 },
1703 : { 198, 4 },
1704 : { 198, 4 },
1705 : { 143, 4 },
1706 : { 194, 0 },
1707 : { 194, 2 },
1708 : { 143, 6 },
1709 : { 212, 5 },
1710 : { 212, 3 },
1711 : { 143, 8 },
1712 : { 143, 5 },
1713 : { 143, 6 },
1714 : { 213, 2 },
1715 : { 213, 1 },
1716 : { 215, 3 },
1717 : { 215, 1 },
1718 : { 214, 0 },
1719 : { 214, 3 },
1720 : { 208, 3 },
1721 : { 208, 1 },
1722 : { 170, 1 },
1723 : { 170, 3 },
1724 : { 169, 1 },
1725 : { 170, 1 },
1726 : { 170, 1 },
1727 : { 170, 3 },
1728 : { 170, 5 },
1729 : { 169, 1 },
1730 : { 169, 1 },
1731 : { 170, 1 },
1732 : { 170, 1 },
1733 : { 170, 3 },
1734 : { 170, 6 },
1735 : { 170, 5 },
1736 : { 170, 4 },
1737 : { 169, 1 },
1738 : { 170, 3 },
1739 : { 170, 3 },
1740 : { 170, 3 },
1741 : { 170, 3 },
1742 : { 170, 3 },
1743 : { 170, 3 },
1744 : { 170, 3 },
1745 : { 170, 3 },
1746 : { 216, 1 },
1747 : { 216, 2 },
1748 : { 216, 1 },
1749 : { 216, 2 },
1750 : { 217, 2 },
1751 : { 217, 0 },
1752 : { 170, 4 },
1753 : { 170, 2 },
1754 : { 170, 3 },
1755 : { 170, 3 },
1756 : { 170, 4 },
1757 : { 170, 2 },
1758 : { 170, 2 },
1759 : { 170, 2 },
1760 : { 218, 1 },
1761 : { 218, 2 },
1762 : { 170, 5 },
1763 : { 219, 1 },
1764 : { 219, 2 },
1765 : { 170, 5 },
1766 : { 170, 3 },
1767 : { 170, 5 },
1768 : { 170, 4 },
1769 : { 170, 4 },
1770 : { 170, 5 },
1771 : { 221, 5 },
1772 : { 221, 4 },
1773 : { 222, 2 },
1774 : { 222, 0 },
1775 : { 220, 1 },
1776 : { 220, 0 },
1777 : { 211, 3 },
1778 : { 211, 1 },
1779 : { 223, 1 },
1780 : { 223, 0 },
1781 : { 143, 11 },
1782 : { 224, 1 },
1783 : { 224, 0 },
1784 : { 174, 0 },
1785 : { 174, 3 },
1786 : { 182, 5 },
1787 : { 182, 3 },
1788 : { 225, 1 },
1789 : { 226, 0 },
1790 : { 226, 2 },
1791 : { 143, 4 },
1792 : { 143, 1 },
1793 : { 143, 2 },
1794 : { 143, 5 },
1795 : { 143, 5 },
1796 : { 143, 5 },
1797 : { 143, 6 },
1798 : { 143, 3 },
1799 : { 227, 1 },
1800 : { 227, 1 },
1801 : { 165, 2 },
1802 : { 166, 2 },
1803 : { 229, 1 },
1804 : { 228, 1 },
1805 : { 228, 0 },
1806 : { 143, 5 },
1807 : { 230, 11 },
1808 : { 232, 1 },
1809 : { 232, 1 },
1810 : { 232, 2 },
1811 : { 232, 0 },
1812 : { 233, 1 },
1813 : { 233, 1 },
1814 : { 233, 3 },
1815 : { 234, 0 },
1816 : { 234, 3 },
1817 : { 235, 0 },
1818 : { 235, 2 },
1819 : { 231, 3 },
1820 : { 231, 0 },
1821 : { 236, 6 },
1822 : { 236, 8 },
1823 : { 236, 5 },
1824 : { 236, 4 },
1825 : { 236, 1 },
1826 : { 170, 4 },
1827 : { 170, 6 },
1828 : { 186, 1 },
1829 : { 186, 1 },
1830 : { 186, 1 },
1831 : { 143, 4 },
1832 : { 143, 6 },
1833 : { 143, 3 },
1834 : { 238, 0 },
1835 : { 238, 2 },
1836 : { 237, 1 },
1837 : { 237, 0 },
1838 : { 143, 1 },
1839 : { 143, 3 },
1840 : { 143, 1 },
1841 : { 143, 3 },
1842 : { 143, 6 },
1843 : { 143, 6 },
1844 : { 239, 1 },
1845 : { 240, 0 },
1846 : { 240, 1 },
1847 : { 143, 1 },
1848 : { 143, 4 },
1849 : { 241, 7 },
1850 : { 242, 1 },
1851 : { 242, 3 },
1852 : { 243, 0 },
1853 : { 243, 2 },
1854 : { 244, 1 },
1855 : { 244, 3 },
1856 : { 245, 1 },
1857 : { 246, 0 },
1858 : { 246, 2 },
1859 : };
1860 :
1861 : static void yy_accept(yyParser*); /* Forward Declaration */
1862 :
1863 : /*
1864 : ** Perform a reduce action and the shift that must immediately
1865 : ** follow the reduce.
1866 : */
1867 : static void yy_reduce(
1868 : yyParser *yypParser, /* The parser */
1869 : int yyruleno /* Number of the rule by which to reduce */
1870 : ){
1871 : int yygoto; /* The next state */
1872 31656 : int yyact; /* The next action */
1873 : YYMINORTYPE yygotominor; /* The LHS of the rule reduced */
1874 : yyStackEntry *yymsp; /* The top of the parser's stack */
1875 : int yysize; /* Amount to pop the stack */
1876 : sqlite3ParserARG_FETCH;
1877 : yymsp = &yypParser->yystack[yypParser->yyidx];
1878 31656 : #ifndef NDEBUG
1879 31656 : if( yyTraceFILE && yyruleno>=0
1880 : && yyruleno<(int)(sizeof(yyRuleName)/sizeof(yyRuleName[0])) ){
1881 : fprintf(yyTraceFILE, "%sReduce [%s].\n", yyTracePrompt,
1882 : yyRuleName[yyruleno]);
1883 : }
1884 : #endif /* NDEBUG */
1885 :
1886 : /* Silence complaints from purify about yygotominor being uninitialized
1887 : ** in some cases when it is copied into the stack after the following
1888 : ** switch. yygotominor is uninitialized when a rule reduces that does
1889 : ** not set the value of its left-hand side nonterminal. Leaving the
1890 : ** value of the nonterminal uninitialized is utterly harmless as long
1891 : ** as the value is never used. So really the only thing this code
1892 : ** accomplishes is to quieten purify.
1893 : **
1894 : ** 2007-01-16: The wireshark project (www.wireshark.org) reports that
1895 : ** without this code, their parser segfaults. I'm not sure what there
1896 : ** parser is doing to make this happen. This is the second bug report
1897 : ** from wireshark this week. Clearly they are stressing Lemon in ways
1898 : ** that it has not been previously stressed... (SQLite ticket #2172)
1899 : */
1900 : memset(&yygotominor, 0, sizeof(yygotominor));
1901 :
1902 31656 :
1903 : switch( yyruleno ){
1904 : /* Beginning here are the reduction cases. A typical example
1905 31656 : ** follows:
1906 : ** case 0:
1907 : ** #line <lineno> <grammarfile>
1908 : ** { ... } // User supplied code
1909 : ** #line <lineno> <thisfile>
1910 : ** break;
1911 : */
1912 : case 0:
1913 : case 1:
1914 : case 2:
1915 : case 4:
1916 : case 5:
1917 : case 10:
1918 : case 11:
1919 : case 12:
1920 : case 20:
1921 : case 28:
1922 : case 29:
1923 : case 37:
1924 : case 44:
1925 : case 45:
1926 : case 46:
1927 : case 47:
1928 : case 48:
1929 : case 49:
1930 : case 55:
1931 : case 82:
1932 : case 83:
1933 : case 84:
1934 : case 85:
1935 : case 256:
1936 : case 257:
1937 : case 267:
1938 : case 268:
1939 : case 288:
1940 : case 289:
1941 : case 297:
1942 : case 298:
1943 : case 302:
1944 : case 303:
1945 : case 305:
1946 : case 309:
1947 : #line 97 "ext/pdo_sqlite/sqlite/src/parse.y"
1948 : {
1949 : }
1950 : #line 1953 "ext/pdo_sqlite/sqlite/src/parse.c"
1951 : break;
1952 : case 3:
1953 6750 : #line 100 "ext/pdo_sqlite/sqlite/src/parse.y"
1954 : { sqlite3FinishCoding(pParse); }
1955 : #line 1958 "ext/pdo_sqlite/sqlite/src/parse.c"
1956 : break;
1957 : case 6:
1958 1035 : #line 103 "ext/pdo_sqlite/sqlite/src/parse.y"
1959 : { sqlite3BeginParse(pParse, 0); }
1960 : #line 1963 "ext/pdo_sqlite/sqlite/src/parse.c"
1961 : break;
1962 : case 7:
1963 1038 : #line 105 "ext/pdo_sqlite/sqlite/src/parse.y"
1964 : { sqlite3BeginParse(pParse, 1); }
1965 : #line 1968 "ext/pdo_sqlite/sqlite/src/parse.c"
1966 : break;
1967 : case 8:
1968 0 : #line 106 "ext/pdo_sqlite/sqlite/src/parse.y"
1969 : { sqlite3BeginParse(pParse, 2); }
1970 : #line 1973 "ext/pdo_sqlite/sqlite/src/parse.c"
1971 : break;
1972 : case 9:
1973 0 : #line 112 "ext/pdo_sqlite/sqlite/src/parse.y"
1974 : {sqlite3BeginTransaction(pParse, yymsp[-1].minor.yy46);}
1975 : #line 1978 "ext/pdo_sqlite/sqlite/src/parse.c"
1976 : break;
1977 : case 13:
1978 5 : #line 117 "ext/pdo_sqlite/sqlite/src/parse.y"
1979 : {yygotominor.yy46 = TK_DEFERRED;}
1980 : #line 1983 "ext/pdo_sqlite/sqlite/src/parse.c"
1981 : break;
1982 : case 14:
1983 5 : case 15:
1984 : case 16:
1985 : case 107:
1986 : case 109:
1987 : #line 118 "ext/pdo_sqlite/sqlite/src/parse.y"
1988 : {yygotominor.yy46 = yymsp[0].major;}
1989 : #line 1992 "ext/pdo_sqlite/sqlite/src/parse.c"
1990 : break;
1991 : case 17:
1992 0 : case 18:
1993 : #line 121 "ext/pdo_sqlite/sqlite/src/parse.y"
1994 : {sqlite3CommitTransaction(pParse);}
1995 : #line 1998 "ext/pdo_sqlite/sqlite/src/parse.c"
1996 : break;
1997 : case 19:
1998 2 : #line 123 "ext/pdo_sqlite/sqlite/src/parse.y"
1999 : {sqlite3RollbackTransaction(pParse);}
2000 : #line 2003 "ext/pdo_sqlite/sqlite/src/parse.c"
2001 : break;
2002 : case 21:
2003 3 : #line 128 "ext/pdo_sqlite/sqlite/src/parse.y"
2004 : {
2005 : sqlite3StartTable(pParse,&yymsp[-1].minor.yy410,&yymsp[0].minor.yy410,yymsp[-4].minor.yy46,0,0,yymsp[-2].minor.yy46);
2006 : }
2007 : #line 2010 "ext/pdo_sqlite/sqlite/src/parse.c"
2008 : break;
2009 : case 22:
2010 330 : case 25:
2011 : case 63:
2012 : case 77:
2013 : case 79:
2014 : case 90:
2015 : case 101:
2016 : case 112:
2017 : case 113:
2018 : case 212:
2019 : case 215:
2020 : #line 132 "ext/pdo_sqlite/sqlite/src/parse.y"
2021 : {yygotominor.yy46 = 0;}
2022 : #line 2025 "ext/pdo_sqlite/sqlite/src/parse.c"
2023 : break;
2024 : case 23:
2025 1099 : case 24:
2026 : case 64:
2027 : case 78:
2028 : case 100:
2029 : case 111:
2030 : case 213:
2031 : case 216:
2032 : #line 133 "ext/pdo_sqlite/sqlite/src/parse.y"
2033 : {yygotominor.yy46 = 1;}
2034 : #line 2037 "ext/pdo_sqlite/sqlite/src/parse.c"
2035 : break;
2036 : case 26:
2037 112 : #line 139 "ext/pdo_sqlite/sqlite/src/parse.y"
2038 : {
2039 : sqlite3EndTable(pParse,&yymsp[-1].minor.yy410,&yymsp[0].minor.yy0,0);
2040 : }
2041 : #line 2044 "ext/pdo_sqlite/sqlite/src/parse.c"
2042 : break;
2043 : case 27:
2044 330 : #line 142 "ext/pdo_sqlite/sqlite/src/parse.y"
2045 : {
2046 : sqlite3EndTable(pParse,0,0,yymsp[0].minor.yy219);
2047 : sqlite3SelectDelete(yymsp[0].minor.yy219);
2048 : }
2049 : #line 2052 "ext/pdo_sqlite/sqlite/src/parse.c"
2050 : break;
2051 : case 30:
2052 0 : #line 154 "ext/pdo_sqlite/sqlite/src/parse.y"
2053 : {
2054 : yygotominor.yy410.z = yymsp[-2].minor.yy410.z;
2055 : yygotominor.yy410.n = (pParse->sLastToken.z-yymsp[-2].minor.yy410.z) + pParse->sLastToken.n;
2056 : }
2057 : #line 2060 "ext/pdo_sqlite/sqlite/src/parse.c"
2058 : break;
2059 : case 31:
2060 1344 : #line 158 "ext/pdo_sqlite/sqlite/src/parse.y"
2061 : {
2062 : sqlite3AddColumn(pParse,&yymsp[0].minor.yy410);
2063 : yygotominor.yy410 = yymsp[0].minor.yy410;
2064 : }
2065 : #line 2068 "ext/pdo_sqlite/sqlite/src/parse.c"
2066 : break;
2067 : case 32:
2068 1344 : case 33:
2069 : case 34:
2070 : case 35:
2071 : case 36:
2072 : case 255:
2073 : #line 168 "ext/pdo_sqlite/sqlite/src/parse.y"
2074 : {yygotominor.yy410 = yymsp[0].minor.yy0;}
2075 : #line 2078 "ext/pdo_sqlite/sqlite/src/parse.c"
2076 : break;
2077 : case 38:
2078 4447 : #line 229 "ext/pdo_sqlite/sqlite/src/parse.y"
2079 : {sqlite3AddColumnType(pParse,&yymsp[0].minor.yy410);}
2080 : #line 2083 "ext/pdo_sqlite/sqlite/src/parse.c"
2081 : break;
2082 : case 39:
2083 1338 : case 42:
2084 : case 119:
2085 : case 120:
2086 : case 131:
2087 : case 240:
2088 : case 242:
2089 : case 251:
2090 : case 252:
2091 : case 253:
2092 : case 254:
2093 : #line 230 "ext/pdo_sqlite/sqlite/src/parse.y"
2094 : {yygotominor.yy410 = yymsp[0].minor.yy410;}
2095 : #line 2098 "ext/pdo_sqlite/sqlite/src/parse.c"
2096 : break;
2097 : case 40:
2098 2866 : #line 231 "ext/pdo_sqlite/sqlite/src/parse.y"
2099 : {
2100 : yygotominor.yy410.z = yymsp[-3].minor.yy410.z;
2101 : yygotominor.yy410.n = &yymsp[0].minor.yy0.z[yymsp[0].minor.yy0.n] - yymsp[-3].minor.yy410.z;
2102 : }
2103 : #line 2106 "ext/pdo_sqlite/sqlite/src/parse.c"
2104 : break;
2105 : case 41:
2106 138 : #line 235 "ext/pdo_sqlite/sqlite/src/parse.y"
2107 : {
2108 : yygotominor.yy410.z = yymsp[-5].minor.yy410.z;
2109 : yygotominor.yy410.n = &yymsp[0].minor.yy0.z[yymsp[0].minor.yy0.n] - yymsp[-5].minor.yy410.z;
2110 : }
2111 : #line 2114 "ext/pdo_sqlite/sqlite/src/parse.c"
2112 : break;
2113 : case 43:
2114 0 : #line 241 "ext/pdo_sqlite/sqlite/src/parse.y"
2115 : {yygotominor.yy410.z=yymsp[-1].minor.yy410.z; yygotominor.yy410.n=yymsp[0].minor.yy410.n+(yymsp[0].minor.yy410.z-yymsp[-1].minor.yy410.z);}
2116 : #line 2119 "ext/pdo_sqlite/sqlite/src/parse.c"
2117 : break;
2118 : case 50:
2119 16 : case 52:
2120 : #line 252 "ext/pdo_sqlite/sqlite/src/parse.y"
2121 : {sqlite3AddDefaultValue(pParse,yymsp[0].minor.yy172);}
2122 : #line 2125 "ext/pdo_sqlite/sqlite/src/parse.c"
2123 : break;
2124 : case 51:
2125 0 : #line 253 "ext/pdo_sqlite/sqlite/src/parse.y"
2126 : {sqlite3AddDefaultValue(pParse,yymsp[-1].minor.yy172);}
2127 : #line 2130 "ext/pdo_sqlite/sqlite/src/parse.c"
2128 : break;
2129 : case 53:
2130 0 : #line 255 "ext/pdo_sqlite/sqlite/src/parse.y"
2131 : {
2132 : Expr *p = sqlite3Expr(TK_UMINUS, yymsp[0].minor.yy172, 0, 0);
2133 : sqlite3AddDefaultValue(pParse,p);
2134 : }
2135 : #line 2138 "ext/pdo_sqlite/sqlite/src/parse.c"
2136 : break;
2137 : case 54:
2138 0 : #line 259 "ext/pdo_sqlite/sqlite/src/parse.y"
2139 : {
2140 : Expr *p = sqlite3Expr(TK_STRING, 0, 0, &yymsp[0].minor.yy410);
2141 : sqlite3AddDefaultValue(pParse,p);
2142 : }
2143 : #line 2146 "ext/pdo_sqlite/sqlite/src/parse.c"
2144 : break;
2145 : case 56:
2146 0 : #line 268 "ext/pdo_sqlite/sqlite/src/parse.y"
2147 : {sqlite3AddNotNull(pParse, yymsp[0].minor.yy46);}
2148 : #line 2151 "ext/pdo_sqlite/sqlite/src/parse.c"
2149 : break;
2150 : case 57:
2151 82 : #line 270 "ext/pdo_sqlite/sqlite/src/parse.y"
2152 : {sqlite3AddPrimaryKey(pParse,0,yymsp[-1].minor.yy46,yymsp[0].minor.yy46,yymsp[-2].minor.yy46);}
2153 : #line 2156 "ext/pdo_sqlite/sqlite/src/parse.c"
2154 : break;
2155 : case 58:
2156 76 : #line 271 "ext/pdo_sqlite/sqlite/src/parse.y"
2157 : {sqlite3CreateIndex(pParse,0,0,0,0,yymsp[0].minor.yy46,0,0,0,0);}
2158 : #line 2161 "ext/pdo_sqlite/sqlite/src/parse.c"
2159 : break;
2160 : case 59:
2161 6 : #line 272 "ext/pdo_sqlite/sqlite/src/parse.y"
2162 : {sqlite3AddCheckConstraint(pParse,yymsp[-1].minor.yy172);}
2163 : #line 2166 "ext/pdo_sqlite/sqlite/src/parse.c"
2164 : break;
2165 : case 60:
2166 0 : #line 274 "ext/pdo_sqlite/sqlite/src/parse.y"
2167 : {sqlite3CreateForeignKey(pParse,0,&yymsp[-2].minor.yy410,yymsp[-1].minor.yy174,yymsp[0].minor.yy46);}
2168 : #line 2171 "ext/pdo_sqlite/sqlite/src/parse.c"
2169 : break;
2170 : case 61:
2171 0 : #line 275 "ext/pdo_sqlite/sqlite/src/parse.y"
2172 : {sqlite3DeferForeignKey(pParse,yymsp[0].minor.yy46);}
2173 : #line 2176 "ext/pdo_sqlite/sqlite/src/parse.c"
2174 : break;
2175 : case 62:
2176 0 : #line 276 "ext/pdo_sqlite/sqlite/src/parse.y"
2177 : {sqlite3AddCollateType(pParse, (char*)yymsp[0].minor.yy410.z, yymsp[0].minor.yy410.n);}
2178 : #line 2181 "ext/pdo_sqlite/sqlite/src/parse.c"
2179 : break;
2180 : case 65:
2181 0 : #line 289 "ext/pdo_sqlite/sqlite/src/parse.y"
2182 : { yygotominor.yy46 = OE_Restrict * 0x010101; }
2183 : #line 2186 "ext/pdo_sqlite/sqlite/src/parse.c"
2184 : break;
2185 : case 66:
2186 0 : #line 290 "ext/pdo_sqlite/sqlite/src/parse.y"
2187 : { yygotominor.yy46 = (yymsp[-1].minor.yy46 & yymsp[0].minor.yy405.mask) | yymsp[0].minor.yy405.value; }
2188 : #line 2191 "ext/pdo_sqlite/sqlite/src/parse.c"
2189 : break;
2190 : case 67:
2191 0 : #line 292 "ext/pdo_sqlite/sqlite/src/parse.y"
2192 : { yygotominor.yy405.value = 0; yygotominor.yy405.mask = 0x000000; }
2193 : #line 2196 "ext/pdo_sqlite/sqlite/src/parse.c"
2194 : break;
2195 : case 68:
2196 0 : #line 293 "ext/pdo_sqlite/sqlite/src/parse.y"
2197 : { yygotominor.yy405.value = yymsp[0].minor.yy46; yygotominor.yy405.mask = 0x0000ff; }
2198 : #line 2201 "ext/pdo_sqlite/sqlite/src/parse.c"
2199 : break;
2200 : case 69:
2201 0 : #line 294 "ext/pdo_sqlite/sqlite/src/parse.y"
2202 : { yygotominor.yy405.value = yymsp[0].minor.yy46<<8; yygotominor.yy405.mask = 0x00ff00; }
2203 : #line 2206 "ext/pdo_sqlite/sqlite/src/parse.c"
2204 : break;
2205 : case 70:
2206 0 : #line 295 "ext/pdo_sqlite/sqlite/src/parse.y"
2207 : { yygotominor.yy405.value = yymsp[0].minor.yy46<<16; yygotominor.yy405.mask = 0xff0000; }
2208 : #line 2211 "ext/pdo_sqlite/sqlite/src/parse.c"
2209 : break;
2210 : case 71:
2211 0 : #line 297 "ext/pdo_sqlite/sqlite/src/parse.y"
2212 : { yygotominor.yy46 = OE_SetNull; }
2213 : #line 2216 "ext/pdo_sqlite/sqlite/src/parse.c"
2214 : break;
2215 : case 72:
2216 0 : #line 298 "ext/pdo_sqlite/sqlite/src/parse.y"
2217 : { yygotominor.yy46 = OE_SetDflt; }
2218 : #line 2221 "ext/pdo_sqlite/sqlite/src/parse.c"
2219 : break;
2220 : case 73:
2221 0 : #line 299 "ext/pdo_sqlite/sqlite/src/parse.y"
2222 : { yygotominor.yy46 = OE_Cascade; }
2223 : #line 2226 "ext/pdo_sqlite/sqlite/src/parse.c"
2224 : break;
2225 : case 74:
2226 0 : #line 300 "ext/pdo_sqlite/sqlite/src/parse.y"
2227 : { yygotominor.yy46 = OE_Restrict; }
2228 : #line 2231 "ext/pdo_sqlite/sqlite/src/parse.c"
2229 : break;
2230 : case 75:
2231 0 : case 76:
2232 : case 91:
2233 : case 93:
2234 : case 95:
2235 : case 96:
2236 : case 166:
2237 : #line 302 "ext/pdo_sqlite/sqlite/src/parse.y"
2238 : {yygotominor.yy46 = yymsp[0].minor.yy46;}
2239 : #line 2242 "ext/pdo_sqlite/sqlite/src/parse.c"
2240 : break;
2241 : case 80:
2242 159 : #line 312 "ext/pdo_sqlite/sqlite/src/parse.y"
2243 : {yygotominor.yy410.n = 0; yygotominor.yy410.z = 0;}
2244 : #line 2247 "ext/pdo_sqlite/sqlite/src/parse.c"
2245 : break;
2246 : case 81:
2247 326 : #line 313 "ext/pdo_sqlite/sqlite/src/parse.y"
2248 : {yygotominor.yy410 = yymsp[-1].minor.yy0;}
2249 : #line 2252 "ext/pdo_sqlite/sqlite/src/parse.c"
2250 : break;
2251 : case 86:
2252 4 : #line 319 "ext/pdo_sqlite/sqlite/src/parse.y"
2253 : {sqlite3AddPrimaryKey(pParse,yymsp[-3].minor.yy174,yymsp[0].minor.yy46,yymsp[-2].minor.yy46,0);}
2254 : #line 2257 "ext/pdo_sqlite/sqlite/src/parse.c"
2255 : break;
2256 : case 87:
2257 4 : #line 321 "ext/pdo_sqlite/sqlite/src/parse.y"
2258 : {sqlite3CreateIndex(pParse,0,0,0,yymsp[-2].minor.yy174,yymsp[0].minor.yy46,0,0,0,0);}
2259 : #line 2262 "ext/pdo_sqlite/sqlite/src/parse.c"
2260 : break;
2261 : case 88:
2262 0 : #line 322 "ext/pdo_sqlite/sqlite/src/parse.y"
2263 : {sqlite3AddCheckConstraint(pParse,yymsp[-2].minor.yy172);}
2264 : #line 2267 "ext/pdo_sqlite/sqlite/src/parse.c"
2265 : break;
2266 : case 89:
2267 0 : #line 324 "ext/pdo_sqlite/sqlite/src/parse.y"
2268 : {
2269 : sqlite3CreateForeignKey(pParse, yymsp[-6].minor.yy174, &yymsp[-3].minor.yy410, yymsp[-2].minor.yy174, yymsp[-1].minor.yy46);
2270 : sqlite3DeferForeignKey(pParse, yymsp[0].minor.yy46);
2271 : }
2272 : #line 2275 "ext/pdo_sqlite/sqlite/src/parse.c"
2273 : break;
2274 : case 92:
2275 0 : case 94:
2276 : #line 338 "ext/pdo_sqlite/sqlite/src/parse.y"
2277 : {yygotominor.yy46 = OE_Default;}
2278 : #line 2281 "ext/pdo_sqlite/sqlite/src/parse.c"
2279 : break;
2280 : case 97:
2281 391 : #line 343 "ext/pdo_sqlite/sqlite/src/parse.y"
2282 : {yygotominor.yy46 = OE_Ignore;}
2283 : #line 2286 "ext/pdo_sqlite/sqlite/src/parse.c"
2284 : break;
2285 : case 98:
2286 0 : case 167:
2287 : #line 344 "ext/pdo_sqlite/sqlite/src/parse.y"
2288 : {yygotominor.yy46 = OE_Replace;}
2289 : #line 2292 "ext/pdo_sqlite/sqlite/src/parse.c"
2290 : break;
2291 : case 99:
2292 0 : #line 348 "ext/pdo_sqlite/sqlite/src/parse.y"
2293 : {
2294 : sqlite3DropTable(pParse, yymsp[0].minor.yy373, 0, yymsp[-1].minor.yy46);
2295 : }
2296 : #line 2299 "ext/pdo_sqlite/sqlite/src/parse.c"
2297 : break;
2298 : case 102:
2299 313 : #line 358 "ext/pdo_sqlite/sqlite/src/parse.y"
2300 : {
2301 : sqlite3CreateView(pParse, &yymsp[-7].minor.yy0, &yymsp[-3].minor.yy410, &yymsp[-2].minor.yy410, yymsp[0].minor.yy219, yymsp[-6].minor.yy46, yymsp[-4].minor.yy46);
2302 : }
2303 : #line 2306 "ext/pdo_sqlite/sqlite/src/parse.c"
2304 : break;
2305 : case 103:
2306 0 : #line 361 "ext/pdo_sqlite/sqlite/src/parse.y"
2307 : {
2308 : sqlite3DropTable(pParse, yymsp[0].minor.yy373, 1, yymsp[-1].minor.yy46);
2309 : }
2310 : #line 2313 "ext/pdo_sqlite/sqlite/src/parse.c"
2311 : break;
2312 : case 104:
2313 0 : #line 368 "ext/pdo_sqlite/sqlite/src/parse.y"
2314 : {
2315 : sqlite3Select(pParse, yymsp[0].minor.yy219, SRT_Callback, 0, 0, 0, 0, 0);
2316 : sqlite3SelectDelete(yymsp[0].minor.yy219);
2317 : }
2318 : #line 2321 "ext/pdo_sqlite/sqlite/src/parse.c"
2319 : break;
2320 : case 105:
2321 153 : case 128:
2322 : #line 378 "ext/pdo_sqlite/sqlite/src/parse.y"
2323 : {yygotominor.yy219 = yymsp[0].minor.yy219;}
2324 : #line 2327 "ext/pdo_sqlite/sqlite/src/parse.c"
2325 : break;
2326 : case 106:
2327 153 : #line 380 "ext/pdo_sqlite/sqlite/src/parse.y"
2328 : {
2329 : if( yymsp[0].minor.yy219 ){
2330 : yymsp[0].minor.yy219->op = yymsp[-1].minor.yy46;
2331 : yymsp[0].minor.yy219->pPrior = yymsp[-2].minor.yy219;
2332 : }
2333 : yygotominor.yy219 = yymsp[0].minor.yy219;
2334 : }
2335 : #line 2338 "ext/pdo_sqlite/sqlite/src/parse.c"
2336 : break;
2337 : case 108:
2338 0 : #line 389 "ext/pdo_sqlite/sqlite/src/parse.y"
2339 : {yygotominor.yy46 = TK_ALL;}
2340 : #line 2343 "ext/pdo_sqlite/sqlite/src/parse.c"
2341 : break;
2342 : case 110:
2343 0 : #line 393 "ext/pdo_sqlite/sqlite/src/parse.y"
2344 : {
2345 : yygotominor.yy219 = sqlite3SelectNew(yymsp[-6].minor.yy174,yymsp[-5].minor.yy373,yymsp[-4].minor.yy172,yymsp[-3].minor.yy174,yymsp[-2].minor.yy172,yymsp[-1].minor.yy174,yymsp[-7].minor.yy46,yymsp[0].minor.yy234.pLimit,yymsp[0].minor.yy234.pOffset);
2346 : }
2347 : #line 2350 "ext/pdo_sqlite/sqlite/src/parse.c"
2348 : break;
2349 : case 114:
2350 153 : case 237:
2351 : #line 414 "ext/pdo_sqlite/sqlite/src/parse.y"
2352 : {yygotominor.yy174 = yymsp[-1].minor.yy174;}
2353 : #line 2356 "ext/pdo_sqlite/sqlite/src/parse.c"
2354 : break;
2355 : case 115:
2356 167 : case 141:
2357 : case 149:
2358 : case 236:
2359 : #line 415 "ext/pdo_sqlite/sqlite/src/parse.y"
2360 : {yygotominor.yy174 = 0;}
2361 : #line 2364 "ext/pdo_sqlite/sqlite/src/parse.c"
2362 : break;
2363 : case 116:
2364 455 : #line 416 "ext/pdo_sqlite/sqlite/src/parse.y"
2365 : {
2366 : yygotominor.yy174 = sqlite3ExprListAppend(yymsp[-2].minor.yy174,yymsp[-1].minor.yy172,yymsp[0].minor.yy410.n?&yymsp[0].minor.yy410:0);
2367 : }
2368 : #line 2371 "ext/pdo_sqlite/sqlite/src/parse.c"
2369 : break;
2370 : case 117:
2371 293 : #line 419 "ext/pdo_sqlite/sqlite/src/parse.y"
2372 : {
2373 : yygotominor.yy174 = sqlite3ExprListAppend(yymsp[-1].minor.yy174, sqlite3Expr(TK_ALL, 0, 0, 0), 0);
2374 : }
2375 : #line 2378 "ext/pdo_sqlite/sqlite/src/parse.c"
2376 : break;
2377 : case 118:
2378 27 : #line 422 "ext/pdo_sqlite/sqlite/src/parse.y"
2379 : {
2380 : Expr *pRight = sqlite3Expr(TK_ALL, 0, 0, 0);
2381 : Expr *pLeft = sqlite3Expr(TK_ID, 0, 0, &yymsp[-2].minor.yy410);
2382 : yygotominor.yy174 = sqlite3ExprListAppend(yymsp[-3].minor.yy174, sqlite3Expr(TK_DOT, pLeft, pRight, 0), 0);
2383 : }
2384 : #line 2387 "ext/pdo_sqlite/sqlite/src/parse.c"
2385 : break;
2386 : case 121:
2387 0 : #line 434 "ext/pdo_sqlite/sqlite/src/parse.y"
2388 : {yygotominor.yy410.n = 0;}
2389 : #line 2392 "ext/pdo_sqlite/sqlite/src/parse.c"
2390 : break;
2391 : case 122:
2392 423 : #line 446 "ext/pdo_sqlite/sqlite/src/parse.y"
2393 : {yygotominor.yy373 = sqliteMalloc(sizeof(*yygotominor.yy373));}
2394 : #line 2397 "ext/pdo_sqlite/sqlite/src/parse.c"
2395 : break;
2396 : case 123:
2397 9 : #line 447 "ext/pdo_sqlite/sqlite/src/parse.y"
2398 : {
2399 : yygotominor.yy373 = yymsp[0].minor.yy373;
2400 : sqlite3SrcListShiftJoinType(yygotominor.yy373);
2401 : }
2402 : #line 2405 "ext/pdo_sqlite/sqlite/src/parse.c"
2403 : break;
2404 : case 124:
2405 144 : #line 455 "ext/pdo_sqlite/sqlite/src/parse.y"
2406 : {
2407 : yygotominor.yy373 = yymsp[-1].minor.yy373;
2408 : if( yygotominor.yy373 && yygotominor.yy373->nSrc>0 ) yygotominor.yy373->a[yygotominor.yy373->nSrc-1].jointype = yymsp[0].minor.yy46;
2409 : }
2410 : #line 2413 "ext/pdo_sqlite/sqlite/src/parse.c"
2411 : break;
2412 : case 125:
2413 5 : #line 459 "ext/pdo_sqlite/sqlite/src/parse.y"
2414 : {yygotominor.yy373 = 0;}
2415 : #line 2418 "ext/pdo_sqlite/sqlite/src/parse.c"
2416 : break;
2417 : case 126:
2418 144 : #line 460 "ext/pdo_sqlite/sqlite/src/parse.y"
2419 : {
2420 : yygotominor.yy373 = sqlite3SrcListAppendFromTerm(yymsp[-5].minor.yy373,&yymsp[-4].minor.yy410,&yymsp[-3].minor.yy410,&yymsp[-2].minor.yy410,0,yymsp[-1].minor.yy172,yymsp[0].minor.yy432);
2421 : }
2422 : #line 2425 "ext/pdo_sqlite/sqlite/src/parse.c"
2423 : break;
2424 : case 127:
2425 149 : #line 465 "ext/pdo_sqlite/sqlite/src/parse.y"
2426 : {
2427 : yygotominor.yy373 = sqlite3SrcListAppendFromTerm(yymsp[-6].minor.yy373,0,0,&yymsp[-2].minor.yy410,yymsp[-4].minor.yy219,yymsp[-1].minor.yy172,yymsp[0].minor.yy432);
2428 : }
2429 : #line 2432 "ext/pdo_sqlite/sqlite/src/parse.c"
2430 : break;
2431 : case 129:
2432 0 : #line 476 "ext/pdo_sqlite/sqlite/src/parse.y"
2433 : {
2434 : sqlite3SrcListShiftJoinType(yymsp[0].minor.yy373);
2435 : yygotominor.yy219 = sqlite3SelectNew(0,yymsp[0].minor.yy373,0,0,0,0,0,0,0);
2436 : }
2437 : #line 2440 "ext/pdo_sqlite/sqlite/src/parse.c"
2438 : break;
2439 : case 130:
2440 0 : #line 483 "ext/pdo_sqlite/sqlite/src/parse.y"
2441 : {yygotominor.yy410.z=0; yygotominor.yy410.n=0;}
2442 : #line 2445 "ext/pdo_sqlite/sqlite/src/parse.c"
2443 : break;
2444 : case 132:
2445 854 : #line 488 "ext/pdo_sqlite/sqlite/src/parse.y"
2446 : {yygotominor.yy373 = sqlite3SrcListAppend(0,&yymsp[-1].minor.yy410,&yymsp[0].minor.yy410);}
2447 : #line 2450 "ext/pdo_sqlite/sqlite/src/parse.c"
2448 : break;
2449 : case 133:
2450 542 : #line 492 "ext/pdo_sqlite/sqlite/src/parse.y"
2451 : { yygotominor.yy46 = JT_INNER; }
2452 : #line 2455 "ext/pdo_sqlite/sqlite/src/parse.c"
2453 : break;
2454 : case 134:
2455 0 : #line 493 "ext/pdo_sqlite/sqlite/src/parse.y"
2456 : { yygotominor.yy46 = sqlite3JoinType(pParse,&yymsp[-1].minor.yy0,0,0); }
2457 : #line 2460 "ext/pdo_sqlite/sqlite/src/parse.c"
2458 : break;
2459 : case 135:
2460 5 : #line 494 "ext/pdo_sqlite/sqlite/src/parse.y"
2461 : { yygotominor.yy46 = sqlite3JoinType(pParse,&yymsp[-2].minor.yy0,&yymsp[-1].minor.yy410,0); }
2462 : #line 2465 "ext/pdo_sqlite/sqlite/src/parse.c"
2463 : break;
2464 : case 136:
2465 0 : #line 496 "ext/pdo_sqlite/sqlite/src/parse.y"
2466 : { yygotominor.yy46 = sqlite3JoinType(pParse,&yymsp[-3].minor.yy0,&yymsp[-2].minor.yy410,&yymsp[-1].minor.yy410); }
2467 : #line 2470 "ext/pdo_sqlite/sqlite/src/parse.c"
2468 : break;
2469 : case 137:
2470 0 : case 145:
2471 : case 152:
2472 : case 159:
2473 : case 174:
2474 : case 202:
2475 : case 225:
2476 : case 227:
2477 : case 231:
2478 : #line 500 "ext/pdo_sqlite/sqlite/src/parse.y"
2479 : {yygotominor.yy172 = yymsp[0].minor.yy172;}
2480 : #line 2483 "ext/pdo_sqlite/sqlite/src/parse.c"
2481 : break;
2482 : case 138:
2483 873 : case 151:
2484 : case 158:
2485 : case 203:
2486 : case 226:
2487 : case 228:
2488 : case 232:
2489 : #line 501 "ext/pdo_sqlite/sqlite/src/parse.y"
2490 : {yygotominor.yy172 = 0;}
2491 : #line 2494 "ext/pdo_sqlite/sqlite/src/parse.c"
2492 : break;
2493 : case 139:
2494 384 : case 171:
2495 : #line 505 "ext/pdo_sqlite/sqlite/src/parse.y"
2496 : {yygotominor.yy432 = yymsp[-1].minor.yy432;}
2497 : #line 2500 "ext/pdo_sqlite/sqlite/src/parse.c"
2498 : break;
2499 : case 140:
2500 25 : case 170:
2501 : #line 506 "ext/pdo_sqlite/sqlite/src/parse.y"
2502 : {yygotominor.yy432 = 0;}
2503 : #line 2506 "ext/pdo_sqlite/sqlite/src/parse.c"
2504 : break;
2505 : case 142:
2506 283 : case 150:
2507 : #line 517 "ext/pdo_sqlite/sqlite/src/parse.y"
2508 : {yygotominor.yy174 = yymsp[0].minor.yy174;}
2509 : #line 2512 "ext/pdo_sqlite/sqlite/src/parse.c"
2510 : break;
2511 : case 143:
2512 4 : #line 518 "ext/pdo_sqlite/sqlite/src/parse.y"
2513 : {
2514 : yygotominor.yy174 = sqlite3ExprListAppend(yymsp[-3].minor.yy174,yymsp[-1].minor.yy172,0);
2515 : if( yygotominor.yy174 ) yygotominor.yy174->a[yygotominor.yy174->nExpr-1].sortOrder = yymsp[0].minor.yy46;
2516 : }
2517 : #line 2520 "ext/pdo_sqlite/sqlite/src/parse.c"
2518 : break;
2519 : case 144:
2520 0 : #line 522 "ext/pdo_sqlite/sqlite/src/parse.y"
2521 : {
2522 : yygotominor.yy174 = sqlite3ExprListAppend(0,yymsp[-1].minor.yy172,0);
2523 : if( yygotominor.yy174 && yygotominor.yy174->a ) yygotominor.yy174->a[0].sortOrder = yymsp[0].minor.yy46;
2524 : }
2525 : #line 2528 "ext/pdo_sqlite/sqlite/src/parse.c"
2526 : break;
2527 : case 146:
2528 4 : case 148:
2529 : #line 530 "ext/pdo_sqlite/sqlite/src/parse.y"
2530 : {yygotominor.yy46 = SQLITE_SO_ASC;}
2531 : #line 2534 "ext/pdo_sqlite/sqlite/src/parse.c"
2532 : break;
2533 : case 147:
2534 84 : #line 531 "ext/pdo_sqlite/sqlite/src/parse.y"
2535 : {yygotominor.yy46 = SQLITE_SO_DESC;}
2536 : #line 2539 "ext/pdo_sqlite/sqlite/src/parse.c"
2537 : break;
2538 : case 153:
2539 0 : #line 557 "ext/pdo_sqlite/sqlite/src/parse.y"
2540 : {yygotominor.yy234.pLimit = 0; yygotominor.yy234.pOffset = 0;}
2541 : #line 2544 "ext/pdo_sqlite/sqlite/src/parse.c"
2542 : break;
2543 : case 154:
2544 153 : #line 558 "ext/pdo_sqlite/sqlite/src/parse.y"
2545 : {yygotominor.yy234.pLimit = yymsp[0].minor.yy172; yygotominor.yy234.pOffset = 0;}
2546 : #line 2549 "ext/pdo_sqlite/sqlite/src/parse.c"
2547 : break;
2548 : case 155:
2549 0 : #line 560 "ext/pdo_sqlite/sqlite/src/parse.y"
2550 : {yygotominor.yy234.pLimit = yymsp[-2].minor.yy172; yygotominor.yy234.pOffset = yymsp[0].minor.yy172;}
2551 : #line 2554 "ext/pdo_sqlite/sqlite/src/parse.c"
2552 : break;
2553 : case 156:
2554 0 : #line 562 "ext/pdo_sqlite/sqlite/src/parse.y"
2555 : {yygotominor.yy234.pOffset = yymsp[-2].minor.yy172; yygotominor.yy234.pLimit = yymsp[0].minor.yy172;}
2556 : #line 2559 "ext/pdo_sqlite/sqlite/src/parse.c"
2557 : break;
2558 : case 157:
2559 0 : #line 566 "ext/pdo_sqlite/sqlite/src/parse.y"
2560 : {sqlite3DeleteFrom(pParse,yymsp[-1].minor.yy373,yymsp[0].minor.yy172);}
2561 : #line 2564 "ext/pdo_sqlite/sqlite/src/parse.c"
2562 : break;
2563 : case 160:
2564 6 : #line 577 "ext/pdo_sqlite/sqlite/src/parse.y"
2565 : {sqlite3Update(pParse,yymsp[-3].minor.yy373,yymsp[-1].minor.yy174,yymsp[0].minor.yy172,yymsp[-4].minor.yy46);}
2566 : #line 2569 "ext/pdo_sqlite/sqlite/src/parse.c"
2567 : break;
2568 : case 161:
2569 64 : #line 583 "ext/pdo_sqlite/sqlite/src/parse.y"
2570 : {yygotominor.yy174 = sqlite3ExprListAppend(yymsp[-4].minor.yy174,yymsp[0].minor.yy172,&yymsp[-2].minor.yy410);}
2571 : #line 2574 "ext/pdo_sqlite/sqlite/src/parse.c"
2572 : break;
2573 : case 162:
2574 228 : #line 584 "ext/pdo_sqlite/sqlite/src/parse.y"
2575 : {yygotominor.yy174 = sqlite3ExprListAppend(0,yymsp[0].minor.yy172,&yymsp[-2].minor.yy410);}
2576 : #line 2579 "ext/pdo_sqlite/sqlite/src/parse.c"
2577 : break;
2578 : case 163:
2579 64 : #line 590 "ext/pdo_sqlite/sqlite/src/parse.y"
2580 : {sqlite3Insert(pParse, yymsp[-5].minor.yy373, yymsp[-1].minor.yy174, 0, yymsp[-4].minor.yy432, yymsp[-7].minor.yy46);}
2581 : #line 2584 "ext/pdo_sqlite/sqlite/src/parse.c"
2582 : break;
2583 : case 164:
2584 159 : #line 592 "ext/pdo_sqlite/sqlite/src/parse.y"
2585 : {sqlite3Insert(pParse, yymsp[-2].minor.yy373, 0, yymsp[0].minor.yy219, yymsp[-1].minor.yy432, yymsp[-4].minor.yy46);}
2586 : #line 2589 "ext/pdo_sqlite/sqlite/src/parse.c"
2587 : break;
2588 : case 165:
2589 0 : #line 594 "ext/pdo_sqlite/sqlite/src/parse.y"
2590 : {sqlite3Insert(pParse, yymsp[-3].minor.yy373, 0, 0, yymsp[-2].minor.yy432, yymsp[-5].minor.yy46);}
2591 : #line 2594 "ext/pdo_sqlite/sqlite/src/parse.c"
2592 : break;
2593 : case 168:
2594 0 : case 229:
2595 : #line 604 "ext/pdo_sqlite/sqlite/src/parse.y"
2596 : {yygotominor.yy174 = sqlite3ExprListAppend(yymsp[-2].minor.yy174,yymsp[0].minor.yy172,0);}
2597 : #line 2600 "ext/pdo_sqlite/sqlite/src/parse.c"
2598 : break;
2599 : case 169:
2600 322 : case 230:
2601 : #line 605 "ext/pdo_sqlite/sqlite/src/parse.y"
2602 : {yygotominor.yy174 = sqlite3ExprListAppend(0,yymsp[0].minor.yy172,0);}
2603 : #line 2606 "ext/pdo_sqlite/sqlite/src/parse.c"
2604 : break;
2605 : case 172:
2606 164 : #line 614 "ext/pdo_sqlite/sqlite/src/parse.y"
2607 : {yygotominor.yy432 = sqlite3IdListAppend(yymsp[-2].minor.yy432,&yymsp[0].minor.yy410);}
2608 : #line 2611 "ext/pdo_sqlite/sqlite/src/parse.c"
2609 : break;
2610 : case 173:
2611 31 : #line 615 "ext/pdo_sqlite/sqlite/src/parse.y"
2612 : {yygotominor.yy432 = sqlite3IdListAppend(0,&yymsp[0].minor.yy410);}
2613 : #line 2616 "ext/pdo_sqlite/sqlite/src/parse.c"
2614 : break;
2615 : case 175:
2616 25 : #line 626 "ext/pdo_sqlite/sqlite/src/parse.y"
2617 : {yygotominor.yy172 = yymsp[-1].minor.yy172; sqlite3ExprSpan(yygotominor.yy172,&yymsp[-2].minor.yy0,&yymsp[0].minor.yy0); }
2618 : #line 2621 "ext/pdo_sqlite/sqlite/src/parse.c"
2619 : break;
2620 : case 176:
2621 2 : case 181:
2622 : case 182:
2623 : #line 627 "ext/pdo_sqlite/sqlite/src/parse.y"
2624 : {yygotominor.yy172 = sqlite3Expr(yymsp[0].major, 0, 0, &yymsp[0].minor.yy0);}
2625 : #line 2628 "ext/pdo_sqlite/sqlite/src/parse.c"
2626 : break;
2627 : case 177:
2628 723 : case 178:
2629 : #line 628 "ext/pdo_sqlite/sqlite/src/parse.y"
2630 : {yygotominor.yy172 = sqlite3Expr(TK_ID, 0, 0, &yymsp[0].minor.yy0);}
2631 : #line 2634 "ext/pdo_sqlite/sqlite/src/parse.c"
2632 : break;
2633 : case 179:
2634 397 : #line 630 "ext/pdo_sqlite/sqlite/src/parse.y"
2635 : {
2636 : Expr *temp1 = sqlite3Expr(TK_ID, 0, 0, &yymsp[-2].minor.yy410);
2637 : Expr *temp2 = sqlite3Expr(TK_ID, 0, 0, &yymsp[0].minor.yy410);
2638 : yygotominor.yy172 = sqlite3Expr(TK_DOT, temp1, temp2, 0);
2639 : }
2640 : #line 2643 "ext/pdo_sqlite/sqlite/src/parse.c"
2641 : break;
2642 : case 180:
2643 26 : #line 635 "ext/pdo_sqlite/sqlite/src/parse.y"
2644 : {
2645 : Expr *temp1 = sqlite3Expr(TK_ID, 0, 0, &yymsp[-4].minor.yy410);
2646 : Expr *temp2 = sqlite3Expr(TK_ID, 0, 0, &yymsp[-2].minor.yy410);
2647 : Expr *temp3 = sqlite3Expr(TK_ID, 0, 0, &yymsp[0].minor.yy410);
2648 : Expr *temp4 = sqlite3Expr(TK_DOT, temp2, temp3, 0);
2649 : yygotominor.yy172 = sqlite3Expr(TK_DOT, temp1, temp4, 0);
2650 : }
2651 : #line 2654 "ext/pdo_sqlite/sqlite/src/parse.c"
2652 : break;
2653 : case 183:
2654 0 : #line 644 "ext/pdo_sqlite/sqlite/src/parse.y"
2655 : {yygotominor.yy172 = sqlite3RegisterExpr(pParse, &yymsp[0].minor.yy0);}
2656 : #line 2659 "ext/pdo_sqlite/sqlite/src/parse.c"
2657 : break;
2658 : case 184:
2659 163 : #line 645 "ext/pdo_sqlite/sqlite/src/parse.y"
2660 : {
2661 : Token *pToken = &yymsp[0].minor.yy0;
2662 : Expr *pExpr = yygotominor.yy172 = sqlite3Expr(TK_VARIABLE, 0, 0, pToken);
2663 : sqlite3ExprAssignVarNumber(pParse, pExpr);
2664 : }
2665 : #line 2668 "ext/pdo_sqlite/sqlite/src/parse.c"
2666 : break;
2667 : case 185:
2668 50 : #line 650 "ext/pdo_sqlite/sqlite/src/parse.y"
2669 : {
2670 : yygotominor.yy172 = sqlite3ExprSetColl(pParse, yymsp[-2].minor.yy172, &yymsp[0].minor.yy410);
2671 : }
2672 : #line 2675 "ext/pdo_sqlite/sqlite/src/parse.c"
2673 : break;
2674 : case 186:
2675 0 : #line 654 "ext/pdo_sqlite/sqlite/src/parse.y"
2676 : {
2677 : yygotominor.yy172 = sqlite3Expr(TK_CAST, yymsp[-3].minor.yy172, 0, &yymsp[-1].minor.yy410);
2678 : sqlite3ExprSpan(yygotominor.yy172,&yymsp[-5].minor.yy0,&yymsp[0].minor.yy0);
2679 : }
2680 : #line 2683 "ext/pdo_sqlite/sqlite/src/parse.c"
2681 : break;
2682 : case 187:
2683 0 : #line 659 "ext/pdo_sqlite/sqlite/src/parse.y"
2684 : {
2685 : yygotominor.yy172 = sqlite3ExprFunction(yymsp[-1].minor.yy174, &yymsp[-4].minor.yy0);
2686 : sqlite3ExprSpan(yygotominor.yy172,&yymsp[-4].minor.yy0,&yymsp[0].minor.yy0);
2687 : if( yymsp[-2].minor.yy46 && yygotominor.yy172 ){
2688 : yygotominor.yy172->flags |= EP_Distinct;
2689 : }
2690 : }
2691 : #line 2694 "ext/pdo_sqlite/sqlite/src/parse.c"
2692 : break;
2693 : case 188:
2694 5 : #line 666 "ext/pdo_sqlite/sqlite/src/parse.y"
2695 : {
2696 : yygotominor.yy172 = sqlite3ExprFunction(0, &yymsp[-3].minor.yy0);
2697 : sqlite3ExprSpan(yygotominor.yy172,&yymsp[-3].minor.yy0,&yymsp[0].minor.yy0);
2698 : }
2699 : #line 2702 "ext/pdo_sqlite/sqlite/src/parse.c"
2700 : break;
2701 : case 189:
2702 10 : #line 670 "ext/pdo_sqlite/sqlite/src/parse.y"
2703 : {
2704 : /* The CURRENT_TIME, CURRENT_DATE, and CURRENT_TIMESTAMP values are
2705 : ** treated as functions that return constants */
2706 : yygotominor.yy172 = sqlite3ExprFunction(0,&yymsp[0].minor.yy0);
2707 : if( yygotominor.yy172 ){
2708 : yygotominor.yy172->op = TK_CONST_FUNC;
2709 : yygotominor.yy172->span = yymsp[0].minor.yy0;
2710 : }
2711 : }
2712 : #line 2715 "ext/pdo_sqlite/sqlite/src/parse.c"
2713 : break;
2714 : case 190:
2715 0 : case 191:
2716 : case 192:
2717 : case 193:
2718 : case 194:
2719 : case 195:
2720 : case 196:
2721 : case 197:
2722 : #line 679 "ext/pdo_sqlite/sqlite/src/parse.y"
2723 : {yygotominor.yy172 = sqlite3Expr(yymsp[-1].major, yymsp[-2].minor.yy172, yymsp[0].minor.yy172, 0);}
2724 : #line 2727 "ext/pdo_sqlite/sqlite/src/parse.c"
2725 : break;
2726 : case 198:
2727 158 : case 200:
2728 : #line 689 "ext/pdo_sqlite/sqlite/src/parse.y"
2729 : {yygotominor.yy72.eOperator = yymsp[0].minor.yy0; yygotominor.yy72.not = 0;}
2730 : #line 2733 "ext/pdo_sqlite/sqlite/src/parse.c"
2731 : break;
2732 : case 199:
2733 0 : case 201:
2734 : #line 690 "ext/pdo_sqlite/sqlite/src/parse.y"
2735 : {yygotominor.yy72.eOperator = yymsp[0].minor.yy0; yygotominor.yy72.not = 1;}
2736 : #line 2739 "ext/pdo_sqlite/sqlite/src/parse.c"
2737 : break;
2738 : case 204:
2739 0 : #line 697 "ext/pdo_sqlite/sqlite/src/parse.y"
2740 : {
2741 : ExprList *pList;
2742 : pList = sqlite3ExprListAppend(0, yymsp[-1].minor.yy172, 0);
2743 : pList = sqlite3ExprListAppend(pList, yymsp[-3].minor.yy172, 0);
2744 : if( yymsp[0].minor.yy172 ){
2745 : pList = sqlite3ExprListAppend(pList, yymsp[0].minor.yy172, 0);
2746 : }
2747 : yygotominor.yy172 = sqlite3ExprFunction(pList, &yymsp[-2].minor.yy72.eOperator);
2748 : if( yymsp[-2].minor.yy72.not ) yygotominor.yy172 = sqlite3Expr(TK_NOT, yygotominor.yy172, 0, 0);
2749 : sqlite3ExprSpan(yygotominor.yy172, &yymsp[-3].minor.yy172->span, &yymsp[-1].minor.yy172->span);
2750 : if( yygotominor.yy172 ) yygotominor.yy172->flags |= EP_InfixFunc;
2751 : }
2752 : #line 2755 "ext/pdo_sqlite/sqlite/src/parse.c"
2753 : break;
2754 : case 205:
2755 0 : #line 710 "ext/pdo_sqlite/sqlite/src/parse.y"
2756 : {
2757 : yygotominor.yy172 = sqlite3Expr(yymsp[0].major, yymsp[-1].minor.yy172, 0, 0);
2758 : sqlite3ExprSpan(yygotominor.yy172,&yymsp[-1].minor.yy172->span,&yymsp[0].minor.yy0);
2759 : }
2760 : #line 2763 "ext/pdo_sqlite/sqlite/src/parse.c"
2761 : break;
2762 : case 206:
2763 0 : #line 714 "ext/pdo_sqlite/sqlite/src/parse.y"
2764 : {
2765 : yygotominor.yy172 = sqlite3Expr(TK_ISNULL, yymsp[-2].minor.yy172, 0, 0);
2766 : sqlite3ExprSpan(yygotominor.yy172,&yymsp[-2].minor.yy172->span,&yymsp[0].minor.yy0);
2767 : }
2768 : #line 2771 "ext/pdo_sqlite/sqlite/src/parse.c"
2769 : break;
2770 : case 207:
2771 2 : #line 718 "ext/pdo_sqlite/sqlite/src/parse.y"
2772 : {
2773 : yygotominor.yy172 = sqlite3Expr(TK_NOTNULL, yymsp[-2].minor.yy172, 0, 0);
2774 : sqlite3ExprSpan(yygotominor.yy172,&yymsp[-2].minor.yy172->span,&yymsp[0].minor.yy0);
2775 : }
2776 : #line 2779 "ext/pdo_sqlite/sqlite/src/parse.c"
2777 : break;
2778 : case 208:
2779 0 : #line 722 "ext/pdo_sqlite/sqlite/src/parse.y"
2780 : {
2781 : yygotominor.yy172 = sqlite3Expr(TK_NOTNULL, yymsp[-3].minor.yy172, 0, 0);
2782 : sqlite3ExprSpan(yygotominor.yy172,&yymsp[-3].minor.yy172->span,&yymsp[0].minor.yy0);
2783 : }
2784 : #line 2787 "ext/pdo_sqlite/sqlite/src/parse.c"
2785 : break;
2786 : case 209:
2787 0 : #line 726 "ext/pdo_sqlite/sqlite/src/parse.y"
2788 : {
2789 : yygotominor.yy172 = sqlite3Expr(yymsp[-1].major, yymsp[0].minor.yy172, 0, 0);
2790 : sqlite3ExprSpan(yygotominor.yy172,&yymsp[-1].minor.yy0,&yymsp[0].minor.yy172->span);
2791 : }
2792 : #line 2795 "ext/pdo_sqlite/sqlite/src/parse.c"
2793 : break;
2794 : case 210:
2795 0 : #line 730 "ext/pdo_sqlite/sqlite/src/parse.y"
2796 : {
2797 : yygotominor.yy172 = sqlite3Expr(TK_UMINUS, yymsp[0].minor.yy172, 0, 0);
2798 : sqlite3ExprSpan(yygotominor.yy172,&yymsp[-1].minor.yy0,&yymsp[0].minor.yy172->span);
2799 : }
2800 : #line 2803 "ext/pdo_sqlite/sqlite/src/parse.c"
2801 : break;
2802 : case 211:
2803 0 : #line 734 "ext/pdo_sqlite/sqlite/src/parse.y"
2804 : {
2805 : yygotominor.yy172 = sqlite3Expr(TK_UPLUS, yymsp[0].minor.yy172, 0, 0);
2806 : sqlite3ExprSpan(yygotominor.yy172,&yymsp[-1].minor.yy0,&yymsp[0].minor.yy172->span);
2807 : }
2808 : #line 2811 "ext/pdo_sqlite/sqlite/src/parse.c"
2809 : break;
2810 : case 214:
2811 0 : #line 741 "ext/pdo_sqlite/sqlite/src/parse.y"
2812 : {
2813 : ExprList *pList = sqlite3ExprListAppend(0, yymsp[-2].minor.yy172, 0);
2814 : pList = sqlite3ExprListAppend(pList, yymsp[0].minor.yy172, 0);
2815 : yygotominor.yy172 = sqlite3Expr(TK_BETWEEN, yymsp[-4].minor.yy172, 0, 0);
2816 : if( yygotominor.yy172 ){
2817 : yygotominor.yy172->pList = pList;
2818 : }else{
2819 : sqlite3ExprListDelete(pList);
2820 : }
2821 : if( yymsp[-3].minor.yy46 ) yygotominor.yy172 = sqlite3Expr(TK_NOT, yygotominor.yy172, 0, 0);
2822 : sqlite3ExprSpan(yygotominor.yy172,&yymsp[-4].minor.yy172->span,&yymsp[0].minor.yy172->span);
2823 : }
2824 : #line 2827 "ext/pdo_sqlite/sqlite/src/parse.c"
2825 : break;
2826 : case 217:
2827 0 : #line 757 "ext/pdo_sqlite/sqlite/src/parse.y"
2828 : {
2829 : yygotominor.yy172 = sqlite3Expr(TK_IN, yymsp[-4].minor.yy172, 0, 0);
2830 : if( yygotominor.yy172 ){
2831 : yygotominor.yy172->pList = yymsp[-1].minor.yy174;
2832 : }else{
2833 : sqlite3ExprListDelete(yymsp[-1].minor.yy174);
2834 : }
2835 : if( yymsp[-3].minor.yy46 ) yygotominor.yy172 = sqlite3Expr(TK_NOT, yygotominor.yy172, 0, 0);
2836 : sqlite3ExprSpan(yygotominor.yy172,&yymsp[-4].minor.yy172->span,&yymsp[0].minor.yy0);
2837 : }
2838 : #line 2841 "ext/pdo_sqlite/sqlite/src/parse.c"
2839 : break;
2840 : case 218:
2841 0 : #line 767 "ext/pdo_sqlite/sqlite/src/parse.y"
2842 : {
2843 : yygotominor.yy172 = sqlite3Expr(TK_SELECT, 0, 0, 0);
2844 : if( yygotominor.yy172 ){
2845 : yygotominor.yy172->pSelect = yymsp[-1].minor.yy219;
2846 : }else{
2847 : sqlite3SelectDelete(yymsp[-1].minor.yy219);
2848 : }
2849 : sqlite3ExprSpan(yygotominor.yy172,&yymsp[-2].minor.yy0,&yymsp[0].minor.yy0);
2850 : }
2851 : #line 2854 "ext/pdo_sqlite/sqlite/src/parse.c"
2852 : break;
2853 : case 219:
2854 0 : #line 776 "ext/pdo_sqlite/sqlite/src/parse.y"
2855 : {
2856 : yygotominor.yy172 = sqlite3Expr(TK_IN, yymsp[-4].minor.yy172, 0, 0);
2857 : if( yygotominor.yy172 ){
2858 : yygotominor.yy172->pSelect = yymsp[-1].minor.yy219;
2859 : }else{
2860 : sqlite3SelectDelete(yymsp[-1].minor.yy219);
2861 : }
2862 : if( yymsp[-3].minor.yy46 ) yygotominor.yy172 = sqlite3Expr(TK_NOT, yygotominor.yy172, 0, 0);
2863 : sqlite3ExprSpan(yygotominor.yy172,&yymsp[-4].minor.yy172->span,&yymsp[0].minor.yy0);
2864 : }
2865 : #line 2868 "ext/pdo_sqlite/sqlite/src/parse.c"
2866 : break;
2867 : case 220:
2868 0 : #line 786 "ext/pdo_sqlite/sqlite/src/parse.y"
2869 : {
2870 : SrcList *pSrc = sqlite3SrcListAppend(0,&yymsp[-1].minor.yy410,&yymsp[0].minor.yy410);
2871 : yygotominor.yy172 = sqlite3Expr(TK_IN, yymsp[-3].minor.yy172, 0, 0);
2872 : if( yygotominor.yy172 ){
2873 : yygotominor.yy172->pSelect = sqlite3SelectNew(0,pSrc,0,0,0,0,0,0,0);
2874 : }else{
2875 : sqlite3SrcListDelete(pSrc);
2876 : }
2877 : if( yymsp[-2].minor.yy46 ) yygotominor.yy172 = sqlite3Expr(TK_NOT, yygotominor.yy172, 0, 0);
2878 : sqlite3ExprSpan(yygotominor.yy172,&yymsp[-3].minor.yy172->span,yymsp[0].minor.yy410.z?&yymsp[0].minor.yy410:&yymsp[-1].minor.yy410);
2879 : }
2880 : #line 2883 "ext/pdo_sqlite/sqlite/src/parse.c"
2881 : break;
2882 : case 221:
2883 0 : #line 797 "ext/pdo_sqlite/sqlite/src/parse.y"
2884 : {
2885 : Expr *p = yygotominor.yy172 = sqlite3Expr(TK_EXISTS, 0, 0, 0);
2886 : if( p ){
2887 : p->pSelect = yymsp[-1].minor.yy219;
2888 : sqlite3ExprSpan(p,&yymsp[-3].minor.yy0,&yymsp[0].minor.yy0);
2889 : }else{
2890 : sqlite3SelectDelete(yymsp[-1].minor.yy219);
2891 : }
2892 : }
2893 : #line 2896 "ext/pdo_sqlite/sqlite/src/parse.c"
2894 : break;
2895 : case 222:
2896 0 : #line 809 "ext/pdo_sqlite/sqlite/src/parse.y"
2897 : {
2898 : yygotominor.yy172 = sqlite3Expr(TK_CASE, yymsp[-3].minor.yy172, yymsp[-1].minor.yy172, 0);
2899 : if( yygotominor.yy172 ){
2900 : yygotominor.yy172->pList = yymsp[-2].minor.yy174;
2901 : }else{
2902 : sqlite3ExprListDelete(yymsp[-2].minor.yy174);
2903 : }
2904 : sqlite3ExprSpan(yygotominor.yy172, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0);
2905 : }
2906 : #line 2909 "ext/pdo_sqlite/sqlite/src/parse.c"
2907 : break;
2908 : case 223:
2909 0 : #line 820 "ext/pdo_sqlite/sqlite/src/parse.y"
2910 : {
2911 : yygotominor.yy174 = sqlite3ExprListAppend(yymsp[-4].minor.yy174, yymsp[-2].minor.yy172, 0);
2912 : yygotominor.yy174 = sqlite3ExprListAppend(yygotominor.yy174, yymsp[0].minor.yy172, 0);
2913 : }
2914 : #line 2917 "ext/pdo_sqlite/sqlite/src/parse.c"
2915 : break;
2916 : case 224:
2917 0 : #line 824 "ext/pdo_sqlite/sqlite/src/parse.y"
2918 : {
2919 : yygotominor.yy174 = sqlite3ExprListAppend(0, yymsp[-2].minor.yy172, 0);
2920 : yygotominor.yy174 = sqlite3ExprListAppend(yygotominor.yy174, yymsp[0].minor.yy172, 0);
2921 : }
2922 : #line 2925 "ext/pdo_sqlite/sqlite/src/parse.c"
2923 : break;
2924 : case 233:
2925 0 : #line 851 "ext/pdo_sqlite/sqlite/src/parse.y"
2926 : {
2927 : sqlite3CreateIndex(pParse, &yymsp[-6].minor.yy410, &yymsp[-5].minor.yy410, sqlite3SrcListAppend(0,&yymsp[-3].minor.yy410,0), yymsp[-1].minor.yy174, yymsp[-9].minor.yy46,
2928 : &yymsp[-10].minor.yy0, &yymsp[0].minor.yy0, SQLITE_SO_ASC, yymsp[-7].minor.yy46);
2929 : }
2930 : #line 2933 "ext/pdo_sqlite/sqlite/src/parse.c"
2931 : break;
2932 : case 234:
2933 0 : case 281:
2934 : #line 857 "ext/pdo_sqlite/sqlite/src/parse.y"
2935 : {yygotominor.yy46 = OE_Abort;}
2936 : #line 2939 "ext/pdo_sqlite/sqlite/src/parse.c"
2937 : break;
2938 : case 235:
2939 0 : #line 858 "ext/pdo_sqlite/sqlite/src/parse.y"
2940 : {yygotominor.yy46 = OE_None;}
2941 : #line 2944 "ext/pdo_sqlite/sqlite/src/parse.c"
2942 : break;
2943 : case 238:
2944 0 : #line 868 "ext/pdo_sqlite/sqlite/src/parse.y"
2945 : {
2946 : Expr *p = 0;
2947 : if( yymsp[-1].minor.yy410.n>0 ){
2948 : p = sqlite3Expr(TK_COLUMN, 0, 0, 0);
2949 : if( p ) p->pColl = sqlite3LocateCollSeq(pParse, (char*)yymsp[-1].minor.yy410.z, yymsp[-1].minor.yy410.n);
2950 : }
2951 : yygotominor.yy174 = sqlite3ExprListAppend(yymsp[-4].minor.yy174, p, &yymsp[-2].minor.yy410);
2952 : if( yygotominor.yy174 ) yygotominor.yy174->a[yygotominor.yy174->nExpr-1].sortOrder = yymsp[0].minor.yy46;
2953 : }
2954 : #line 2957 "ext/pdo_sqlite/sqlite/src/parse.c"
2955 : break;
2956 : case 239:
2957 0 : #line 877 "ext/pdo_sqlite/sqlite/src/parse.y"
2958 : {
2959 : Expr *p = 0;
2960 : if( yymsp[-1].minor.yy410.n>0 ){
2961 : p = sqlite3Expr(TK_COLUMN, 0, 0, 0);
2962 : if( p ) p->pColl = sqlite3LocateCollSeq(pParse, (char*)yymsp[-1].minor.yy410.z, yymsp[-1].minor.yy410.n);
2963 : }
2964 : yygotominor.yy174 = sqlite3ExprListAppend(0, p, &yymsp[-2].minor.yy410);
2965 : if( yygotominor.yy174 ) yygotominor.yy174->a[yygotominor.yy174->nExpr-1].sortOrder = yymsp[0].minor.yy46;
2966 : }
2967 : #line 2970 "ext/pdo_sqlite/sqlite/src/parse.c"
2968 : break;
2969 : case 241:
2970 4 : #line 889 "ext/pdo_sqlite/sqlite/src/parse.y"
2971 : {yygotominor.yy410.z = 0; yygotominor.yy410.n = 0;}
2972 : #line 2975 "ext/pdo_sqlite/sqlite/src/parse.c"
2973 : break;
2974 : case 243:
2975 4 : #line 895 "ext/pdo_sqlite/sqlite/src/parse.y"
2976 : {sqlite3DropIndex(pParse, yymsp[0].minor.yy373, yymsp[-1].minor.yy46);}
2977 : #line 2980 "ext/pdo_sqlite/sqlite/src/parse.c"
2978 : break;
2979 : case 244:
2980 0 : case 245:
2981 : #line 901 "ext/pdo_sqlite/sqlite/src/parse.y"
2982 : {sqlite3Vacuum(pParse);}
2983 : #line 2986 "ext/pdo_sqlite/sqlite/src/parse.c"
2984 : break;
2985 : case 246:
2986 0 : #line 909 "ext/pdo_sqlite/sqlite/src/parse.y"
2987 : {sqlite3Pragma(pParse,&yymsp[-3].minor.yy410,&yymsp[-2].minor.yy410,&yymsp[0].minor.yy410,0);}
2988 : #line 2991 "ext/pdo_sqlite/sqlite/src/parse.c"
2989 : break;
2990 : case 247:
2991 0 : #line 910 "ext/pdo_sqlite/sqlite/src/parse.y"
2992 : {sqlite3Pragma(pParse,&yymsp[-3].minor.yy410,&yymsp[-2].minor.yy410,&yymsp[0].minor.yy0,0);}
2993 : #line 2996 "ext/pdo_sqlite/sqlite/src/parse.c"
2994 : break;
2995 : case 248:
2996 0 : #line 911 "ext/pdo_sqlite/sqlite/src/parse.y"
2997 : {
2998 : sqlite3Pragma(pParse,&yymsp[-3].minor.yy410,&yymsp[-2].minor.yy410,&yymsp[0].minor.yy410,1);
2999 : }
3000 : #line 3003 "ext/pdo_sqlite/sqlite/src/parse.c"
3001 : break;
3002 : case 249:
3003 0 : #line 914 "ext/pdo_sqlite/sqlite/src/parse.y"
3004 : {sqlite3Pragma(pParse,&yymsp[-4].minor.yy410,&yymsp[-3].minor.yy410,&yymsp[-1].minor.yy410,0);}
3005 : #line 3008 "ext/pdo_sqlite/sqlite/src/parse.c"
3006 : break;
3007 : case 250:
3008 0 : #line 915 "ext/pdo_sqlite/sqlite/src/parse.y"
3009 : {sqlite3Pragma(pParse,&yymsp[-1].minor.yy410,&yymsp[0].minor.yy410,0,0);}
3010 : #line 3013 "ext/pdo_sqlite/sqlite/src/parse.c"
3011 : break;
3012 : case 258:
3013 0 : #line 929 "ext/pdo_sqlite/sqlite/src/parse.y"
3014 : {
3015 : Token all;
3016 : all.z = yymsp[-3].minor.yy410.z;
3017 : all.n = (yymsp[0].minor.yy0.z - yymsp[-3].minor.yy410.z) + yymsp[0].minor.yy0.n;
3018 : sqlite3FinishTrigger(pParse, yymsp[-1].minor.yy243, &all);
3019 : }
3020 : #line 3023 "ext/pdo_sqlite/sqlite/src/parse.c"
3021 : break;
3022 : case 259:
3023 0 : #line 938 "ext/pdo_sqlite/sqlite/src/parse.y"
3024 : {
3025 : sqlite3BeginTrigger(pParse, &yymsp[-7].minor.yy410, &yymsp[-6].minor.yy410, yymsp[-5].minor.yy46, yymsp[-4].minor.yy370.a, yymsp[-4].minor.yy370.b, yymsp[-2].minor.yy373, yymsp[0].minor.yy172, yymsp[-10].minor.yy46, yymsp[-8].minor.yy46);
3026 : yygotominor.yy410 = (yymsp[-6].minor.yy410.n==0?yymsp[-7].minor.yy410:yymsp[-6].minor.yy410);
3027 : }
3028 : #line 3031 "ext/pdo_sqlite/sqlite/src/parse.c"
3029 : break;
3030 : case 260:
3031 0 : case 263:
3032 : #line 944 "ext/pdo_sqlite/sqlite/src/parse.y"
3033 : { yygotominor.yy46 = TK_BEFORE; }
3034 : #line 3037 "ext/pdo_sqlite/sqlite/src/parse.c"
3035 : break;
3036 : case 261:
3037 0 : #line 945 "ext/pdo_sqlite/sqlite/src/parse.y"
3038 : { yygotominor.yy46 = TK_AFTER; }
3039 : #line 3042 "ext/pdo_sqlite/sqlite/src/parse.c"
3040 : break;
3041 : case 262:
3042 0 : #line 946 "ext/pdo_sqlite/sqlite/src/parse.y"
3043 : { yygotominor.yy46 = TK_INSTEAD;}
3044 : #line 3047 "ext/pdo_sqlite/sqlite/src/parse.c"
3045 : break;
3046 : case 264:
3047 0 : case 265:
3048 : #line 951 "ext/pdo_sqlite/sqlite/src/parse.y"
3049 : {yygotominor.yy370.a = yymsp[0].major; yygotominor.yy370.b = 0;}
3050 : #line 3053 "ext/pdo_sqlite/sqlite/src/parse.c"
3051 : break;
3052 : case 266:
3053 0 : #line 953 "ext/pdo_sqlite/sqlite/src/parse.y"
3054 : {yygotominor.yy370.a = TK_UPDATE; yygotominor.yy370.b = yymsp[0].minor.yy432;}
3055 : #line 3058 "ext/pdo_sqlite/sqlite/src/parse.c"
3056 : break;
3057 : case 269:
3058 0 : #line 960 "ext/pdo_sqlite/sqlite/src/parse.y"
3059 : { yygotominor.yy172 = 0; }
3060 : #line 3063 "ext/pdo_sqlite/sqlite/src/parse.c"
3061 : break;
3062 : case 270:
3063 0 : #line 961 "ext/pdo_sqlite/sqlite/src/parse.y"
3064 : { yygotominor.yy172 = yymsp[0].minor.yy172; }
3065 : #line 3068 "ext/pdo_sqlite/sqlite/src/parse.c"
3066 : break;
3067 : case 271:
3068 0 : #line 965 "ext/pdo_sqlite/sqlite/src/parse.y"
3069 : {
3070 : if( yymsp[-2].minor.yy243 ){
3071 : yymsp[-2].minor.yy243->pLast->pNext = yymsp[-1].minor.yy243;
3072 : }else{
3073 : yymsp[-2].minor.yy243 = yymsp[-1].minor.yy243;
3074 : }
3075 : yymsp[-2].minor.yy243->pLast = yymsp[-1].minor.yy243;
3076 : yygotominor.yy243 = yymsp[-2].minor.yy243;
3077 : }
3078 : #line 3081 "ext/pdo_sqlite/sqlite/src/parse.c"
3079 : break;
3080 : case 272:
3081 0 : #line 974 "ext/pdo_sqlite/sqlite/src/parse.y"
3082 : { yygotominor.yy243 = 0; }
3083 : #line 3086 "ext/pdo_sqlite/sqlite/src/parse.c"
3084 : break;
3085 : case 273:
3086 0 : #line 980 "ext/pdo_sqlite/sqlite/src/parse.y"
3087 : { yygotominor.yy243 = sqlite3TriggerUpdateStep(&yymsp[-3].minor.yy410, yymsp[-1].minor.yy174, yymsp[0].minor.yy172, yymsp[-4].minor.yy46); }
3088 : #line 3091 "ext/pdo_sqlite/sqlite/src/parse.c"
3089 : break;
3090 : case 274:
3091 0 : #line 985 "ext/pdo_sqlite/sqlite/src/parse.y"
3092 : {yygotominor.yy243 = sqlite3TriggerInsertStep(&yymsp[-5].minor.yy410, yymsp[-4].minor.yy432, yymsp[-1].minor.yy174, 0, yymsp[-7].minor.yy46);}
3093 : #line 3096 "ext/pdo_sqlite/sqlite/src/parse.c"
3094 : break;
3095 : case 275:
3096 0 : #line 988 "ext/pdo_sqlite/sqlite/src/parse.y"
3097 : {yygotominor.yy243 = sqlite3TriggerInsertStep(&yymsp[-2].minor.yy410, yymsp[-1].minor.yy432, 0, yymsp[0].minor.yy219, yymsp[-4].minor.yy46);}
3098 : #line 3101 "ext/pdo_sqlite/sqlite/src/parse.c"
3099 : break;
3100 : case 276:
3101 0 : #line 992 "ext/pdo_sqlite/sqlite/src/parse.y"
3102 : {yygotominor.yy243 = sqlite3TriggerDeleteStep(&yymsp[-1].minor.yy410, yymsp[0].minor.yy172);}
3103 : #line 3106 "ext/pdo_sqlite/sqlite/src/parse.c"
3104 : break;
3105 : case 277:
3106 0 : #line 995 "ext/pdo_sqlite/sqlite/src/parse.y"
3107 : {yygotominor.yy243 = sqlite3TriggerSelectStep(yymsp[0].minor.yy219); }
3108 : #line 3111 "ext/pdo_sqlite/sqlite/src/parse.c"
3109 : break;
3110 : case 278:
3111 0 : #line 998 "ext/pdo_sqlite/sqlite/src/parse.y"
3112 : {
3113 : yygotominor.yy172 = sqlite3Expr(TK_RAISE, 0, 0, 0);
3114 : if( yygotominor.yy172 ){
3115 : yygotominor.yy172->iColumn = OE_Ignore;
3116 : sqlite3ExprSpan(yygotominor.yy172, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0);
3117 : }
3118 : }
3119 : #line 3122 "ext/pdo_sqlite/sqlite/src/parse.c"
3120 : break;
3121 : case 279:
3122 0 : #line 1005 "ext/pdo_sqlite/sqlite/src/parse.y"
3123 : {
3124 : yygotominor.yy172 = sqlite3Expr(TK_RAISE, 0, 0, &yymsp[-1].minor.yy410);
3125 : if( yygotominor.yy172 ) {
3126 : yygotominor.yy172->iColumn = yymsp[-3].minor.yy46;
3127 : sqlite3ExprSpan(yygotominor.yy172, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0);
3128 : }
3129 : }
3130 : #line 3133 "ext/pdo_sqlite/sqlite/src/parse.c"
3131 : break;
3132 : case 280:
3133 0 : #line 1015 "ext/pdo_sqlite/sqlite/src/parse.y"
3134 : {yygotominor.yy46 = OE_Rollback;}
3135 : #line 3138 "ext/pdo_sqlite/sqlite/src/parse.c"
3136 : break;
3137 : case 282:
3138 0 : #line 1017 "ext/pdo_sqlite/sqlite/src/parse.y"
3139 : {yygotominor.yy46 = OE_Fail;}
3140 : #line 3143 "ext/pdo_sqlite/sqlite/src/parse.c"
3141 : break;
3142 : case 283:
3143 0 : #line 1022 "ext/pdo_sqlite/sqlite/src/parse.y"
3144 : {
3145 : sqlite3DropTrigger(pParse,yymsp[0].minor.yy373,yymsp[-1].minor.yy46);
3146 : }
3147 : #line 3150 "ext/pdo_sqlite/sqlite/src/parse.c"
3148 : break;
3149 : case 284:
3150 0 : #line 1029 "ext/pdo_sqlite/sqlite/src/parse.y"
3151 : {
3152 : sqlite3Attach(pParse, yymsp[-3].minor.yy172, yymsp[-1].minor.yy172, yymsp[0].minor.yy386);
3153 : }
3154 : #line 3157 "ext/pdo_sqlite/sqlite/src/parse.c"
3155 : break;
3156 : case 285:
3157 0 : #line 1032 "ext/pdo_sqlite/sqlite/src/parse.y"
3158 : {
3159 : sqlite3Detach(pParse, yymsp[0].minor.yy172);
3160 : }
3161 : #line 3164 "ext/pdo_sqlite/sqlite/src/parse.c"
3162 : break;
3163 : case 286:
3164 0 : #line 1038 "ext/pdo_sqlite/sqlite/src/parse.y"
3165 : { yygotominor.yy386 = 0; }
3166 : #line 3169 "ext/pdo_sqlite/sqlite/src/parse.c"
3167 : break;
3168 : case 287:
3169 0 : #line 1039 "ext/pdo_sqlite/sqlite/src/parse.y"
3170 : { yygotominor.yy386 = yymsp[0].minor.yy172; }
3171 : #line 3174 "ext/pdo_sqlite/sqlite/src/parse.c"
3172 : break;
3173 : case 290:
3174 0 : #line 1047 "ext/pdo_sqlite/sqlite/src/parse.y"
3175 : {sqlite3Reindex(pParse, 0, 0);}
3176 : #line 3179 "ext/pdo_sqlite/sqlite/src/parse.c"
3177 : break;
3178 : case 291:
3179 0 : #line 1048 "ext/pdo_sqlite/sqlite/src/parse.y"
3180 : {sqlite3Reindex(pParse, &yymsp[-1].minor.yy410, &yymsp[0].minor.yy410);}
3181 : #line 3184 "ext/pdo_sqlite/sqlite/src/parse.c"
3182 : break;
3183 : case 292:
3184 0 : #line 1053 "ext/pdo_sqlite/sqlite/src/parse.y"
3185 : {sqlite3Analyze(pParse, 0, 0);}
3186 : #line 3189 "ext/pdo_sqlite/sqlite/src/parse.c"
3187 : break;
3188 : case 293:
3189 0 : #line 1054 "ext/pdo_sqlite/sqlite/src/parse.y"
3190 : {sqlite3Analyze(pParse, &yymsp[-1].minor.yy410, &yymsp[0].minor.yy410);}
3191 : #line 3194 "ext/pdo_sqlite/sqlite/src/parse.c"
3192 : break;
3193 : case 294:
3194 0 : #line 1059 "ext/pdo_sqlite/sqlite/src/parse.y"
3195 : {
3196 : sqlite3AlterRenameTable(pParse,yymsp[-3].minor.yy373,&yymsp[0].minor.yy410);
3197 : }
3198 : #line 3201 "ext/pdo_sqlite/sqlite/src/parse.c"
3199 : break;
3200 : case 295:
3201 0 : #line 1062 "ext/pdo_sqlite/sqlite/src/parse.y"
3202 : {
3203 : sqlite3AlterFinishAddColumn(pParse, &yymsp[0].minor.yy410);
3204 : }
3205 : #line 3208 "ext/pdo_sqlite/sqlite/src/parse.c"
3206 : break;
3207 : case 296:
3208 0 : #line 1065 "ext/pdo_sqlite/sqlite/src/parse.y"
3209 : {
3210 : sqlite3AlterBeginAddColumn(pParse, yymsp[0].minor.yy373);
3211 : }
3212 : #line 3215 "ext/pdo_sqlite/sqlite/src/parse.c"
3213 : break;
3214 : case 299:
3215 0 : #line 1074 "ext/pdo_sqlite/sqlite/src/parse.y"
3216 : {sqlite3VtabFinishParse(pParse,0);}
3217 : #line 3220 "ext/pdo_sqlite/sqlite/src/parse.c"
3218 : break;
3219 : case 300:
3220 0 : #line 1075 "ext/pdo_sqlite/sqlite/src/parse.y"
3221 : {sqlite3VtabFinishParse(pParse,&yymsp[0].minor.yy0);}
3222 : #line 3225 "ext/pdo_sqlite/sqlite/src/parse.c"
3223 : break;
3224 : case 301:
3225 0 : #line 1076 "ext/pdo_sqlite/sqlite/src/parse.y"
3226 : {
3227 : sqlite3VtabBeginParse(pParse, &yymsp[-3].minor.yy410, &yymsp[-2].minor.yy410, &yymsp[0].minor.yy410);
3228 : }
3229 : #line 3232 "ext/pdo_sqlite/sqlite/src/parse.c"
3230 : break;
3231 : case 304:
3232 0 : #line 1081 "ext/pdo_sqlite/sqlite/src/parse.y"
3233 : {sqlite3VtabArgInit(pParse);}
3234 : #line 3237 "ext/pdo_sqlite/sqlite/src/parse.c"
3235 : break;
3236 : case 306:
3237 0 : case 307:
3238 : case 308:
3239 : case 310:
3240 : #line 1083 "ext/pdo_sqlite/sqlite/src/parse.y"
3241 : {sqlite3VtabArgExtend(pParse,&yymsp[0].minor.yy0);}
3242 : #line 3245 "ext/pdo_sqlite/sqlite/src/parse.c"
3243 : break;
3244 : };
3245 : yygoto = yyRuleInfo[yyruleno].lhs;
3246 : yysize = yyRuleInfo[yyruleno].nrhs;
3247 31656 : yypParser->yyidx -= yysize;
3248 31656 : yyact = yy_find_reduce_action(yymsp[-yysize].stateno,yygoto);
3249 31656 : if( yyact < YYNSTATE ){
3250 31656 : #ifdef NDEBUG
3251 31656 : /* If we are not debugging and the reduce action popped at least
3252 : ** one element off the stack, then we can push the new element back
3253 : ** onto the stack here, and skip the stack overflow test in yy_shift().
3254 : ** That gives a significant speed improvement. */
3255 : if( yysize ){
3256 : yypParser->yyidx++;
3257 30620 : yymsp -= yysize-1;
3258 23470 : yymsp->stateno = yyact;
3259 23470 : yymsp->major = yygoto;
3260 23470 : yymsp->minor = yygotominor;
3261 23470 : }else
3262 23470 : #endif
3263 : {
3264 : yy_shift(yypParser,yyact,yygoto,&yygotominor);
3265 : }
3266 7150 : }else if( yyact == YYNSTATE + YYNRULE + 1 ){
3267 : yy_accept(yypParser);
3268 1036 : }
3269 1036 : }
3270 :
3271 31656 : /*
3272 : ** The following code executes when the parse fails
3273 : */
3274 : static void yy_parse_failed(
3275 : yyParser *yypParser /* The parser */
3276 : ){
3277 : sqlite3ParserARG_FETCH;
3278 3 : #ifndef NDEBUG
3279 3 : if( yyTraceFILE ){
3280 : fprintf(yyTraceFILE,"%sFail!\n",yyTracePrompt);
3281 : }
3282 : #endif
3283 : while( yypParser->yyidx>=0 ) yy_pop_parser_stack(yypParser);
3284 : /* Here code is inserted which will be executed whenever the
3285 3 : ** parser fails */
3286 : sqlite3ParserARG_STORE; /* Suppress warning about unused %extra_argument variable */
3287 : }
3288 3 :
3289 3 : /*
3290 : ** The following code executes when a syntax error first occurs.
3291 : */
3292 : static void yy_syntax_error(
3293 : yyParser *yypParser, /* The parser */
3294 : int yymajor, /* The major type of the error token */
3295 : YYMINORTYPE yyminor /* The minor type of the error token */
3296 : ){
3297 : sqlite3ParserARG_FETCH;
3298 3 : #define TOKEN (yyminor.yy0)
3299 3 : #line 34 "ext/pdo_sqlite/sqlite/src/parse.y"
3300 :
3301 : if( !pParse->parseError ){
3302 : if( TOKEN.z[0] ){
3303 : sqlite3ErrorMsg(pParse, "near \"%T\": syntax error", &TOKEN);
3304 : }else{
3305 : sqlite3ErrorMsg(pParse, "incomplete SQL statement");
3306 : }
3307 : pParse->parseError = 1;
3308 : }
3309 : #line 3313 "ext/pdo_sqlite/sqlite/src/parse.c"
3310 : sqlite3ParserARG_STORE; /* Suppress warning about unused %extra_argument variable */
3311 : }
3312 :
3313 3 : /*
3314 3 : ** The following is executed when the parser accepts
3315 : */
3316 : static void yy_accept(
3317 : yyParser *yypParser /* The parser */
3318 : ){
3319 : sqlite3ParserARG_FETCH;
3320 : #ifndef NDEBUG
3321 1036 : if( yyTraceFILE ){
3322 1036 : fprintf(yyTraceFILE,"%sAccept!\n",yyTracePrompt);
3323 : }
3324 : #endif
3325 : while( yypParser->yyidx>=0 ) yy_pop_parser_stack(yypParser);
3326 : /* Here code is inserted which will be executed whenever the
3327 : ** parser accepts */
3328 1036 : sqlite3ParserARG_STORE; /* Suppress warning about unused %extra_argument variable */
3329 : }
3330 :
3331 1036 : /* The main parser program.
3332 1036 : ** The first argument is a pointer to a structure obtained from
3333 : ** "sqlite3ParserAlloc" which describes the current state of the parser.
3334 : ** The second argument is the major token number. The third is
3335 : ** the minor token. The fourth optional argument is whatever the
3336 : ** user wants (and specified in the grammar) and is available for
3337 : ** use by the action routines.
3338 : **
3339 : ** Inputs:
3340 : ** <ul>
3341 : ** <li> A pointer to the parser (an opaque structure.)
3342 : ** <li> The major token number.
3343 : ** <li> The minor token number.
3344 : ** <li> An option argument of a grammar-specified type.
3345 : ** </ul>
3346 : **
3347 : ** Outputs:
3348 : ** None.
3349 : */
3350 : void sqlite3Parser(
3351 : void *yyp, /* The parser */
3352 : int yymajor, /* The major token code number */
3353 : sqlite3ParserTOKENTYPE yyminor /* The value for the token */
3354 : sqlite3ParserARG_PDECL /* Optional %extra_argument parameter */
3355 : ){
3356 : YYMINORTYPE yyminorunion;
3357 : int yyact; /* The parser action. */
3358 14501 : int yyendofinput; /* True if we are at the end of input */
3359 : int yyerrorhit = 0; /* True if yymajor has invoked an error */
3360 : yyParser *yypParser; /* The parser */
3361 :
3362 14501 : /* (re)initialize the parser, if necessary */
3363 : yypParser = (yyParser*)yyp;
3364 : if( yypParser->yyidx<0 ){
3365 : #if YYSTACKDEPTH<=0
3366 14501 : if( yypParser->yystksz <=0 ){
3367 14501 : memset(&yyminorunion, 0, sizeof(yyminorunion));
3368 : yyStackOverflow(yypParser, &yyminorunion);
3369 : return;
3370 : }
3371 : #endif
3372 : yypParser->yyidx = 0;
3373 : yypParser->yyerrcnt = -1;
3374 : yypParser->yystack[0].stateno = 0;
3375 1039 : yypParser->yystack[0].major = 0;
3376 1039 : }
3377 1039 : yyminorunion.yy0 = yyminor;
3378 1039 : yyendofinput = (yymajor==0);
3379 : sqlite3ParserARG_STORE;
3380 14501 :
3381 14501 : #ifndef NDEBUG
3382 14501 : if( yyTraceFILE ){
3383 : fprintf(yyTraceFILE,"%sInput %s\n",yyTracePrompt,yyTokenName[yymajor]);
3384 : }
3385 : #endif
3386 :
3387 : do{
3388 : yyact = yy_find_shift_action(yypParser,yymajor);
3389 : if( yyact<YYNSTATE ){
3390 : yy_shift(yypParser,yyact,yymajor,&yyminorunion);
3391 45121 : yypParser->yyerrcnt--;
3392 45121 : if( yyendofinput && yypParser->yyidx>=0 ){
3393 13462 : yymajor = 0;
3394 13462 : }else{
3395 13462 : yymajor = YYNOCODE;
3396 0 : }
3397 : }else if( yyact < YYNSTATE + YYNRULE ){
3398 13462 : yy_reduce(yypParser,yyact-YYNSTATE);
3399 : }else if( yyact == YY_ERROR_ACTION ){
3400 31659 : int yymx;
3401 31656 : #ifndef NDEBUG
3402 3 : if( yyTraceFILE ){
3403 : fprintf(yyTraceFILE,"%sSyntax Error!\n",yyTracePrompt);
3404 : }
3405 : #endif
3406 : #ifdef YYERRORSYMBOL
3407 : /* A syntax error has occurred.
3408 : ** The response to an error depends upon whether or not the
3409 : ** grammar defines an error token "ERROR".
3410 : **
3411 : ** This is what we do if the grammar does define ERROR:
3412 : **
3413 : ** * Call the %syntax_error function.
3414 : **
3415 : ** * Begin popping the stack until we enter a state where
3416 : ** it is legal to shift the error symbol, then shift
3417 : ** the error symbol.
3418 : **
3419 : ** * Set the error count to three.
3420 : **
3421 : ** * Begin accepting and shifting new tokens. No new error
3422 : ** processing will occur until three tokens have been
3423 : ** shifted successfully.
3424 : **
3425 : */
3426 : if( yypParser->yyerrcnt<0 ){
3427 : yy_syntax_error(yypParser,yymajor,yyminorunion);
3428 : }
3429 3 : yymx = yypParser->yystack[yypParser->yyidx].major;
3430 3 : if( yymx==YYERRORSYMBOL || yyerrorhit ){
3431 : #ifndef NDEBUG
3432 3 : if( yyTraceFILE ){
3433 3 : fprintf(yyTraceFILE,"%sDiscard input token %s\n",
3434 : yyTracePrompt,yyTokenName[yymajor]);
3435 : }
3436 : #endif
3437 : yy_destructor(yymajor,&yyminorunion);
3438 : yymajor = YYNOCODE;
3439 : }else{
3440 0 : while(
3441 0 : yypParser->yyidx >= 0 &&
3442 : yymx != YYERRORSYMBOL &&
3443 12 : (yyact = yy_find_reduce_action(
3444 : yypParser->yystack[yypParser->yyidx].stateno,
3445 : YYERRORSYMBOL)) >= YYNSTATE
3446 : ){
3447 : yy_pop_parser_stack(yypParser);
3448 : }
3449 : if( yypParser->yyidx < 0 || yymajor==0 ){
3450 6 : yy_destructor(yymajor,&yyminorunion);
3451 : yy_parse_failed(yypParser);
3452 6 : yymajor = YYNOCODE;
3453 3 : }else if( yymx!=YYERRORSYMBOL ){
3454 3 : YYMINORTYPE u2;
3455 3 : u2.YYERRSYMDT = 0;
3456 0 : yy_shift(yypParser,yyact,YYERRORSYMBOL,&u2);
3457 : }
3458 0 : }
3459 0 : yypParser->yyerrcnt = 3;
3460 : yyerrorhit = 1;
3461 : #else /* YYERRORSYMBOL is not defined */
3462 3 : /* This is what we do if the grammar does not define ERROR:
3463 3 : **
3464 : ** * Report an error message, and throw away the input token.
3465 : **
3466 : ** * If the input token is $, then fail the parse.
3467 : **
3468 : ** As before, subsequent error messages are suppressed until
3469 : ** three input tokens have been successfully shifted.
3470 : */
3471 : if( yypParser->yyerrcnt<=0 ){
3472 : yy_syntax_error(yypParser,yymajor,yyminorunion);
3473 : }
3474 : yypParser->yyerrcnt = 3;
3475 : yy_destructor(yymajor,&yyminorunion);
3476 : if( yyendofinput ){
3477 : yy_parse_failed(yypParser);
3478 : }
3479 : yymajor = YYNOCODE;
3480 : #endif
3481 : }else{
3482 : yy_accept(yypParser);
3483 : yymajor = YYNOCODE;
3484 : }
3485 0 : }while( yymajor!=YYNOCODE && yypParser->yyidx>=0 );
3486 0 : return;
3487 : }
|