ddbcli 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +9 -0
- data/bin/ddbcli +1 -1
- data/lib/ddbcli/cli/evaluate.rb +2 -2
- data/lib/ddbcli/cli/functions.rb +2 -2
- data/lib/ddbcli/cli/help.rb +8 -0
- data/lib/ddbcli/ddb-driver.rb +6 -0
- data/lib/ddbcli/ddb-parser.tab.rb +582 -559
- data/lib/ddbcli/ddb-parser.y +11 -2
- metadata +2 -2
@@ -14,7 +14,7 @@ module DynamoDB
|
|
14
14
|
|
15
15
|
class Parser < Racc::Parser
|
16
16
|
|
17
|
-
module_eval(<<'...end ddb-parser.y/module_eval...', 'ddb-parser.y',
|
17
|
+
module_eval(<<'...end ddb-parser.y/module_eval...', 'ddb-parser.y', 501)
|
18
18
|
|
19
19
|
KEYWORDS = %w(
|
20
20
|
ADD
|
@@ -97,8 +97,9 @@ def scan
|
|
97
97
|
until @ss.eos?
|
98
98
|
if (tok = @ss.scan /\s+/)
|
99
99
|
# nothing to do
|
100
|
-
elsif (tok = @ss.scan /(
|
100
|
+
elsif (tok = @ss.scan /(?:>>|<>|!=|>=|<=|>|<|=)/)
|
101
101
|
sym = {
|
102
|
+
'>>' => :GTGT,
|
102
103
|
'<>' => :NE,
|
103
104
|
'!=' => :NE,
|
104
105
|
'>=' => :GE,
|
@@ -153,7 +154,7 @@ def raise_error(error_value, prev_tokens, scanner)
|
|
153
154
|
if prev_tokens and not prev_tokens.empty?
|
154
155
|
toks = prev_tokens.reverse[0, 5].reverse
|
155
156
|
toks.unshift('...') if prev_tokens.length > toks.length
|
156
|
-
errmsg.unshift(toks.join.strip)
|
157
|
+
errmsg.unshift(toks.join.strip)
|
157
158
|
end
|
158
159
|
|
159
160
|
if scanner and not (rest = (scanner.rest || '').strip).empty?
|
@@ -182,397 +183,404 @@ end
|
|
182
183
|
##### State transition tables begin ###
|
183
184
|
|
184
185
|
racc_action_table = [
|
185
|
-
3, 4,
|
186
|
-
|
187
|
-
|
188
|
-
24, 25,
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
172, 173,
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
186
|
+
3, 4, 104, 152, 182, 18, 152, 152, 152, 172,
|
187
|
+
21, 52, 19, 20, 154, 52, 152, 154, 154, 154,
|
188
|
+
120, 120, 25, 52, 152, 151, 181, 154, 151, 151,
|
189
|
+
151, 22, 23, 24, 25, 154, 152, 50, 151, 26,
|
190
|
+
152, 50, 101, 126, 152, 99, 151, 154, 72, 50,
|
191
|
+
152, 154, 148, 95, 210, 154, 27, 52, 151, 28,
|
192
|
+
29, 154, 151, 30, 153, 183, 151, 153, 153, 153,
|
193
|
+
152, 49, 151, 192, 48, 209, 54, 153, 88, 57,
|
194
|
+
89, 154, 47, 50, 192, 153, 56, 36, 37, 101,
|
195
|
+
38, 39, 151, 55, 103, 188, 94, 153, 32, 33,
|
196
|
+
34, 153, 35, 107, 261, 153, 188, 262, 108, 86,
|
197
|
+
110, 153, 87, 196, 189, 190, 191, 193, 195, 197,
|
198
|
+
200, 201, 202, 111, 213, 189, 190, 191, 193, 221,
|
199
|
+
269, 153, 222, 262, 219, 223, 287, 220, 224, 288,
|
200
|
+
162, 86, 86, 163, 87, 87, 134, 135, 136, 134,
|
201
|
+
135, 136, 134, 135, 136, 281, 282, 283, 231, 230,
|
202
|
+
77, 78, 77, 78, 113, 114, 115, 116, 93, 101,
|
203
|
+
92, 121, 99, 125, 126, 129, 130, 131, 132, 91,
|
204
|
+
90, 139, 140, 141, 126, 143, 144, 99, 84, 83,
|
205
|
+
156, 157, 160, 63, 82, 164, 165, 81, 167, 169,
|
206
|
+
172, 173, 174, 63, 176, 177, 80, 63, 125, 79,
|
207
|
+
187, 75, 203, 204, 205, 206, 207, 63, 74, 211,
|
208
|
+
73, 215, 113, 217, 126, 70, 69, 68, 160, 67,
|
209
|
+
154, 66, 65, 232, 234, 235, 236, 237, 96, 64,
|
210
|
+
63, 241, 139, 126, 63, 245, 246, 247, 248, 249,
|
211
|
+
250, 61, 253, 254, 60, 256, 169, 63, 59, 260,
|
212
|
+
58, 263, 45, 63, 44, 43, 268, 42, 272, 273,
|
213
|
+
274, 272, 276, 277, 41, 279, 40, 284, 286, 31,
|
214
|
+
289 ]
|
213
215
|
|
214
216
|
racc_action_check = [
|
215
|
-
0, 0,
|
216
|
-
0,
|
217
|
-
|
218
|
-
0, 0,
|
219
|
-
26,
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
99, 100, 103, 104,
|
233
|
-
|
234
|
-
|
235
|
-
139, 140,
|
236
|
-
|
237
|
-
173,
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
23, 22,
|
242
|
-
20,
|
217
|
+
0, 0, 82, 121, 154, 0, 157, 248, 196, 211,
|
218
|
+
0, 94, 0, 0, 121, 26, 212, 157, 248, 196,
|
219
|
+
97, 122, 82, 48, 262, 121, 154, 212, 157, 248,
|
220
|
+
196, 0, 0, 0, 0, 262, 260, 94, 212, 0,
|
221
|
+
256, 26, 97, 122, 213, 76, 262, 260, 48, 48,
|
222
|
+
234, 256, 121, 74, 169, 213, 0, 25, 260, 0,
|
223
|
+
0, 234, 256, 0, 121, 154, 213, 157, 248, 196,
|
224
|
+
194, 25, 234, 160, 25, 169, 27, 212, 67, 28,
|
225
|
+
67, 194, 25, 25, 172, 262, 28, 18, 18, 80,
|
226
|
+
18, 18, 194, 27, 81, 160, 73, 260, 2, 2,
|
227
|
+
2, 256, 2, 86, 251, 213, 172, 251, 87, 111,
|
228
|
+
88, 234, 111, 160, 160, 160, 160, 160, 160, 160,
|
229
|
+
160, 160, 160, 89, 172, 172, 172, 172, 172, 179,
|
230
|
+
266, 194, 179, 266, 178, 180, 285, 178, 180, 285,
|
231
|
+
128, 66, 132, 128, 66, 132, 237, 237, 237, 277,
|
232
|
+
277, 277, 110, 110, 110, 279, 279, 279, 197, 197,
|
233
|
+
54, 54, 79, 79, 90, 91, 92, 93, 72, 96,
|
234
|
+
71, 99, 100, 101, 103, 104, 107, 108, 109, 70,
|
235
|
+
69, 112, 113, 114, 115, 116, 117, 120, 65, 63,
|
236
|
+
123, 125, 126, 127, 58, 130, 131, 57, 133, 138,
|
237
|
+
139, 140, 141, 142, 143, 144, 56, 155, 156, 55,
|
238
|
+
158, 53, 162, 163, 164, 165, 167, 168, 51, 170,
|
239
|
+
49, 173, 174, 176, 177, 47, 46, 43, 187, 42,
|
240
|
+
195, 40, 39, 202, 203, 205, 206, 207, 75, 37,
|
241
|
+
36, 215, 216, 217, 218, 220, 222, 224, 228, 231,
|
242
|
+
233, 35, 235, 236, 34, 240, 242, 243, 31, 250,
|
243
|
+
29, 255, 24, 257, 23, 22, 263, 21, 268, 270,
|
244
|
+
272, 273, 274, 276, 20, 278, 19, 283, 284, 1,
|
245
|
+
288 ]
|
243
246
|
|
244
247
|
racc_action_pointer = [
|
245
|
-
-2,
|
246
|
-
nil, nil, nil, nil, nil, nil, nil, nil,
|
247
|
-
|
248
|
-
nil,
|
249
|
-
218,
|
250
|
-
nil,
|
251
|
-
nil,
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
nil,
|
266
|
-
nil,
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
248
|
+
-2, 279, 96, nil, nil, nil, nil, nil, nil, nil,
|
249
|
+
nil, nil, nil, nil, nil, nil, nil, nil, 79, 267,
|
250
|
+
261, 258, 256, 251, 249, 44, 2, 63, 49, 197,
|
251
|
+
nil, 258, nil, nil, 249, 246, 183, 229, nil, 223,
|
252
|
+
218, nil, 216, 214, nil, nil, 189, 209, 10, 180,
|
253
|
+
nil, 198, nil, 174, 101, 196, 193, 160, 181, nil,
|
254
|
+
nil, nil, nil, 162, nil, 175, 116, 62, nil, 167,
|
255
|
+
140, 133, 152, 69, 40, 225, 32, nil, nil, 103,
|
256
|
+
47, 81, -14, nil, nil, nil, 77, 82, 97, 110,
|
257
|
+
149, 148, 153, 128, -2, nil, 127, 0, nil, 145,
|
258
|
+
159, 160, nil, 132, 162, nil, nil, 149, 150, 161,
|
259
|
+
130, 84, 139, 153, 146, 142, 168, 149, nil, nil,
|
260
|
+
174, -2, 1, 147, nil, 165, 179, 136, 123, nil,
|
261
|
+
175, 176, 117, 179, nil, nil, nil, nil, 144, 187,
|
262
|
+
185, 189, 146, 167, 192, nil, nil, nil, nil, nil,
|
263
|
+
nil, nil, nil, nil, -1, 150, 195, 1, 167, nil,
|
264
|
+
69, nil, 148, 200, 186, 190, nil, 196, 160, 19,
|
265
|
+
176, nil, 80, 208, 207, nil, 210, 182, 117, 112,
|
266
|
+
118, nil, nil, nil, nil, nil, nil, 215, nil, nil,
|
267
|
+
nil, nil, nil, nil, 65, 214, 3, 105, nil, nil,
|
268
|
+
nil, nil, 181, 218, nil, 209, 210, 224, nil, nil,
|
269
|
+
nil, -4, 11, 39, nil, 224, 200, 201, 187, nil,
|
270
|
+
218, nil, 241, nil, 181, nil, nil, nil, 205, nil,
|
271
|
+
nil, 195, nil, 230, 45, 225, 226, 124, nil, nil,
|
272
|
+
212, nil, 201, 200, nil, nil, nil, nil, 2, nil,
|
273
|
+
243, 87, nil, nil, nil, 240, 35, 206, nil, nil,
|
274
|
+
31, nil, 19, 246, nil, nil, 113, nil, 239, nil,
|
275
|
+
249, nil, 257, 242, 256, nil, 260, 127, 258, 125,
|
276
|
+
nil, nil, nil, 261, 265, 119, nil, nil, 267, nil ]
|
274
277
|
|
275
278
|
racc_action_default = [
|
276
|
-
-
|
277
|
-
-
|
278
|
-
-
|
279
|
-
-
|
280
|
-
-
|
281
|
-
-55,
|
282
|
-
|
283
|
-
-
|
284
|
-
|
285
|
-
-
|
286
|
-
-
|
287
|
-
-
|
288
|
-
-
|
289
|
-
|
290
|
-
-
|
291
|
-
-
|
292
|
-
-
|
293
|
-
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
-
|
298
|
-
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
-
|
279
|
+
-133, -133, -1, -6, -7, -8, -9, -10, -11, -12,
|
280
|
+
-13, -14, -15, -16, -17, -18, -19, -20, -133, -133,
|
281
|
+
-133, -133, -133, -133, -133, -133, -133, -133, -133, -133,
|
282
|
+
-116, -133, -2, -3, -133, -133, -92, -133, -23, -133,
|
283
|
+
-133, -26, -133, -133, -47, -48, -133, -133, -133, -133,
|
284
|
+
-55, -56, -57, -133, -133, -133, -133, -133, -133, 290,
|
285
|
+
-4, -5, -21, -133, -22, -133, -133, -133, -46, -133,
|
286
|
+
-133, -133, -133, -133, -133, -133, -133, -96, -97, -133,
|
287
|
+
-133, -133, -133, -93, -24, -25, -133, -133, -133, -133,
|
288
|
+
-59, -133, -133, -133, -133, -58, -133, -133, -98, -133,
|
289
|
+
-133, -133, -105, -74, -133, -108, -109, -133, -133, -133,
|
290
|
+
-133, -28, -61, -133, -133, -74, -133, -133, -54, -94,
|
291
|
+
-133, -133, -74, -101, -102, -133, -133, -92, -133, -110,
|
292
|
+
-133, -133, -133, -133, -33, -34, -35, -29, -89, -133,
|
293
|
+
-133, -133, -92, -133, -133, -99, -100, -117, -118, -119,
|
294
|
+
-120, -121, -122, -123, -133, -92, -133, -133, -75, -76,
|
295
|
+
-133, -106, -133, -133, -133, -133, -27, -30, -92, -133,
|
296
|
+
-62, -63, -133, -133, -59, -51, -133, -74, -133, -133,
|
297
|
+
-133, -127, -129, -131, -95, -103, -104, -133, -68, -69,
|
298
|
+
-70, -71, -72, -73, -133, -133, -133, -133, -82, -83,
|
299
|
+
-84, -85, -133, -133, -111, -133, -133, -133, -49, -90,
|
300
|
+
-91, -133, -133, -133, -67, -133, -61, -74, -92, -124,
|
301
|
+
-133, -125, -133, -126, -133, -77, -78, -79, -133, -81,
|
302
|
+
-87, -133, -86, -107, -133, -133, -133, -133, -64, -65,
|
303
|
+
-133, -60, -89, -92, -53, -128, -130, -132, -133, -88,
|
304
|
+
-133, -133, -114, -36, -37, -133, -133, -92, -52, -80,
|
305
|
+
-133, -112, -133, -31, -66, -50, -133, -115, -133, -113,
|
306
|
+
-32, -38, -133, -133, -133, -39, -133, -133, -133, -133,
|
307
|
+
-40, -41, -42, -133, -133, -133, -44, -43, -133, -45 ]
|
305
308
|
|
306
309
|
racc_goto_table = [
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
13,
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
nil, nil, nil, nil,
|
318
|
-
nil, nil, nil, nil, nil, nil, nil,
|
319
|
-
nil, nil, nil, nil, nil, nil, nil, nil,
|
320
|
-
|
321
|
-
nil, nil, nil,
|
310
|
+
62, 133, 147, 168, 127, 138, 112, 12, 171, 159,
|
311
|
+
11, 124, 46, 53, 251, 97, 142, 85, 76, 198,
|
312
|
+
102, 271, 1, 155, 280, 285, 275, 109, 17, 16,
|
313
|
+
270, 214, 15, 14, 170, 71, 118, 119, 186, 122,
|
314
|
+
266, 13, 212, 100, 10, 9, 158, 8, 194, 227,
|
315
|
+
229, 199, 7, 6, 145, 146, 123, 5, 128, 233,
|
316
|
+
2, 178, 137, 179, 180, nil, 185, nil, nil, nil,
|
317
|
+
225, nil, nil, nil, nil, 226, nil, 228, 218, nil,
|
318
|
+
238, 117, nil, 166, nil, nil, nil, nil, nil, 106,
|
319
|
+
216, 161, 105, 239, 240, nil, nil, nil, nil, nil,
|
320
|
+
nil, nil, nil, nil, nil, nil, 175, 257, nil, 242,
|
321
|
+
nil, nil, nil, nil, nil, nil, nil, nil, 243, 184,
|
322
|
+
nil, nil, nil, nil, nil, nil, nil, nil, 255, 259,
|
323
|
+
nil, nil, 208, nil, nil, nil, nil, 264, nil, nil,
|
324
|
+
nil, nil, nil, 267, nil, nil, nil, nil, nil, nil,
|
322
325
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
323
|
-
nil, nil, nil, nil, nil, nil, nil, nil,
|
326
|
+
nil, nil, nil, nil, nil, nil, nil, nil, 278, nil,
|
324
327
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
325
|
-
|
328
|
+
nil, nil, 244, nil, nil, nil, nil, nil, nil, nil,
|
326
329
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
327
|
-
nil, nil, nil, nil, nil,
|
328
|
-
nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
330
|
+
nil, nil, nil, nil, nil, nil, nil, 258, nil, nil,
|
331
|
+
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
332
|
+
nil, 265 ]
|
329
333
|
|
330
334
|
racc_goto_check = [
|
331
|
-
16, 19, 34, 27, 28, 26, 25, 10,
|
332
|
-
|
335
|
+
16, 19, 34, 27, 28, 26, 25, 10, 32, 37,
|
336
|
+
9, 47, 24, 24, 50, 43, 28, 17, 42, 35,
|
333
337
|
29, 21, 1, 28, 22, 23, 21, 18, 15, 14,
|
334
|
-
|
335
|
-
11,
|
336
|
-
40, 41, 5, 4, 44,
|
337
|
-
|
338
|
-
nil, nil,
|
339
|
-
nil,
|
340
|
-
25,
|
341
|
-
nil, nil, nil, nil,
|
342
|
-
nil, nil, nil, nil, nil, nil, nil,
|
338
|
+
20, 35, 13, 12, 31, 24, 29, 29, 34, 43,
|
339
|
+
50, 11, 33, 42, 8, 7, 36, 6, 38, 39,
|
340
|
+
40, 41, 5, 4, 44, 45, 46, 3, 48, 49,
|
341
|
+
2, 52, 17, 53, 54, nil, 47, nil, nil, nil,
|
342
|
+
37, nil, nil, nil, nil, 34, nil, 34, 28, nil,
|
343
|
+
32, 24, nil, 17, nil, nil, nil, nil, nil, 10,
|
344
|
+
25, 16, 9, 34, 34, nil, nil, nil, nil, nil,
|
345
|
+
nil, nil, nil, nil, nil, nil, 16, 27, nil, 26,
|
346
|
+
nil, nil, nil, nil, nil, nil, nil, nil, 28, 16,
|
343
347
|
nil, nil, nil, nil, nil, nil, nil, nil, 19, 34,
|
344
|
-
|
348
|
+
nil, nil, 16, nil, nil, nil, nil, 34, nil, nil,
|
345
349
|
nil, nil, nil, 34, nil, nil, nil, nil, nil, nil,
|
346
350
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
347
351
|
nil, nil, nil, nil, nil, nil, nil, nil, 19, nil,
|
348
352
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
349
|
-
|
353
|
+
nil, nil, 16, nil, nil, nil, nil, nil, nil, nil,
|
354
|
+
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
355
|
+
nil, nil, nil, nil, nil, nil, nil, 16, nil, nil,
|
350
356
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
351
|
-
nil,
|
352
|
-
nil, nil, nil, nil, nil, nil, nil, nil, nil, 16 ]
|
357
|
+
nil, 16 ]
|
353
358
|
|
354
359
|
racc_goto_pointer = [
|
355
|
-
nil, 22,
|
356
|
-
7,
|
357
|
-
-
|
358
|
-
nil, -
|
359
|
-
-
|
360
|
-
-
|
360
|
+
nil, 22, 60, 57, 53, 52, 47, 45, 44, 10,
|
361
|
+
7, 41, 33, 32, 29, 28, -36, -49, -61, -109,
|
362
|
+
-238, -247, -255, -259, -13, -84, -107, -135, -99, -60,
|
363
|
+
nil, -105, -131, -130, -119, -141, -80, -117, -112, -146,
|
364
|
+
-147, -109, -36, -61, -66, -66, -45, -90, -46, -144,
|
365
|
+
-220, nil, -93, -91, -90 ]
|
361
366
|
|
362
367
|
racc_goto_default = [
|
363
368
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
364
369
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
365
370
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
366
|
-
|
367
|
-
nil, nil, nil, nil,
|
368
|
-
nil,
|
371
|
+
51, nil, nil, nil, 252, nil, nil, nil, nil, 150,
|
372
|
+
nil, nil, nil, nil, 98, nil, nil, nil, nil, nil,
|
373
|
+
nil, 149, nil, nil, nil ]
|
369
374
|
|
370
375
|
racc_reduce_table = [
|
371
376
|
0, 0, :racc_error,
|
372
|
-
1,
|
373
|
-
2,
|
374
|
-
2,
|
375
|
-
|
376
|
-
|
377
|
-
1, 68, :
|
378
|
-
1, 68, :
|
379
|
-
1,
|
380
|
-
1,
|
381
|
-
1,
|
382
|
-
1,
|
383
|
-
1,
|
384
|
-
1,
|
385
|
-
1,
|
386
|
-
1,
|
387
|
-
1,
|
388
|
-
1,
|
389
|
-
1,
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
1,
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
377
|
+
1, 68, :_reduce_1,
|
378
|
+
2, 68, :_reduce_2,
|
379
|
+
2, 68, :_reduce_3,
|
380
|
+
3, 68, :_reduce_4,
|
381
|
+
3, 68, :_reduce_5,
|
382
|
+
1, 68, :_reduce_6,
|
383
|
+
1, 68, :_reduce_7,
|
384
|
+
1, 69, :_reduce_none,
|
385
|
+
1, 69, :_reduce_none,
|
386
|
+
1, 69, :_reduce_none,
|
387
|
+
1, 69, :_reduce_none,
|
388
|
+
1, 69, :_reduce_none,
|
389
|
+
1, 69, :_reduce_none,
|
390
|
+
1, 69, :_reduce_none,
|
391
|
+
1, 69, :_reduce_none,
|
392
|
+
1, 69, :_reduce_none,
|
393
|
+
1, 69, :_reduce_none,
|
394
|
+
1, 69, :_reduce_none,
|
395
|
+
1, 69, :_reduce_none,
|
396
|
+
1, 69, :_reduce_none,
|
397
|
+
3, 70, :_reduce_21,
|
398
|
+
3, 70, :_reduce_22,
|
399
|
+
2, 70, :_reduce_23,
|
400
|
+
4, 70, :_reduce_24,
|
401
|
+
4, 71, :_reduce_25,
|
402
|
+
2, 72, :_reduce_26,
|
403
|
+
7, 73, :_reduce_27,
|
404
|
+
5, 73, :_reduce_28,
|
405
|
+
6, 73, :_reduce_29,
|
406
|
+
3, 85, :_reduce_30,
|
407
|
+
7, 85, :_reduce_31,
|
408
|
+
9, 85, :_reduce_32,
|
409
|
+
1, 86, :_reduce_33,
|
410
|
+
1, 86, :_reduce_34,
|
411
|
+
1, 86, :_reduce_35,
|
412
|
+
7, 84, :_reduce_36,
|
413
|
+
7, 84, :_reduce_37,
|
414
|
+
1, 87, :_reduce_38,
|
415
|
+
3, 87, :_reduce_39,
|
416
|
+
7, 88, :_reduce_40,
|
417
|
+
1, 89, :_reduce_41,
|
413
418
|
1, 89, :_reduce_42,
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
1,
|
427
|
-
|
428
|
-
|
429
|
-
|
419
|
+
4, 89, :_reduce_43,
|
420
|
+
1, 90, :_reduce_44,
|
421
|
+
3, 90, :_reduce_45,
|
422
|
+
3, 74, :_reduce_46,
|
423
|
+
2, 75, :_reduce_47,
|
424
|
+
2, 75, :_reduce_48,
|
425
|
+
8, 76, :_reduce_49,
|
426
|
+
11, 76, :_reduce_50,
|
427
|
+
7, 77, :_reduce_51,
|
428
|
+
10, 77, :_reduce_52,
|
429
|
+
9, 77, :_reduce_53,
|
430
|
+
5, 78, :_reduce_54,
|
431
|
+
1, 91, :_reduce_55,
|
432
|
+
1, 91, :_reduce_56,
|
433
|
+
1, 97, :_reduce_57,
|
434
|
+
3, 97, :_reduce_58,
|
430
435
|
0, 92, :_reduce_none,
|
431
|
-
|
432
|
-
1, 97, :_reduce_61,
|
433
|
-
3, 97, :_reduce_62,
|
434
|
-
3, 98, :_reduce_63,
|
435
|
-
5, 98, :_reduce_64,
|
436
|
-
1, 99, :_reduce_none,
|
437
|
-
1, 101, :_reduce_66,
|
438
|
-
1, 101, :_reduce_67,
|
439
|
-
1, 101, :_reduce_68,
|
440
|
-
1, 101, :_reduce_69,
|
441
|
-
1, 101, :_reduce_70,
|
442
|
-
1, 101, :_reduce_none,
|
443
|
-
0, 94, :_reduce_none,
|
444
|
-
2, 94, :_reduce_73,
|
445
|
-
1, 102, :_reduce_74,
|
446
|
-
3, 102, :_reduce_75,
|
447
|
-
3, 103, :_reduce_76,
|
448
|
-
3, 103, :_reduce_77,
|
449
|
-
5, 103, :_reduce_78,
|
450
|
-
3, 103, :_reduce_79,
|
451
|
-
1, 104, :_reduce_none,
|
452
|
-
1, 104, :_reduce_none,
|
453
|
-
1, 104, :_reduce_82,
|
454
|
-
1, 107, :_reduce_none,
|
455
|
-
2, 107, :_reduce_84,
|
456
|
-
1, 106, :_reduce_85,
|
457
|
-
2, 106, :_reduce_86,
|
436
|
+
5, 92, :_reduce_60,
|
458
437
|
0, 93, :_reduce_none,
|
459
|
-
2, 93, :
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
5,
|
464
|
-
7, 78, :_reduce_93,
|
465
|
-
1, 108, :_reduce_94,
|
466
|
-
1, 108, :_reduce_95,
|
467
|
-
1, 109, :_reduce_96,
|
468
|
-
3, 109, :_reduce_97,
|
469
|
-
3, 110, :_reduce_98,
|
470
|
-
2, 95, :_reduce_99,
|
471
|
-
1, 112, :_reduce_100,
|
472
|
-
3, 112, :_reduce_101,
|
473
|
-
3, 113, :_reduce_102,
|
474
|
-
4, 79, :_reduce_103,
|
475
|
-
6, 79, :_reduce_104,
|
476
|
-
8, 80, :_reduce_105,
|
477
|
-
4, 80, :_reduce_106,
|
478
|
-
4, 80, :_reduce_107,
|
479
|
-
1, 114, :_reduce_108,
|
480
|
-
3, 114, :_reduce_109,
|
481
|
-
3, 115, :_reduce_110,
|
482
|
-
5, 115, :_reduce_111,
|
483
|
-
1, 116, :_reduce_112,
|
484
|
-
3, 116, :_reduce_113,
|
485
|
-
1, 81, :_reduce_114,
|
486
|
-
1, 111, :_reduce_none,
|
487
|
-
1, 111, :_reduce_none,
|
438
|
+
2, 93, :_reduce_62,
|
439
|
+
1, 98, :_reduce_63,
|
440
|
+
3, 98, :_reduce_64,
|
441
|
+
3, 99, :_reduce_65,
|
442
|
+
5, 99, :_reduce_66,
|
488
443
|
1, 100, :_reduce_none,
|
489
|
-
1,
|
490
|
-
1,
|
491
|
-
1,
|
492
|
-
1,
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
444
|
+
1, 102, :_reduce_68,
|
445
|
+
1, 102, :_reduce_69,
|
446
|
+
1, 102, :_reduce_70,
|
447
|
+
1, 102, :_reduce_71,
|
448
|
+
1, 102, :_reduce_72,
|
449
|
+
1, 102, :_reduce_none,
|
450
|
+
0, 95, :_reduce_none,
|
451
|
+
2, 95, :_reduce_75,
|
452
|
+
1, 103, :_reduce_76,
|
453
|
+
3, 103, :_reduce_77,
|
454
|
+
3, 104, :_reduce_78,
|
455
|
+
3, 104, :_reduce_79,
|
456
|
+
5, 104, :_reduce_80,
|
457
|
+
3, 104, :_reduce_81,
|
458
|
+
1, 105, :_reduce_none,
|
459
|
+
1, 105, :_reduce_none,
|
460
|
+
1, 105, :_reduce_84,
|
461
|
+
1, 108, :_reduce_none,
|
462
|
+
2, 108, :_reduce_86,
|
463
|
+
1, 107, :_reduce_87,
|
464
|
+
2, 107, :_reduce_88,
|
465
|
+
0, 94, :_reduce_none,
|
466
|
+
2, 94, :_reduce_90,
|
467
|
+
2, 94, :_reduce_91,
|
468
|
+
0, 83, :_reduce_none,
|
469
|
+
2, 83, :_reduce_93,
|
470
|
+
5, 79, :_reduce_94,
|
471
|
+
7, 79, :_reduce_95,
|
472
|
+
1, 109, :_reduce_96,
|
473
|
+
1, 109, :_reduce_97,
|
474
|
+
1, 110, :_reduce_98,
|
475
|
+
3, 110, :_reduce_99,
|
476
|
+
3, 111, :_reduce_100,
|
477
|
+
2, 96, :_reduce_101,
|
478
|
+
1, 113, :_reduce_102,
|
479
|
+
3, 113, :_reduce_103,
|
480
|
+
3, 114, :_reduce_104,
|
481
|
+
4, 80, :_reduce_105,
|
482
|
+
6, 80, :_reduce_106,
|
483
|
+
8, 81, :_reduce_107,
|
484
|
+
4, 81, :_reduce_108,
|
485
|
+
4, 81, :_reduce_109,
|
486
|
+
1, 115, :_reduce_110,
|
487
|
+
3, 115, :_reduce_111,
|
488
|
+
3, 116, :_reduce_112,
|
489
|
+
5, 116, :_reduce_113,
|
490
|
+
1, 117, :_reduce_114,
|
491
|
+
3, 117, :_reduce_115,
|
492
|
+
1, 82, :_reduce_116,
|
493
|
+
1, 112, :_reduce_none,
|
494
|
+
1, 112, :_reduce_none,
|
495
|
+
1, 101, :_reduce_none,
|
496
|
+
1, 101, :_reduce_none,
|
497
|
+
1, 118, :_reduce_none,
|
498
|
+
1, 118, :_reduce_none,
|
499
|
+
1, 118, :_reduce_none,
|
500
|
+
3, 106, :_reduce_124,
|
501
|
+
3, 106, :_reduce_125,
|
502
|
+
3, 106, :_reduce_126,
|
498
503
|
1, 119, :_reduce_127,
|
499
504
|
3, 119, :_reduce_128,
|
500
505
|
1, 120, :_reduce_129,
|
501
|
-
3, 120, :_reduce_130
|
506
|
+
3, 120, :_reduce_130,
|
507
|
+
1, 121, :_reduce_131,
|
508
|
+
3, 121, :_reduce_132 ]
|
502
509
|
|
503
|
-
racc_reduce_n =
|
510
|
+
racc_reduce_n = 133
|
504
511
|
|
505
|
-
racc_shift_n =
|
512
|
+
racc_shift_n = 290
|
506
513
|
|
507
514
|
racc_token_table = {
|
508
515
|
false => 0,
|
509
516
|
:error => 1,
|
510
517
|
:RUBY_SCRIPT => 2,
|
511
518
|
:SHELL_SCRIPT => 3,
|
512
|
-
:
|
513
|
-
:
|
514
|
-
:
|
515
|
-
:
|
516
|
-
:
|
517
|
-
:
|
518
|
-
:
|
519
|
-
:
|
520
|
-
:
|
521
|
-
|
522
|
-
|
523
|
-
:
|
524
|
-
|
525
|
-
"
|
526
|
-
:
|
527
|
-
:
|
528
|
-
|
529
|
-
:
|
530
|
-
:
|
531
|
-
:
|
532
|
-
:
|
533
|
-
:
|
534
|
-
:
|
535
|
-
:
|
536
|
-
:
|
537
|
-
:
|
538
|
-
:
|
539
|
-
:
|
540
|
-
:
|
541
|
-
:
|
542
|
-
:
|
543
|
-
:
|
544
|
-
|
545
|
-
|
546
|
-
:
|
547
|
-
|
548
|
-
|
549
|
-
:
|
550
|
-
:
|
551
|
-
:
|
552
|
-
:
|
553
|
-
:
|
554
|
-
:
|
555
|
-
:
|
556
|
-
:
|
557
|
-
:
|
558
|
-
:
|
559
|
-
:
|
560
|
-
:
|
561
|
-
:
|
562
|
-
:
|
563
|
-
:
|
564
|
-
:
|
565
|
-
:
|
566
|
-
:
|
567
|
-
:
|
568
|
-
:
|
569
|
-
:
|
570
|
-
:
|
571
|
-
:
|
572
|
-
:
|
573
|
-
:
|
574
|
-
|
575
|
-
|
519
|
+
:GT => 4,
|
520
|
+
:STRING_VALUE => 5,
|
521
|
+
:GTGT => 6,
|
522
|
+
:SHOW => 7,
|
523
|
+
:TABLES => 8,
|
524
|
+
:TABLE => 9,
|
525
|
+
:STATUS => 10,
|
526
|
+
:REGIONS => 11,
|
527
|
+
:CREATE => 12,
|
528
|
+
:IDENTIFIER => 13,
|
529
|
+
:ALTER => 14,
|
530
|
+
:USE => 15,
|
531
|
+
"(" => 16,
|
532
|
+
")" => 17,
|
533
|
+
:LIKE => 18,
|
534
|
+
:HASH => 19,
|
535
|
+
"," => 20,
|
536
|
+
:RANGE => 21,
|
537
|
+
:STRING => 22,
|
538
|
+
:NUMBER => 23,
|
539
|
+
:BINARY => 24,
|
540
|
+
:READ => 25,
|
541
|
+
:EQ => 26,
|
542
|
+
:NUMBER_VALUE => 27,
|
543
|
+
:WRITE => 28,
|
544
|
+
:INDEX => 29,
|
545
|
+
:ALL => 30,
|
546
|
+
:KEYS_ONLY => 31,
|
547
|
+
:INCLUDE => 32,
|
548
|
+
:DROP => 33,
|
549
|
+
:DESCRIBE => 34,
|
550
|
+
:DESC => 35,
|
551
|
+
:SELECT => 36,
|
552
|
+
:FROM => 37,
|
553
|
+
:COUNT => 38,
|
554
|
+
"*" => 39,
|
555
|
+
"/" => 40,
|
556
|
+
:GET => 41,
|
557
|
+
:WHERE => 42,
|
558
|
+
:AND => 43,
|
559
|
+
:BETWEEN => 44,
|
560
|
+
:LE => 45,
|
561
|
+
:LT => 46,
|
562
|
+
:GE => 47,
|
563
|
+
:BEGINS_WITH => 48,
|
564
|
+
:IN => 49,
|
565
|
+
:IS => 50,
|
566
|
+
:NE => 51,
|
567
|
+
:CONTAINS => 52,
|
568
|
+
:NOT => 53,
|
569
|
+
:NULL => 54,
|
570
|
+
:ORDER => 55,
|
571
|
+
:ASC => 56,
|
572
|
+
:LIMIT => 57,
|
573
|
+
:UPDATE => 58,
|
574
|
+
:SET => 59,
|
575
|
+
:ADD => 60,
|
576
|
+
:DELETE => 61,
|
577
|
+
:INSERT => 62,
|
578
|
+
:INTO => 63,
|
579
|
+
:VALUES => 64,
|
580
|
+
:NEXT => 65,
|
581
|
+
:BINARY_VALUE => 66 }
|
582
|
+
|
583
|
+
racc_nt_base = 67
|
576
584
|
|
577
585
|
racc_use_result_var = false
|
578
586
|
|
@@ -597,6 +605,9 @@ Racc_token_to_s_table = [
|
|
597
605
|
"error",
|
598
606
|
"RUBY_SCRIPT",
|
599
607
|
"SHELL_SCRIPT",
|
608
|
+
"GT",
|
609
|
+
"STRING_VALUE",
|
610
|
+
"GTGT",
|
600
611
|
"SHOW",
|
601
612
|
"TABLES",
|
602
613
|
"TABLE",
|
@@ -638,7 +649,6 @@ Racc_token_to_s_table = [
|
|
638
649
|
"LE",
|
639
650
|
"LT",
|
640
651
|
"GE",
|
641
|
-
"GT",
|
642
652
|
"BEGINS_WITH",
|
643
653
|
"IN",
|
644
654
|
"IS",
|
@@ -657,7 +667,6 @@ Racc_token_to_s_table = [
|
|
657
667
|
"INTO",
|
658
668
|
"VALUES",
|
659
669
|
"NEXT",
|
660
|
-
"STRING_VALUE",
|
661
670
|
"BINARY_VALUE",
|
662
671
|
"$start",
|
663
672
|
"stmt",
|
@@ -744,21 +753,31 @@ module_eval(<<'.,.,', 'ddb-parser.y', 13)
|
|
744
753
|
|
745
754
|
module_eval(<<'.,.,', 'ddb-parser.y', 17)
|
746
755
|
def _reduce_4(val, _values)
|
747
|
-
[
|
756
|
+
[val[0], :overwrite, val[2]]
|
748
757
|
|
749
758
|
end
|
750
759
|
.,.,
|
751
760
|
|
752
761
|
module_eval(<<'.,.,', 'ddb-parser.y', 21)
|
753
762
|
def _reduce_5(val, _values)
|
754
|
-
[
|
763
|
+
[val[0], :append, val[2]]
|
755
764
|
|
756
765
|
end
|
757
766
|
.,.,
|
758
767
|
|
759
|
-
|
768
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 25)
|
769
|
+
def _reduce_6(val, _values)
|
770
|
+
[struct(:NULL), :ruby, val[0]]
|
771
|
+
|
772
|
+
end
|
773
|
+
.,.,
|
760
774
|
|
761
|
-
|
775
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 29)
|
776
|
+
def _reduce_7(val, _values)
|
777
|
+
[struct(:NULL), :shell, val[0]]
|
778
|
+
|
779
|
+
end
|
780
|
+
.,.,
|
762
781
|
|
763
782
|
# reduce 8 omitted
|
764
783
|
|
@@ -782,632 +801,632 @@ module_eval(<<'.,.,', 'ddb-parser.y', 21)
|
|
782
801
|
|
783
802
|
# reduce 18 omitted
|
784
803
|
|
785
|
-
|
786
|
-
|
804
|
+
# reduce 19 omitted
|
805
|
+
|
806
|
+
# reduce 20 omitted
|
807
|
+
|
808
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 48)
|
809
|
+
def _reduce_21(val, _values)
|
787
810
|
struct(:SHOW_TABLES, :limit => val[2])
|
788
811
|
|
789
812
|
end
|
790
813
|
.,.,
|
791
814
|
|
792
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
793
|
-
def
|
815
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 52)
|
816
|
+
def _reduce_22(val, _values)
|
794
817
|
struct(:SHOW_TABLE_STATUS)
|
795
818
|
|
796
819
|
end
|
797
820
|
.,.,
|
798
821
|
|
799
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
800
|
-
def
|
822
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 56)
|
823
|
+
def _reduce_23(val, _values)
|
801
824
|
struct(:SHOW_REGIONS)
|
802
825
|
|
803
826
|
end
|
804
827
|
.,.,
|
805
828
|
|
806
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
807
|
-
def
|
829
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 60)
|
830
|
+
def _reduce_24(val, _values)
|
808
831
|
struct(:SHOW_CREATE_TABLE, :table => val[3])
|
809
832
|
|
810
833
|
end
|
811
834
|
.,.,
|
812
835
|
|
813
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
814
|
-
def
|
836
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 65)
|
837
|
+
def _reduce_25(val, _values)
|
815
838
|
struct(:ALTER_TABLE, :table => val[2], :capacity => val[3])
|
816
839
|
|
817
840
|
end
|
818
841
|
.,.,
|
819
842
|
|
820
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
821
|
-
def
|
843
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 70)
|
844
|
+
def _reduce_26(val, _values)
|
822
845
|
struct(:USE, :endpoint_or_region => val[1])
|
823
846
|
|
824
847
|
end
|
825
848
|
.,.,
|
826
849
|
|
827
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
828
|
-
def
|
850
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 75)
|
851
|
+
def _reduce_27(val, _values)
|
829
852
|
struct(:CREATE, val[4].merge(:table => val[2], :capacity => val[6]))
|
830
853
|
|
831
854
|
end
|
832
855
|
.,.,
|
833
856
|
|
834
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
835
|
-
def
|
857
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 79)
|
858
|
+
def _reduce_28(val, _values)
|
836
859
|
struct(:CREATE_LIKE, :table => val[2], :like => val[4], :capacity => nil)
|
837
860
|
|
838
861
|
end
|
839
862
|
.,.,
|
840
863
|
|
841
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
842
|
-
def
|
864
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 83)
|
865
|
+
def _reduce_29(val, _values)
|
843
866
|
struct(:CREATE_LIKE, :table => val[2], :like => val[4], :capacity => val[5])
|
844
867
|
|
845
868
|
end
|
846
869
|
.,.,
|
847
870
|
|
848
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
849
|
-
def
|
871
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 88)
|
872
|
+
def _reduce_30(val, _values)
|
850
873
|
{:hash => {:name => val[0], :type => val[1]}, :range => nil, :indices => nil}
|
851
874
|
|
852
875
|
end
|
853
876
|
.,.,
|
854
877
|
|
855
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
856
|
-
def
|
878
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 92)
|
879
|
+
def _reduce_31(val, _values)
|
857
880
|
{:hash => {:name => val[0], :type => val[1]}, :range => {:name => val[4], :type => val[5]}, :indices => nil}
|
858
881
|
|
859
882
|
end
|
860
883
|
.,.,
|
861
884
|
|
862
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
863
|
-
def
|
885
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 96)
|
886
|
+
def _reduce_32(val, _values)
|
864
887
|
{:hash => {:name => val[0], :type => val[1]}, :range => {:name => val[4], :type => val[5]}, :indices => val[8]}
|
865
888
|
|
866
889
|
end
|
867
890
|
.,.,
|
868
891
|
|
869
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
870
|
-
def
|
892
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 101)
|
893
|
+
def _reduce_33(val, _values)
|
871
894
|
'S'
|
872
895
|
|
873
896
|
end
|
874
897
|
.,.,
|
875
898
|
|
876
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
877
|
-
def
|
899
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 105)
|
900
|
+
def _reduce_34(val, _values)
|
878
901
|
'N'
|
879
902
|
|
880
903
|
end
|
881
904
|
.,.,
|
882
905
|
|
883
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
884
|
-
def
|
906
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 109)
|
907
|
+
def _reduce_35(val, _values)
|
885
908
|
'B'
|
886
909
|
|
887
910
|
end
|
888
911
|
.,.,
|
889
912
|
|
890
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
891
|
-
def
|
913
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 114)
|
914
|
+
def _reduce_36(val, _values)
|
892
915
|
{:read => val[2], :write => val[6]}
|
893
916
|
|
894
917
|
end
|
895
918
|
.,.,
|
896
919
|
|
897
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
898
|
-
def
|
920
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 118)
|
921
|
+
def _reduce_37(val, _values)
|
899
922
|
{:read => val[6], :write => val[2]}
|
900
923
|
|
901
924
|
end
|
902
925
|
.,.,
|
903
926
|
|
904
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
905
|
-
def
|
927
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 123)
|
928
|
+
def _reduce_38(val, _values)
|
906
929
|
[val[0]]
|
907
930
|
|
908
931
|
end
|
909
932
|
.,.,
|
910
933
|
|
911
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
912
|
-
def
|
934
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 127)
|
935
|
+
def _reduce_39(val, _values)
|
913
936
|
val[0] + [val[2]]
|
914
937
|
|
915
938
|
end
|
916
939
|
.,.,
|
917
940
|
|
918
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
919
|
-
def
|
941
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 132)
|
942
|
+
def _reduce_40(val, _values)
|
920
943
|
{:name => val[1], :key => val[3], :type => val[4], :projection => val[6]}
|
921
944
|
|
922
945
|
end
|
923
946
|
.,.,
|
924
947
|
|
925
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
926
|
-
def
|
948
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 137)
|
949
|
+
def _reduce_41(val, _values)
|
927
950
|
{:type => 'ALL'}
|
928
951
|
|
929
952
|
end
|
930
953
|
.,.,
|
931
954
|
|
932
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
933
|
-
def
|
955
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 141)
|
956
|
+
def _reduce_42(val, _values)
|
934
957
|
{:type => 'KEYS_ONLY'}
|
935
958
|
|
936
959
|
end
|
937
960
|
.,.,
|
938
961
|
|
939
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
940
|
-
def
|
962
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 145)
|
963
|
+
def _reduce_43(val, _values)
|
941
964
|
{:type => 'INCLUDE', :attrs => val[2]}
|
942
965
|
|
943
966
|
end
|
944
967
|
.,.,
|
945
968
|
|
946
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
947
|
-
def
|
969
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 150)
|
970
|
+
def _reduce_44(val, _values)
|
948
971
|
[val[0]]
|
949
972
|
|
950
973
|
end
|
951
974
|
.,.,
|
952
975
|
|
953
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
954
|
-
def
|
976
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 154)
|
977
|
+
def _reduce_45(val, _values)
|
955
978
|
val[0] + [val[2]]
|
956
979
|
|
957
980
|
end
|
958
981
|
.,.,
|
959
982
|
|
960
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
961
|
-
def
|
983
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 159)
|
984
|
+
def _reduce_46(val, _values)
|
962
985
|
struct(:DROP, :table => val[2])
|
963
986
|
|
964
987
|
end
|
965
988
|
.,.,
|
966
989
|
|
967
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
968
|
-
def
|
990
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 164)
|
991
|
+
def _reduce_47(val, _values)
|
969
992
|
struct(:DESCRIBE, :table => val[1])
|
970
993
|
|
971
994
|
end
|
972
995
|
.,.,
|
973
996
|
|
974
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
975
|
-
def
|
997
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 168)
|
998
|
+
def _reduce_48(val, _values)
|
976
999
|
struct(:DESCRIBE, :table => val[1])
|
977
1000
|
|
978
1001
|
end
|
979
1002
|
.,.,
|
980
1003
|
|
981
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
982
|
-
def
|
1004
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 173)
|
1005
|
+
def _reduce_49(val, _values)
|
983
1006
|
struct(:SELECT, :attrs => val[1], :table => val[3], :index => val[4], :conds => val[5], :order_asc => val[6], :limit => val[7], :count => false)
|
984
1007
|
|
985
1008
|
end
|
986
1009
|
.,.,
|
987
1010
|
|
988
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
989
|
-
def
|
1011
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 177)
|
1012
|
+
def _reduce_50(val, _values)
|
990
1013
|
struct(:SELECT, :attrs => [], :table => val[6], :index => val[7], :conds => val[8], :order_asc => val[9], :limit => val[10], :count => true)
|
991
1014
|
|
992
1015
|
end
|
993
1016
|
.,.,
|
994
1017
|
|
995
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
996
|
-
def
|
1018
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 182)
|
1019
|
+
def _reduce_51(val, _values)
|
997
1020
|
struct(:SCAN, :attrs => val[2], :table => val[4], :conds => val[5], :limit => val[6], :count => false, :segment => nil, :total_segments => nil)
|
998
1021
|
|
999
1022
|
end
|
1000
1023
|
.,.,
|
1001
1024
|
|
1002
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1003
|
-
def
|
1025
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 186)
|
1026
|
+
def _reduce_52(val, _values)
|
1004
1027
|
struct(:SCAN, :attrs => [], :table => val[7], :conds => val[8], :limit => val[9], :count => true, :segment => nil, :total_segments => nil)
|
1005
1028
|
|
1006
1029
|
end
|
1007
1030
|
.,.,
|
1008
1031
|
|
1009
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1010
|
-
def
|
1032
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 190)
|
1033
|
+
def _reduce_53(val, _values)
|
1011
1034
|
struct(:SCAN, :attrs => val[4], :table => val[6], :conds => val[7], :limit => val[8], :count => false, :segment => val[1], :total_segments => val[3])
|
1012
1035
|
|
1013
1036
|
end
|
1014
1037
|
.,.,
|
1015
1038
|
|
1016
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1017
|
-
def
|
1039
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 195)
|
1040
|
+
def _reduce_54(val, _values)
|
1018
1041
|
struct(:GET, :attrs => val[1], :table => val[3], :conds => val[4])
|
1019
1042
|
|
1020
1043
|
end
|
1021
1044
|
.,.,
|
1022
1045
|
|
1023
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1024
|
-
def
|
1046
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 200)
|
1047
|
+
def _reduce_55(val, _values)
|
1025
1048
|
[]
|
1026
1049
|
|
1027
1050
|
end
|
1028
1051
|
.,.,
|
1029
1052
|
|
1030
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1031
|
-
def
|
1053
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 204)
|
1054
|
+
def _reduce_56(val, _values)
|
1032
1055
|
val[0]
|
1033
1056
|
|
1034
1057
|
end
|
1035
1058
|
.,.,
|
1036
1059
|
|
1037
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1038
|
-
def
|
1060
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 209)
|
1061
|
+
def _reduce_57(val, _values)
|
1039
1062
|
[val[0]]
|
1040
1063
|
|
1041
1064
|
end
|
1042
1065
|
.,.,
|
1043
1066
|
|
1044
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1045
|
-
def
|
1067
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 213)
|
1068
|
+
def _reduce_58(val, _values)
|
1046
1069
|
val[0] + [val[2]]
|
1047
1070
|
|
1048
1071
|
end
|
1049
1072
|
.,.,
|
1050
1073
|
|
1051
|
-
# reduce
|
1074
|
+
# reduce 59 omitted
|
1052
1075
|
|
1053
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1054
|
-
def
|
1076
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 219)
|
1077
|
+
def _reduce_60(val, _values)
|
1055
1078
|
val[3]
|
1056
1079
|
|
1057
1080
|
end
|
1058
1081
|
.,.,
|
1059
1082
|
|
1060
|
-
# reduce
|
1083
|
+
# reduce 61 omitted
|
1061
1084
|
|
1062
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1063
|
-
def
|
1085
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 225)
|
1086
|
+
def _reduce_62(val, _values)
|
1064
1087
|
val[1]
|
1065
1088
|
|
1066
1089
|
end
|
1067
1090
|
.,.,
|
1068
1091
|
|
1069
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1070
|
-
def
|
1092
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 230)
|
1093
|
+
def _reduce_63(val, _values)
|
1071
1094
|
[val[0]]
|
1072
1095
|
|
1073
1096
|
end
|
1074
1097
|
.,.,
|
1075
1098
|
|
1076
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1077
|
-
def
|
1099
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 234)
|
1100
|
+
def _reduce_64(val, _values)
|
1078
1101
|
val[0] + [val[2]]
|
1079
1102
|
|
1080
1103
|
end
|
1081
1104
|
.,.,
|
1082
1105
|
|
1083
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1084
|
-
def
|
1106
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 239)
|
1107
|
+
def _reduce_65(val, _values)
|
1085
1108
|
[val[0], val[1].to_s.upcase.to_sym, [val[2]]]
|
1086
1109
|
|
1087
1110
|
end
|
1088
1111
|
.,.,
|
1089
1112
|
|
1090
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1091
|
-
def
|
1113
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 243)
|
1114
|
+
def _reduce_66(val, _values)
|
1092
1115
|
[val[0], val[1].to_s.upcase.to_sym, [val[2], val[4]]]
|
1093
1116
|
|
1094
1117
|
end
|
1095
1118
|
.,.,
|
1096
1119
|
|
1097
|
-
# reduce
|
1120
|
+
# reduce 67 omitted
|
1098
1121
|
|
1099
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1100
|
-
def
|
1122
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 250)
|
1123
|
+
def _reduce_68(val, _values)
|
1101
1124
|
:EQ
|
1102
1125
|
|
1103
1126
|
end
|
1104
1127
|
.,.,
|
1105
1128
|
|
1106
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1107
|
-
def
|
1129
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 254)
|
1130
|
+
def _reduce_69(val, _values)
|
1108
1131
|
:LE
|
1109
1132
|
|
1110
1133
|
end
|
1111
1134
|
.,.,
|
1112
1135
|
|
1113
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1114
|
-
def
|
1136
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 258)
|
1137
|
+
def _reduce_70(val, _values)
|
1115
1138
|
:LT
|
1116
1139
|
|
1117
1140
|
end
|
1118
1141
|
.,.,
|
1119
1142
|
|
1120
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1121
|
-
def
|
1143
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 262)
|
1144
|
+
def _reduce_71(val, _values)
|
1122
1145
|
:GE
|
1123
1146
|
|
1124
1147
|
end
|
1125
1148
|
.,.,
|
1126
1149
|
|
1127
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1128
|
-
def
|
1150
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 266)
|
1151
|
+
def _reduce_72(val, _values)
|
1129
1152
|
:GT
|
1130
1153
|
|
1131
1154
|
end
|
1132
1155
|
.,.,
|
1133
1156
|
|
1134
|
-
# reduce
|
1157
|
+
# reduce 73 omitted
|
1135
1158
|
|
1136
|
-
# reduce
|
1159
|
+
# reduce 74 omitted
|
1137
1160
|
|
1138
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1139
|
-
def
|
1161
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 273)
|
1162
|
+
def _reduce_75(val, _values)
|
1140
1163
|
val[1]
|
1141
1164
|
|
1142
1165
|
end
|
1143
1166
|
.,.,
|
1144
1167
|
|
1145
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1146
|
-
def
|
1168
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 278)
|
1169
|
+
def _reduce_76(val, _values)
|
1147
1170
|
[val[0]]
|
1148
1171
|
|
1149
1172
|
end
|
1150
1173
|
.,.,
|
1151
1174
|
|
1152
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1153
|
-
def
|
1175
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 282)
|
1176
|
+
def _reduce_77(val, _values)
|
1154
1177
|
val[0] + [val[2]]
|
1155
1178
|
|
1156
1179
|
end
|
1157
1180
|
.,.,
|
1158
1181
|
|
1159
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1160
|
-
def
|
1182
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 287)
|
1183
|
+
def _reduce_78(val, _values)
|
1161
1184
|
[val[0], val[1].to_s.upcase.to_sym, [val[2]]]
|
1162
1185
|
|
1163
1186
|
end
|
1164
1187
|
.,.,
|
1165
1188
|
|
1166
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1167
|
-
def
|
1189
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 291)
|
1190
|
+
def _reduce_79(val, _values)
|
1168
1191
|
[val[0], val[1].to_s.upcase.to_sym, val[2]]
|
1169
1192
|
|
1170
1193
|
end
|
1171
1194
|
.,.,
|
1172
1195
|
|
1173
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1174
|
-
def
|
1196
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 295)
|
1197
|
+
def _reduce_80(val, _values)
|
1175
1198
|
[val[0], val[1].to_s.upcase.to_sym, [val[2], val[4]]]
|
1176
1199
|
|
1177
1200
|
end
|
1178
1201
|
.,.,
|
1179
1202
|
|
1180
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1181
|
-
def
|
1203
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 299)
|
1204
|
+
def _reduce_81(val, _values)
|
1182
1205
|
[val[0], val[2].to_s.upcase.to_sym, []]
|
1183
1206
|
|
1184
1207
|
end
|
1185
1208
|
.,.,
|
1186
1209
|
|
1187
|
-
# reduce
|
1210
|
+
# reduce 82 omitted
|
1188
1211
|
|
1189
|
-
# reduce
|
1212
|
+
# reduce 83 omitted
|
1190
1213
|
|
1191
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1192
|
-
def
|
1214
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 305)
|
1215
|
+
def _reduce_84(val, _values)
|
1193
1216
|
:NE
|
1194
1217
|
|
1195
1218
|
end
|
1196
1219
|
.,.,
|
1197
1220
|
|
1198
|
-
# reduce
|
1221
|
+
# reduce 85 omitted
|
1199
1222
|
|
1200
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1201
|
-
def
|
1223
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 311)
|
1224
|
+
def _reduce_86(val, _values)
|
1202
1225
|
:NOT_CONTAINS
|
1203
1226
|
|
1204
1227
|
end
|
1205
1228
|
.,.,
|
1206
1229
|
|
1207
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1208
|
-
def
|
1230
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 315)
|
1231
|
+
def _reduce_87(val, _values)
|
1209
1232
|
:NULL
|
1210
1233
|
|
1211
1234
|
end
|
1212
1235
|
.,.,
|
1213
1236
|
|
1214
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1215
|
-
def
|
1237
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 319)
|
1238
|
+
def _reduce_88(val, _values)
|
1216
1239
|
:NOT_NULL
|
1217
1240
|
|
1218
1241
|
end
|
1219
1242
|
.,.,
|
1220
1243
|
|
1221
|
-
# reduce
|
1244
|
+
# reduce 89 omitted
|
1222
1245
|
|
1223
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1224
|
-
def
|
1246
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 325)
|
1247
|
+
def _reduce_90(val, _values)
|
1225
1248
|
true
|
1226
1249
|
|
1227
1250
|
end
|
1228
1251
|
.,.,
|
1229
1252
|
|
1230
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1231
|
-
def
|
1253
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 329)
|
1254
|
+
def _reduce_91(val, _values)
|
1232
1255
|
false
|
1233
1256
|
|
1234
1257
|
end
|
1235
1258
|
.,.,
|
1236
1259
|
|
1237
|
-
# reduce
|
1260
|
+
# reduce 92 omitted
|
1238
1261
|
|
1239
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1240
|
-
def
|
1262
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 335)
|
1263
|
+
def _reduce_93(val, _values)
|
1241
1264
|
val[1]
|
1242
1265
|
|
1243
1266
|
end
|
1244
1267
|
.,.,
|
1245
1268
|
|
1246
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1247
|
-
def
|
1269
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 340)
|
1270
|
+
def _reduce_94(val, _values)
|
1248
1271
|
struct(:UPDATE, :table => val[1], :action => val[2], :attrs => val[3], :conds => val[4])
|
1249
1272
|
|
1250
1273
|
end
|
1251
1274
|
.,.,
|
1252
1275
|
|
1253
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1254
|
-
def
|
1276
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 344)
|
1277
|
+
def _reduce_95(val, _values)
|
1255
1278
|
struct(:UPDATE_ALL, :table => val[2], :action => val[3], :attrs => val[4], :conds => val[5], :limit => val[6])
|
1256
1279
|
|
1257
1280
|
end
|
1258
1281
|
.,.,
|
1259
1282
|
|
1260
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1261
|
-
def
|
1283
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 349)
|
1284
|
+
def _reduce_96(val, _values)
|
1262
1285
|
:PUT
|
1263
1286
|
|
1264
1287
|
end
|
1265
1288
|
.,.,
|
1266
1289
|
|
1267
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1268
|
-
def
|
1290
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 353)
|
1291
|
+
def _reduce_97(val, _values)
|
1269
1292
|
:ADD
|
1270
1293
|
|
1271
1294
|
end
|
1272
1295
|
.,.,
|
1273
1296
|
|
1274
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1275
|
-
def
|
1297
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 358)
|
1298
|
+
def _reduce_98(val, _values)
|
1276
1299
|
[val[0]]
|
1277
1300
|
|
1278
1301
|
end
|
1279
1302
|
.,.,
|
1280
1303
|
|
1281
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1282
|
-
def
|
1304
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 362)
|
1305
|
+
def _reduce_99(val, _values)
|
1283
1306
|
val[0] + [val[2]]
|
1284
1307
|
|
1285
1308
|
end
|
1286
1309
|
.,.,
|
1287
1310
|
|
1288
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1289
|
-
def
|
1311
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 367)
|
1312
|
+
def _reduce_100(val, _values)
|
1290
1313
|
[val[0], val[2]]
|
1291
1314
|
|
1292
1315
|
end
|
1293
1316
|
.,.,
|
1294
1317
|
|
1295
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1296
|
-
def
|
1318
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 372)
|
1319
|
+
def _reduce_101(val, _values)
|
1297
1320
|
val[1]
|
1298
1321
|
|
1299
1322
|
end
|
1300
1323
|
.,.,
|
1301
1324
|
|
1302
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1303
|
-
def
|
1325
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 377)
|
1326
|
+
def _reduce_102(val, _values)
|
1304
1327
|
[val[0]]
|
1305
1328
|
|
1306
1329
|
end
|
1307
1330
|
.,.,
|
1308
1331
|
|
1309
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1310
|
-
def
|
1332
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 381)
|
1333
|
+
def _reduce_103(val, _values)
|
1311
1334
|
val[0] + [val[2]]
|
1312
1335
|
|
1313
1336
|
end
|
1314
1337
|
.,.,
|
1315
1338
|
|
1316
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1317
|
-
def
|
1339
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 386)
|
1340
|
+
def _reduce_104(val, _values)
|
1318
1341
|
[val[0], val[2]]
|
1319
1342
|
|
1320
1343
|
end
|
1321
1344
|
.,.,
|
1322
1345
|
|
1323
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1324
|
-
def
|
1346
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 391)
|
1347
|
+
def _reduce_105(val, _values)
|
1325
1348
|
struct(:DELETE, :table => val[2], :conds => val[3])
|
1326
1349
|
|
1327
1350
|
end
|
1328
1351
|
.,.,
|
1329
1352
|
|
1330
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1331
|
-
def
|
1353
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 395)
|
1354
|
+
def _reduce_106(val, _values)
|
1332
1355
|
struct(:DELETE_ALL, :table => val[3], :conds => val[4], :limit => val[5])
|
1333
1356
|
|
1334
1357
|
end
|
1335
1358
|
.,.,
|
1336
1359
|
|
1337
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1338
|
-
def
|
1360
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 400)
|
1361
|
+
def _reduce_107(val, _values)
|
1339
1362
|
struct(:INSERT, :table => val[2], :attrs => val[4], :values => val[7])
|
1340
1363
|
|
1341
1364
|
end
|
1342
1365
|
.,.,
|
1343
1366
|
|
1344
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1345
|
-
def
|
1367
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 404)
|
1368
|
+
def _reduce_108(val, _values)
|
1346
1369
|
struct(:INSERT_SELECT, :table => val[2], :select => val[3])
|
1347
1370
|
|
1348
1371
|
end
|
1349
1372
|
.,.,
|
1350
1373
|
|
1351
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1352
|
-
def
|
1374
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 408)
|
1375
|
+
def _reduce_109(val, _values)
|
1353
1376
|
struct(:INSERT_SCAN, :table => val[2], :select => val[3])
|
1354
1377
|
|
1355
1378
|
end
|
1356
1379
|
.,.,
|
1357
1380
|
|
1358
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1359
|
-
def
|
1381
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 413)
|
1382
|
+
def _reduce_110(val, _values)
|
1360
1383
|
[val[0]]
|
1361
1384
|
|
1362
1385
|
end
|
1363
1386
|
.,.,
|
1364
1387
|
|
1365
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1366
|
-
def
|
1388
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 417)
|
1389
|
+
def _reduce_111(val, _values)
|
1367
1390
|
val[0] + [val[2]]
|
1368
1391
|
|
1369
1392
|
end
|
1370
1393
|
.,.,
|
1371
1394
|
|
1372
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1373
|
-
def
|
1395
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 422)
|
1396
|
+
def _reduce_112(val, _values)
|
1374
1397
|
[val[1]]
|
1375
1398
|
|
1376
1399
|
end
|
1377
1400
|
.,.,
|
1378
1401
|
|
1379
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1380
|
-
def
|
1402
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 426)
|
1403
|
+
def _reduce_113(val, _values)
|
1381
1404
|
val[0] + [val[3]]
|
1382
1405
|
|
1383
1406
|
end
|
1384
1407
|
.,.,
|
1385
1408
|
|
1386
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1387
|
-
def
|
1409
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 431)
|
1410
|
+
def _reduce_114(val, _values)
|
1388
1411
|
[val[0]]
|
1389
1412
|
|
1390
1413
|
end
|
1391
1414
|
.,.,
|
1392
1415
|
|
1393
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1394
|
-
def
|
1416
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 435)
|
1417
|
+
def _reduce_115(val, _values)
|
1395
1418
|
val[0] + [val[2]]
|
1396
1419
|
|
1397
1420
|
end
|
1398
1421
|
.,.,
|
1399
1422
|
|
1400
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1401
|
-
def
|
1423
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 440)
|
1424
|
+
def _reduce_116(val, _values)
|
1402
1425
|
struct(:NEXT)
|
1403
1426
|
|
1404
1427
|
end
|
1405
1428
|
.,.,
|
1406
1429
|
|
1407
|
-
# reduce 115 omitted
|
1408
|
-
|
1409
|
-
# reduce 116 omitted
|
1410
|
-
|
1411
1430
|
# reduce 117 omitted
|
1412
1431
|
|
1413
1432
|
# reduce 118 omitted
|
@@ -1418,64 +1437,68 @@ module_eval(<<'.,.,', 'ddb-parser.y', 432)
|
|
1418
1437
|
|
1419
1438
|
# reduce 121 omitted
|
1420
1439
|
|
1421
|
-
|
1422
|
-
|
1440
|
+
# reduce 122 omitted
|
1441
|
+
|
1442
|
+
# reduce 123 omitted
|
1443
|
+
|
1444
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 454)
|
1445
|
+
def _reduce_124(val, _values)
|
1423
1446
|
val[1]
|
1424
1447
|
|
1425
1448
|
end
|
1426
1449
|
.,.,
|
1427
1450
|
|
1428
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1429
|
-
def
|
1451
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 458)
|
1452
|
+
def _reduce_125(val, _values)
|
1430
1453
|
val[1]
|
1431
1454
|
|
1432
1455
|
end
|
1433
1456
|
.,.,
|
1434
1457
|
|
1435
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1436
|
-
def
|
1458
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 462)
|
1459
|
+
def _reduce_126(val, _values)
|
1437
1460
|
val[1]
|
1438
1461
|
|
1439
1462
|
end
|
1440
1463
|
.,.,
|
1441
1464
|
|
1442
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1443
|
-
def
|
1465
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 467)
|
1466
|
+
def _reduce_127(val, _values)
|
1444
1467
|
[val[0]]
|
1445
1468
|
|
1446
1469
|
end
|
1447
1470
|
.,.,
|
1448
1471
|
|
1449
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1450
|
-
def
|
1472
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 471)
|
1473
|
+
def _reduce_128(val, _values)
|
1451
1474
|
val[0] + [val[2]]
|
1452
1475
|
|
1453
1476
|
end
|
1454
1477
|
.,.,
|
1455
1478
|
|
1456
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1457
|
-
def
|
1479
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 476)
|
1480
|
+
def _reduce_129(val, _values)
|
1458
1481
|
[val[0]]
|
1459
1482
|
|
1460
1483
|
end
|
1461
1484
|
.,.,
|
1462
1485
|
|
1463
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1464
|
-
def
|
1486
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 480)
|
1487
|
+
def _reduce_130(val, _values)
|
1465
1488
|
val[0] + [val[2]]
|
1466
1489
|
|
1467
1490
|
end
|
1468
1491
|
.,.,
|
1469
1492
|
|
1470
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1471
|
-
def
|
1493
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 485)
|
1494
|
+
def _reduce_131(val, _values)
|
1472
1495
|
[val[0]]
|
1473
1496
|
|
1474
1497
|
end
|
1475
1498
|
.,.,
|
1476
1499
|
|
1477
|
-
module_eval(<<'.,.,', 'ddb-parser.y',
|
1478
|
-
def
|
1500
|
+
module_eval(<<'.,.,', 'ddb-parser.y', 489)
|
1501
|
+
def _reduce_132(val, _values)
|
1479
1502
|
val[0] + [val[2]]
|
1480
1503
|
|
1481
1504
|
end
|