-
Notifications
You must be signed in to change notification settings - Fork 1
/
y.output
578 lines (436 loc) · 10.1 KB
/
y.output
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
state 0
$accept: .expr_list $end
TK_NOT shift 5
TK_INT_LITERAL shift 7
TK_DOUBLE_LITERAL shift 8
TK_STRING_LITERAL shift 9
TK_MD5MOD shift 11
TK_STRCMP shift 12
TK_IDENTITY_LITERAL shift 10
'(' shift 6
. error
function_name goto 4
expr goto 2
literal_value goto 3
expr_list goto 1
state 1
$accept: expr_list.$end
expr_list: expr_list.',' expr
$end accept
',' shift 13
. error
state 2
expr_list: expr. (1)
expr: expr.cmp_op expr
expr: expr.TK_IN '(' expr_list ')'
expr: expr.TK_NOT TK_IN '(' expr_list ')'
expr: expr.TK_BETWEEN expr TK_AND_KEYWORD expr
expr: expr.TK_AND_LOGIC expr
expr: expr.TK_OR_LOGIC expr
TK_AND_LOGIC shift 18
TK_OR_LOGIC shift 19
TK_BETWEEN shift 17
TK_EQ shift 20
TK_NE shift 21
TK_GT shift 22
TK_LT shift 23
TK_GE shift 24
TK_LE shift 25
TK_IN shift 15
TK_NOT shift 16
. reduce 1 (src line 50)
cmp_op goto 14
state 3
expr: literal_value. (3)
. reduce 3 (src line 55)
state 4
expr: function_name.'(' ')'
expr: function_name.'(' expr_list ')'
'(' shift 26
. error
state 5
expr: TK_NOT.expr
TK_NOT shift 5
TK_INT_LITERAL shift 7
TK_DOUBLE_LITERAL shift 8
TK_STRING_LITERAL shift 9
TK_MD5MOD shift 11
TK_STRCMP shift 12
TK_IDENTITY_LITERAL shift 10
'(' shift 6
. error
function_name goto 4
expr goto 27
literal_value goto 3
state 6
expr: '('.expr ')'
TK_NOT shift 5
TK_INT_LITERAL shift 7
TK_DOUBLE_LITERAL shift 8
TK_STRING_LITERAL shift 9
TK_MD5MOD shift 11
TK_STRCMP shift 12
TK_IDENTITY_LITERAL shift 10
'(' shift 6
. error
function_name goto 4
expr goto 28
literal_value goto 3
state 7
literal_value: TK_INT_LITERAL. (20)
. reduce 20 (src line 78)
state 8
literal_value: TK_DOUBLE_LITERAL. (21)
. reduce 21 (src line 80)
state 9
literal_value: TK_STRING_LITERAL. (22)
. reduce 22 (src line 81)
state 10
literal_value: TK_IDENTITY_LITERAL. (23)
. reduce 23 (src line 82)
state 11
function_name: TK_MD5MOD. (24)
. reduce 24 (src line 85)
state 12
function_name: TK_STRCMP. (25)
. reduce 25 (src line 87)
state 13
expr_list: expr_list ','.expr
TK_NOT shift 5
TK_INT_LITERAL shift 7
TK_DOUBLE_LITERAL shift 8
TK_STRING_LITERAL shift 9
TK_MD5MOD shift 11
TK_STRCMP shift 12
TK_IDENTITY_LITERAL shift 10
'(' shift 6
. error
function_name goto 4
expr goto 29
literal_value goto 3
state 14
expr: expr cmp_op.expr
TK_NOT shift 5
TK_INT_LITERAL shift 7
TK_DOUBLE_LITERAL shift 8
TK_STRING_LITERAL shift 9
TK_MD5MOD shift 11
TK_STRCMP shift 12
TK_IDENTITY_LITERAL shift 10
'(' shift 6
. error
function_name goto 4
expr goto 30
literal_value goto 3
state 15
expr: expr TK_IN.'(' expr_list ')'
'(' shift 31
. error
state 16
expr: expr TK_NOT.TK_IN '(' expr_list ')'
TK_IN shift 32
. error
state 17
expr: expr TK_BETWEEN.expr TK_AND_KEYWORD expr
TK_NOT shift 5
TK_INT_LITERAL shift 7
TK_DOUBLE_LITERAL shift 8
TK_STRING_LITERAL shift 9
TK_MD5MOD shift 11
TK_STRCMP shift 12
TK_IDENTITY_LITERAL shift 10
'(' shift 6
. error
function_name goto 4
expr goto 33
literal_value goto 3
state 18
expr: expr TK_AND_LOGIC.expr
TK_NOT shift 5
TK_INT_LITERAL shift 7
TK_DOUBLE_LITERAL shift 8
TK_STRING_LITERAL shift 9
TK_MD5MOD shift 11
TK_STRCMP shift 12
TK_IDENTITY_LITERAL shift 10
'(' shift 6
. error
function_name goto 4
expr goto 34
literal_value goto 3
state 19
expr: expr TK_OR_LOGIC.expr
TK_NOT shift 5
TK_INT_LITERAL shift 7
TK_DOUBLE_LITERAL shift 8
TK_STRING_LITERAL shift 9
TK_MD5MOD shift 11
TK_STRCMP shift 12
TK_IDENTITY_LITERAL shift 10
'(' shift 6
. error
function_name goto 4
expr goto 35
literal_value goto 3
state 20
cmp_op: TK_EQ. (14)
. reduce 14 (src line 69)
state 21
cmp_op: TK_NE. (15)
. reduce 15 (src line 71)
state 22
cmp_op: TK_GT. (16)
. reduce 16 (src line 72)
state 23
cmp_op: TK_LT. (17)
. reduce 17 (src line 73)
state 24
cmp_op: TK_GE. (18)
. reduce 18 (src line 74)
state 25
cmp_op: TK_LE. (19)
. reduce 19 (src line 75)
state 26
expr: function_name '('.')'
expr: function_name '('.expr_list ')'
TK_NOT shift 5
TK_INT_LITERAL shift 7
TK_DOUBLE_LITERAL shift 8
TK_STRING_LITERAL shift 9
TK_MD5MOD shift 11
TK_STRCMP shift 12
TK_IDENTITY_LITERAL shift 10
'(' shift 6
')' shift 36
. error
function_name goto 4
expr goto 2
literal_value goto 3
expr_list goto 37
state 27
expr: expr.cmp_op expr
expr: expr.TK_IN '(' expr_list ')'
expr: expr.TK_NOT TK_IN '(' expr_list ')'
expr: expr.TK_BETWEEN expr TK_AND_KEYWORD expr
expr: expr.TK_AND_LOGIC expr
expr: expr.TK_OR_LOGIC expr
expr: TK_NOT expr. (12)
. reduce 12 (src line 65)
cmp_op goto 14
state 28
expr: expr.cmp_op expr
expr: expr.TK_IN '(' expr_list ')'
expr: expr.TK_NOT TK_IN '(' expr_list ')'
expr: expr.TK_BETWEEN expr TK_AND_KEYWORD expr
expr: expr.TK_AND_LOGIC expr
expr: expr.TK_OR_LOGIC expr
expr: '(' expr.')'
TK_AND_LOGIC shift 18
TK_OR_LOGIC shift 19
TK_BETWEEN shift 17
TK_EQ shift 20
TK_NE shift 21
TK_GT shift 22
TK_LT shift 23
TK_GE shift 24
TK_LE shift 25
TK_IN shift 15
TK_NOT shift 16
')' shift 38
. error
cmp_op goto 14
state 29
expr_list: expr_list ',' expr. (2)
expr: expr.cmp_op expr
expr: expr.TK_IN '(' expr_list ')'
expr: expr.TK_NOT TK_IN '(' expr_list ')'
expr: expr.TK_BETWEEN expr TK_AND_KEYWORD expr
expr: expr.TK_AND_LOGIC expr
expr: expr.TK_OR_LOGIC expr
TK_AND_LOGIC shift 18
TK_OR_LOGIC shift 19
TK_BETWEEN shift 17
TK_EQ shift 20
TK_NE shift 21
TK_GT shift 22
TK_LT shift 23
TK_GE shift 24
TK_LE shift 25
TK_IN shift 15
TK_NOT shift 16
. reduce 2 (src line 52)
cmp_op goto 14
state 30
expr: expr.cmp_op expr
expr: expr cmp_op expr. (4)
expr: expr.TK_IN '(' expr_list ')'
expr: expr.TK_NOT TK_IN '(' expr_list ')'
expr: expr.TK_BETWEEN expr TK_AND_KEYWORD expr
expr: expr.TK_AND_LOGIC expr
expr: expr.TK_OR_LOGIC expr
. reduce 4 (src line 57)
cmp_op goto 14
state 31
expr: expr TK_IN '('.expr_list ')'
TK_NOT shift 5
TK_INT_LITERAL shift 7
TK_DOUBLE_LITERAL shift 8
TK_STRING_LITERAL shift 9
TK_MD5MOD shift 11
TK_STRCMP shift 12
TK_IDENTITY_LITERAL shift 10
'(' shift 6
. error
function_name goto 4
expr goto 2
literal_value goto 3
expr_list goto 39
state 32
expr: expr TK_NOT TK_IN.'(' expr_list ')'
'(' shift 40
. error
state 33
expr: expr.cmp_op expr
expr: expr.TK_IN '(' expr_list ')'
expr: expr.TK_NOT TK_IN '(' expr_list ')'
expr: expr.TK_BETWEEN expr TK_AND_KEYWORD expr
expr: expr TK_BETWEEN expr.TK_AND_KEYWORD expr
expr: expr.TK_AND_LOGIC expr
expr: expr.TK_OR_LOGIC expr
TK_AND_LOGIC shift 18
TK_OR_LOGIC shift 19
TK_BETWEEN shift 17
TK_EQ shift 20
TK_NE shift 21
TK_GT shift 22
TK_LT shift 23
TK_GE shift 24
TK_LE shift 25
TK_IN shift 15
TK_NOT shift 16
TK_AND_KEYWORD shift 41
. error
cmp_op goto 14
state 34
expr: expr.cmp_op expr
expr: expr.TK_IN '(' expr_list ')'
expr: expr.TK_NOT TK_IN '(' expr_list ')'
expr: expr.TK_BETWEEN expr TK_AND_KEYWORD expr
expr: expr.TK_AND_LOGIC expr
expr: expr TK_AND_LOGIC expr. (10)
expr: expr.TK_OR_LOGIC expr
TK_OR_LOGIC shift 19
TK_BETWEEN shift 17
TK_EQ shift 20
TK_NE shift 21
TK_GT shift 22
TK_LT shift 23
TK_GE shift 24
TK_LE shift 25
TK_IN shift 15
TK_NOT shift 16
. reduce 10 (src line 63)
cmp_op goto 14
state 35
expr: expr.cmp_op expr
expr: expr.TK_IN '(' expr_list ')'
expr: expr.TK_NOT TK_IN '(' expr_list ')'
expr: expr.TK_BETWEEN expr TK_AND_KEYWORD expr
expr: expr.TK_AND_LOGIC expr
expr: expr.TK_OR_LOGIC expr
expr: expr TK_OR_LOGIC expr. (11)
TK_BETWEEN shift 17
TK_EQ shift 20
TK_NE shift 21
TK_GT shift 22
TK_LT shift 23
TK_GE shift 24
TK_LE shift 25
TK_IN shift 15
TK_NOT shift 16
. reduce 11 (src line 64)
cmp_op goto 14
state 36
expr: function_name '(' ')'. (7)
. reduce 7 (src line 60)
state 37
expr_list: expr_list.',' expr
expr: function_name '(' expr_list.')'
',' shift 13
')' shift 42
. error
state 38
expr: '(' expr ')'. (13)
. reduce 13 (src line 66)
state 39
expr_list: expr_list.',' expr
expr: expr TK_IN '(' expr_list.')'
',' shift 13
')' shift 43
. error
state 40
expr: expr TK_NOT TK_IN '('.expr_list ')'
TK_NOT shift 5
TK_INT_LITERAL shift 7
TK_DOUBLE_LITERAL shift 8
TK_STRING_LITERAL shift 9
TK_MD5MOD shift 11
TK_STRCMP shift 12
TK_IDENTITY_LITERAL shift 10
'(' shift 6
. error
function_name goto 4
expr goto 2
literal_value goto 3
expr_list goto 44
state 41
expr: expr TK_BETWEEN expr TK_AND_KEYWORD.expr
TK_NOT shift 5
TK_INT_LITERAL shift 7
TK_DOUBLE_LITERAL shift 8
TK_STRING_LITERAL shift 9
TK_MD5MOD shift 11
TK_STRCMP shift 12
TK_IDENTITY_LITERAL shift 10
'(' shift 6
. error
function_name goto 4
expr goto 45
literal_value goto 3
state 42
expr: function_name '(' expr_list ')'. (8)
. reduce 8 (src line 61)
state 43
expr: expr TK_IN '(' expr_list ')'. (5)
. reduce 5 (src line 58)
state 44
expr_list: expr_list.',' expr
expr: expr TK_NOT TK_IN '(' expr_list.')'
',' shift 13
')' shift 46
. error
state 45
expr: expr.cmp_op expr
expr: expr.TK_IN '(' expr_list ')'
expr: expr.TK_NOT TK_IN '(' expr_list ')'
expr: expr.TK_BETWEEN expr TK_AND_KEYWORD expr
expr: expr TK_BETWEEN expr TK_AND_KEYWORD expr. (9)
expr: expr.TK_AND_LOGIC expr
expr: expr.TK_OR_LOGIC expr
. reduce 9 (src line 62)
cmp_op goto 14
state 46
expr: expr TK_NOT TK_IN '(' expr_list ')'. (6)
. reduce 6 (src line 59)
26 terminals, 6 nonterminals
26 grammar rules, 47/8000 states
0 shift/reduce, 0 reduce/reduce conflicts reported
55 working sets used
memory: parser 40/120000
37 extra closures
173 shift entries, 1 exceptions
16 goto entries
33 entries saved by goto default
Optimizer space used: output 112/120000
112 table entries, 14 zero
maximum spread: 26, maximum offset: 41