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