-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparser.out
More file actions
5576 lines (4688 loc) · 235 KB
/
parser.out
File metadata and controls
5576 lines (4688 loc) · 235 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Created by PLY (http://www.dabeaz.com/ply)
Unused terminals:
TK_COLUMN
TK_IGNORE
Grammar
Rule 0 S' -> input
Rule 1 input -> cmdlist
Rule 2 cmdlist -> ecmd
Rule 3 ecmd -> cmd
Rule 4 cmd -> create_table create_table_args
Rule 5 create_table -> TK_CREATE TK_TABLE id
Rule 6 create_table_args -> TK_LP columnlist TK_RP
Rule 7 columnlist -> columnlist TK_COMMA column
Rule 8 columnlist -> column
Rule 9 column -> columnid type
Rule 10 columnid -> id
Rule 11 type -> typename
Rule 12 typename -> id
Rule 13 id -> TK_STRING
Rule 14 cmd -> TK_CREATE_KOR id TK_LP columnlist TK_RP TK_TABLE_KOR
Rule 15 cmd -> TK_INSERT TK_INTO id inscollist_opt TK_VALUES TK_LP itemlist TK_RP
Rule 16 cmd -> TK_INSERT TK_INTO id inscollist_opt select
Rule 17 inscollist_opt -> <empty>
Rule 18 inscollist_opt -> TK_LP inscollist TK_RP
Rule 19 inscollist -> inscollist TK_COMMA id
Rule 20 inscollist -> id
Rule 21 itemlist -> itemlist TK_COMMA item
Rule 22 itemlist -> item
Rule 23 item -> TK_INTEGER
Rule 24 item -> TK_PLUS TK_INTEGER
Rule 25 item -> TK_MINUS TK_INTEGER
Rule 26 item -> TK_STRING
Rule 27 item -> TK_NULL
Rule 28 cmd -> TK_INSERT_KOR id inscollist_opt TK_TABLE_INTO_KOR TK_LP itemlist TK_RP TK_COL_LIST_POST_KR
Rule 29 cmd -> TK_UPDATE id TK_SET setlist where_opt
Rule 30 setlist -> setlist TK_COMMA id TK_EQ expr
Rule 31 setlist -> id TK_EQ expr
Rule 32 cmd -> TK_UPDATE_KOR id TK_FROM_KR where_opt setlist TK_EURO
Rule 33 cmd -> select
Rule 34 select -> oneselect
Rule 35 oneselect -> TK_SELECT selcollist from where_opt groupby_opt having_opt orderby_opt
Rule 36 selcollist -> TK_STAR
Rule 37 selcollist -> sclp expr
Rule 38 sclp -> selcollist TK_COMMA
Rule 39 sclp -> <empty>
Rule 40 from -> TK_FROM seltablist
Rule 41 stl_prefix -> <empty>
Rule 42 stl_prefix -> seltablist TK_COMMA
Rule 43 seltablist -> stl_prefix id
Rule 44 seltablist -> stl_prefix id TK_AS id
Rule 45 where_opt -> <empty>
Rule 46 where_opt -> TK_WHERE expr
Rule 47 groupby_opt -> <empty>
Rule 48 groupby_opt -> TK_GROUP TK_BY exprlist
Rule 49 having_opt -> <empty>
Rule 50 having_opt -> TK_HAVING expr
Rule 51 orderby_opt -> <empty>
Rule 52 orderby_opt -> TK_ORDER TK_BY sortlist
Rule 53 sortlist -> sortlist TK_COMMA sortitem sortorder
Rule 54 sortlist -> sortitem sortorder
Rule 55 sortitem -> expr
Rule 56 sortorder -> TK_ASC
Rule 57 sortorder -> TK_DESC
Rule 58 sortorder -> <empty>
Rule 59 exprlist -> exprlist TK_COMMA expritem
Rule 60 exprlist -> expritem
Rule 61 expritem -> expr
Rule 62 expritem -> <empty>
Rule 63 expr -> expr TK_AND expr
Rule 64 expr -> expr TK_OR expr
Rule 65 expr -> expr TK_LT expr
Rule 66 expr -> expr TK_GT expr
Rule 67 expr -> expr TK_LE expr
Rule 68 expr -> expr TK_GE expr
Rule 69 expr -> expr TK_NE expr
Rule 70 expr -> expr TK_EQ expr
Rule 71 expr -> expr TK_LIKE expr
Rule 72 expr -> expr TK_ISNULL
Rule 73 expr -> expr TK_NOTNULL
Rule 74 expr -> expr TK_BETWEEN expr TK_AND expr
Rule 75 expr -> expr TK_NOT TK_BETWEEN expr TK_AND expr
Rule 76 expr -> expr TK_IN TK_LP exprlist TK_RP
Rule 77 expr -> expr TK_NOT TK_IN TK_LP exprlist TK_RP
Rule 78 expr -> TK_LP expr TK_RP
Rule 79 expr -> TK_INTEGER
Rule 80 expr -> TK_FLOAT
Rule 81 expr -> TK_STRING
Rule 82 expr -> TK_ID
Rule 83 id -> TK_ID
Rule 84 expr -> TK_NOT expr
Rule 85 expr -> expr TK_NOT TK_LIKE expr
Rule 86 expr -> TK_ID TK_LP exprlist TK_RP
Rule 87 expr -> TK_ID TK_LP TK_STAR TK_RP
Rule 88 expr -> id TK_DOT id
Rule 89 oneselect -> TK_SELECT_KR from where_opt groupby_opt having_opt selcollist TK_COL_LIST_POST_KR orderby_opt
Rule 90 from -> seltablist TK_FROM_KR
Rule 91 where_opt -> TK_WHERE_PRE_KR expr TK_WHERE_POST_KR
Rule 92 groupby_opt -> TK_GROUP_BY_PRE_KR exprlist TK_GROUP_BY_POST_KR
Rule 93 having_opt -> TK_HAVING_PRE_KR expr TK_HAVING_POST_KR
Rule 94 orderby_opt -> sortlist TK_ORDER_BY_KR
Rule 95 sortorder -> TK_ASC_KR
Rule 96 sortorder -> TK_DESC_KR
Rule 97 cmd -> TK_DROP TK_TABLE id
Rule 98 cmd -> TK_DROP_KOR id TK_TABLE_KOR
Rule 99 cmd -> TK_DELETE TK_FROM id where_opt
Rule 100 cmd -> TK_DELETE_KOR id TK_FROM_KR where_opt
Terminals, with rules where they appear
TK_AND : 63 74 75
TK_AS : 44
TK_ASC : 56
TK_ASC_KR : 95
TK_BETWEEN : 74 75
TK_BY : 48 52
TK_COLUMN :
TK_COL_LIST_POST_KR : 28 89
TK_COMMA : 7 19 21 30 38 42 53 59
TK_CREATE : 5
TK_CREATE_KOR : 14
TK_DELETE : 99
TK_DELETE_KOR : 100
TK_DESC : 57
TK_DESC_KR : 96
TK_DOT : 88
TK_DROP : 97
TK_DROP_KOR : 98
TK_EQ : 30 31 70
TK_EURO : 32
TK_FLOAT : 80
TK_FROM : 40 99
TK_FROM_KR : 32 90 100
TK_GE : 68
TK_GROUP : 48
TK_GROUP_BY_POST_KR : 92
TK_GROUP_BY_PRE_KR : 92
TK_GT : 66
TK_HAVING : 50
TK_HAVING_POST_KR : 93
TK_HAVING_PRE_KR : 93
TK_ID : 82 83 86 87
TK_IGNORE :
TK_IN : 76 77
TK_INSERT : 15 16
TK_INSERT_KOR : 28
TK_INTEGER : 23 24 25 79
TK_INTO : 15 16
TK_ISNULL : 72
TK_LE : 67
TK_LIKE : 71 85
TK_LP : 6 14 15 18 28 76 77 78 86 87
TK_LT : 65
TK_MINUS : 25
TK_NE : 69
TK_NOT : 75 77 84 85
TK_NOTNULL : 73
TK_NULL : 27
TK_OR : 64
TK_ORDER : 52
TK_ORDER_BY_KR : 94
TK_PLUS : 24
TK_RP : 6 14 15 18 28 76 77 78 86 87
TK_SELECT : 35
TK_SELECT_KR : 89
TK_SET : 29
TK_STAR : 36 87
TK_STRING : 13 26 81
TK_TABLE : 5 97
TK_TABLE_INTO_KOR : 28
TK_TABLE_KOR : 14 98
TK_UPDATE : 29
TK_UPDATE_KOR : 32
TK_VALUES : 15
TK_WHERE : 46
TK_WHERE_POST_KR : 91
TK_WHERE_PRE_KR : 91
error :
Nonterminals, with rules where they appear
cmd : 3
cmdlist : 1
column : 7 8
columnid : 9
columnlist : 6 7 14
create_table : 4
create_table_args : 4
ecmd : 2
expr : 30 31 37 46 50 55 61 63 63 64 64 65 65 66 66 67 67 68 68 69 69 70 70 71 71 72 73 74 74 74 75 75 75 76 77 78 84 85 85 91 93
expritem : 59 60
exprlist : 48 59 76 77 86 92
from : 35 89
groupby_opt : 35 89
having_opt : 35 89
id : 5 10 12 14 15 16 19 20 28 29 30 31 32 43 44 44 88 88 97 98 99 100
input : 0
inscollist : 18 19
inscollist_opt : 15 16 28
item : 21 22
itemlist : 15 21 28
oneselect : 34
orderby_opt : 35 89
sclp : 37
selcollist : 35 38 89
select : 16 33
seltablist : 40 42 90
setlist : 29 30 32
sortitem : 53 54
sortlist : 52 53 94
sortorder : 53 54
stl_prefix : 43 44
type : 9
typename : 11
where_opt : 29 32 35 89 99 100
state 0
(0) S' -> . input
(1) input -> . cmdlist
(2) cmdlist -> . ecmd
(3) ecmd -> . cmd
(4) cmd -> . create_table create_table_args
(14) cmd -> . TK_CREATE_KOR id TK_LP columnlist TK_RP TK_TABLE_KOR
(15) cmd -> . TK_INSERT TK_INTO id inscollist_opt TK_VALUES TK_LP itemlist TK_RP
(16) cmd -> . TK_INSERT TK_INTO id inscollist_opt select
(28) cmd -> . TK_INSERT_KOR id inscollist_opt TK_TABLE_INTO_KOR TK_LP itemlist TK_RP TK_COL_LIST_POST_KR
(29) cmd -> . TK_UPDATE id TK_SET setlist where_opt
(32) cmd -> . TK_UPDATE_KOR id TK_FROM_KR where_opt setlist TK_EURO
(33) cmd -> . select
(97) cmd -> . TK_DROP TK_TABLE id
(98) cmd -> . TK_DROP_KOR id TK_TABLE_KOR
(99) cmd -> . TK_DELETE TK_FROM id where_opt
(100) cmd -> . TK_DELETE_KOR id TK_FROM_KR where_opt
(5) create_table -> . TK_CREATE TK_TABLE id
(34) select -> . oneselect
(35) oneselect -> . TK_SELECT selcollist from where_opt groupby_opt having_opt orderby_opt
(89) oneselect -> . TK_SELECT_KR from where_opt groupby_opt having_opt selcollist TK_COL_LIST_POST_KR orderby_opt
TK_CREATE_KOR shift and go to state 6
TK_INSERT shift and go to state 7
TK_INSERT_KOR shift and go to state 9
TK_UPDATE shift and go to state 10
TK_UPDATE_KOR shift and go to state 11
TK_DROP shift and go to state 12
TK_DROP_KOR shift and go to state 13
TK_DELETE shift and go to state 14
TK_DELETE_KOR shift and go to state 15
TK_CREATE shift and go to state 16
TK_SELECT shift and go to state 18
TK_SELECT_KR shift and go to state 19
input shift and go to state 1
cmdlist shift and go to state 2
ecmd shift and go to state 3
cmd shift and go to state 4
create_table shift and go to state 5
select shift and go to state 8
oneselect shift and go to state 17
state 1
(0) S' -> input .
state 2
(1) input -> cmdlist .
$end reduce using rule 1 (input -> cmdlist .)
state 3
(2) cmdlist -> ecmd .
$end reduce using rule 2 (cmdlist -> ecmd .)
state 4
(3) ecmd -> cmd .
$end reduce using rule 3 (ecmd -> cmd .)
state 5
(4) cmd -> create_table . create_table_args
(6) create_table_args -> . TK_LP columnlist TK_RP
TK_LP shift and go to state 21
create_table_args shift and go to state 20
state 6
(14) cmd -> TK_CREATE_KOR . id TK_LP columnlist TK_RP TK_TABLE_KOR
(13) id -> . TK_STRING
(83) id -> . TK_ID
TK_STRING shift and go to state 23
TK_ID shift and go to state 24
id shift and go to state 22
state 7
(15) cmd -> TK_INSERT . TK_INTO id inscollist_opt TK_VALUES TK_LP itemlist TK_RP
(16) cmd -> TK_INSERT . TK_INTO id inscollist_opt select
TK_INTO shift and go to state 25
state 8
(33) cmd -> select .
$end reduce using rule 33 (cmd -> select .)
state 9
(28) cmd -> TK_INSERT_KOR . id inscollist_opt TK_TABLE_INTO_KOR TK_LP itemlist TK_RP TK_COL_LIST_POST_KR
(13) id -> . TK_STRING
(83) id -> . TK_ID
TK_STRING shift and go to state 23
TK_ID shift and go to state 24
id shift and go to state 26
state 10
(29) cmd -> TK_UPDATE . id TK_SET setlist where_opt
(13) id -> . TK_STRING
(83) id -> . TK_ID
TK_STRING shift and go to state 23
TK_ID shift and go to state 24
id shift and go to state 27
state 11
(32) cmd -> TK_UPDATE_KOR . id TK_FROM_KR where_opt setlist TK_EURO
(13) id -> . TK_STRING
(83) id -> . TK_ID
TK_STRING shift and go to state 23
TK_ID shift and go to state 24
id shift and go to state 28
state 12
(97) cmd -> TK_DROP . TK_TABLE id
TK_TABLE shift and go to state 29
state 13
(98) cmd -> TK_DROP_KOR . id TK_TABLE_KOR
(13) id -> . TK_STRING
(83) id -> . TK_ID
TK_STRING shift and go to state 23
TK_ID shift and go to state 24
id shift and go to state 30
state 14
(99) cmd -> TK_DELETE . TK_FROM id where_opt
TK_FROM shift and go to state 31
state 15
(100) cmd -> TK_DELETE_KOR . id TK_FROM_KR where_opt
(13) id -> . TK_STRING
(83) id -> . TK_ID
TK_STRING shift and go to state 23
TK_ID shift and go to state 24
id shift and go to state 32
state 16
(5) create_table -> TK_CREATE . TK_TABLE id
TK_TABLE shift and go to state 33
state 17
(34) select -> oneselect .
$end reduce using rule 34 (select -> oneselect .)
state 18
(35) oneselect -> TK_SELECT . selcollist from where_opt groupby_opt having_opt orderby_opt
(36) selcollist -> . TK_STAR
(37) selcollist -> . sclp expr
(38) sclp -> . selcollist TK_COMMA
(39) sclp -> .
TK_STAR shift and go to state 35
TK_LP reduce using rule 39 (sclp -> .)
TK_INTEGER reduce using rule 39 (sclp -> .)
TK_FLOAT reduce using rule 39 (sclp -> .)
TK_STRING reduce using rule 39 (sclp -> .)
TK_ID reduce using rule 39 (sclp -> .)
TK_NOT reduce using rule 39 (sclp -> .)
selcollist shift and go to state 34
sclp shift and go to state 36
state 19
(89) oneselect -> TK_SELECT_KR . from where_opt groupby_opt having_opt selcollist TK_COL_LIST_POST_KR orderby_opt
(40) from -> . TK_FROM seltablist
(90) from -> . seltablist TK_FROM_KR
(43) seltablist -> . stl_prefix id
(44) seltablist -> . stl_prefix id TK_AS id
(41) stl_prefix -> .
(42) stl_prefix -> . seltablist TK_COMMA
TK_FROM shift and go to state 38
TK_STRING reduce using rule 41 (stl_prefix -> .)
TK_ID reduce using rule 41 (stl_prefix -> .)
from shift and go to state 37
seltablist shift and go to state 39
stl_prefix shift and go to state 40
state 20
(4) cmd -> create_table create_table_args .
$end reduce using rule 4 (cmd -> create_table create_table_args .)
state 21
(6) create_table_args -> TK_LP . columnlist TK_RP
(7) columnlist -> . columnlist TK_COMMA column
(8) columnlist -> . column
(9) column -> . columnid type
(10) columnid -> . id
(13) id -> . TK_STRING
(83) id -> . TK_ID
TK_STRING shift and go to state 23
TK_ID shift and go to state 24
columnlist shift and go to state 41
column shift and go to state 42
columnid shift and go to state 43
id shift and go to state 44
state 22
(14) cmd -> TK_CREATE_KOR id . TK_LP columnlist TK_RP TK_TABLE_KOR
TK_LP shift and go to state 45
state 23
(13) id -> TK_STRING .
TK_LP reduce using rule 13 (id -> TK_STRING .)
TK_TABLE_INTO_KOR reduce using rule 13 (id -> TK_STRING .)
TK_SET reduce using rule 13 (id -> TK_STRING .)
TK_FROM_KR reduce using rule 13 (id -> TK_STRING .)
TK_TABLE_KOR reduce using rule 13 (id -> TK_STRING .)
TK_STRING reduce using rule 13 (id -> TK_STRING .)
TK_ID reduce using rule 13 (id -> TK_STRING .)
TK_VALUES reduce using rule 13 (id -> TK_STRING .)
TK_SELECT reduce using rule 13 (id -> TK_STRING .)
TK_SELECT_KR reduce using rule 13 (id -> TK_STRING .)
$end reduce using rule 13 (id -> TK_STRING .)
TK_WHERE reduce using rule 13 (id -> TK_STRING .)
TK_WHERE_PRE_KR reduce using rule 13 (id -> TK_STRING .)
TK_AS reduce using rule 13 (id -> TK_STRING .)
TK_COMMA reduce using rule 13 (id -> TK_STRING .)
TK_GROUP reduce using rule 13 (id -> TK_STRING .)
TK_GROUP_BY_PRE_KR reduce using rule 13 (id -> TK_STRING .)
TK_HAVING reduce using rule 13 (id -> TK_STRING .)
TK_HAVING_PRE_KR reduce using rule 13 (id -> TK_STRING .)
TK_STAR reduce using rule 13 (id -> TK_STRING .)
TK_INTEGER reduce using rule 13 (id -> TK_STRING .)
TK_FLOAT reduce using rule 13 (id -> TK_STRING .)
TK_NOT reduce using rule 13 (id -> TK_STRING .)
TK_ORDER reduce using rule 13 (id -> TK_STRING .)
TK_RP reduce using rule 13 (id -> TK_STRING .)
TK_EQ reduce using rule 13 (id -> TK_STRING .)
TK_AND reduce using rule 13 (id -> TK_STRING .)
TK_OR reduce using rule 13 (id -> TK_STRING .)
TK_LT reduce using rule 13 (id -> TK_STRING .)
TK_GT reduce using rule 13 (id -> TK_STRING .)
TK_LE reduce using rule 13 (id -> TK_STRING .)
TK_GE reduce using rule 13 (id -> TK_STRING .)
TK_NE reduce using rule 13 (id -> TK_STRING .)
TK_LIKE reduce using rule 13 (id -> TK_STRING .)
TK_ISNULL reduce using rule 13 (id -> TK_STRING .)
TK_NOTNULL reduce using rule 13 (id -> TK_STRING .)
TK_BETWEEN reduce using rule 13 (id -> TK_STRING .)
TK_IN reduce using rule 13 (id -> TK_STRING .)
TK_FROM reduce using rule 13 (id -> TK_STRING .)
TK_COL_LIST_POST_KR reduce using rule 13 (id -> TK_STRING .)
TK_WHERE_POST_KR reduce using rule 13 (id -> TK_STRING .)
TK_GROUP_BY_POST_KR reduce using rule 13 (id -> TK_STRING .)
TK_EURO reduce using rule 13 (id -> TK_STRING .)
TK_HAVING_POST_KR reduce using rule 13 (id -> TK_STRING .)
TK_ASC reduce using rule 13 (id -> TK_STRING .)
TK_DESC reduce using rule 13 (id -> TK_STRING .)
TK_ASC_KR reduce using rule 13 (id -> TK_STRING .)
TK_DESC_KR reduce using rule 13 (id -> TK_STRING .)
TK_ORDER_BY_KR reduce using rule 13 (id -> TK_STRING .)
state 24
(83) id -> TK_ID .
TK_LP reduce using rule 83 (id -> TK_ID .)
TK_TABLE_INTO_KOR reduce using rule 83 (id -> TK_ID .)
TK_SET reduce using rule 83 (id -> TK_ID .)
TK_FROM_KR reduce using rule 83 (id -> TK_ID .)
TK_TABLE_KOR reduce using rule 83 (id -> TK_ID .)
TK_STRING reduce using rule 83 (id -> TK_ID .)
TK_ID reduce using rule 83 (id -> TK_ID .)
TK_VALUES reduce using rule 83 (id -> TK_ID .)
TK_SELECT reduce using rule 83 (id -> TK_ID .)
TK_SELECT_KR reduce using rule 83 (id -> TK_ID .)
$end reduce using rule 83 (id -> TK_ID .)
TK_WHERE reduce using rule 83 (id -> TK_ID .)
TK_WHERE_PRE_KR reduce using rule 83 (id -> TK_ID .)
TK_AS reduce using rule 83 (id -> TK_ID .)
TK_COMMA reduce using rule 83 (id -> TK_ID .)
TK_GROUP reduce using rule 83 (id -> TK_ID .)
TK_GROUP_BY_PRE_KR reduce using rule 83 (id -> TK_ID .)
TK_HAVING reduce using rule 83 (id -> TK_ID .)
TK_HAVING_PRE_KR reduce using rule 83 (id -> TK_ID .)
TK_STAR reduce using rule 83 (id -> TK_ID .)
TK_INTEGER reduce using rule 83 (id -> TK_ID .)
TK_FLOAT reduce using rule 83 (id -> TK_ID .)
TK_NOT reduce using rule 83 (id -> TK_ID .)
TK_ORDER reduce using rule 83 (id -> TK_ID .)
TK_RP reduce using rule 83 (id -> TK_ID .)
TK_EQ reduce using rule 83 (id -> TK_ID .)
TK_AND reduce using rule 83 (id -> TK_ID .)
TK_OR reduce using rule 83 (id -> TK_ID .)
TK_LT reduce using rule 83 (id -> TK_ID .)
TK_GT reduce using rule 83 (id -> TK_ID .)
TK_LE reduce using rule 83 (id -> TK_ID .)
TK_GE reduce using rule 83 (id -> TK_ID .)
TK_NE reduce using rule 83 (id -> TK_ID .)
TK_LIKE reduce using rule 83 (id -> TK_ID .)
TK_ISNULL reduce using rule 83 (id -> TK_ID .)
TK_NOTNULL reduce using rule 83 (id -> TK_ID .)
TK_BETWEEN reduce using rule 83 (id -> TK_ID .)
TK_IN reduce using rule 83 (id -> TK_ID .)
TK_FROM reduce using rule 83 (id -> TK_ID .)
TK_COL_LIST_POST_KR reduce using rule 83 (id -> TK_ID .)
TK_WHERE_POST_KR reduce using rule 83 (id -> TK_ID .)
TK_GROUP_BY_POST_KR reduce using rule 83 (id -> TK_ID .)
TK_EURO reduce using rule 83 (id -> TK_ID .)
TK_HAVING_POST_KR reduce using rule 83 (id -> TK_ID .)
TK_ASC reduce using rule 83 (id -> TK_ID .)
TK_DESC reduce using rule 83 (id -> TK_ID .)
TK_ASC_KR reduce using rule 83 (id -> TK_ID .)
TK_DESC_KR reduce using rule 83 (id -> TK_ID .)
TK_ORDER_BY_KR reduce using rule 83 (id -> TK_ID .)
state 25
(15) cmd -> TK_INSERT TK_INTO . id inscollist_opt TK_VALUES TK_LP itemlist TK_RP
(16) cmd -> TK_INSERT TK_INTO . id inscollist_opt select
(13) id -> . TK_STRING
(83) id -> . TK_ID
TK_STRING shift and go to state 23
TK_ID shift and go to state 24
id shift and go to state 46
state 26
(28) cmd -> TK_INSERT_KOR id . inscollist_opt TK_TABLE_INTO_KOR TK_LP itemlist TK_RP TK_COL_LIST_POST_KR
(17) inscollist_opt -> .
(18) inscollist_opt -> . TK_LP inscollist TK_RP
TK_TABLE_INTO_KOR reduce using rule 17 (inscollist_opt -> .)
TK_LP shift and go to state 48
inscollist_opt shift and go to state 47
state 27
(29) cmd -> TK_UPDATE id . TK_SET setlist where_opt
TK_SET shift and go to state 49
state 28
(32) cmd -> TK_UPDATE_KOR id . TK_FROM_KR where_opt setlist TK_EURO
TK_FROM_KR shift and go to state 50
state 29
(97) cmd -> TK_DROP TK_TABLE . id
(13) id -> . TK_STRING
(83) id -> . TK_ID
TK_STRING shift and go to state 23
TK_ID shift and go to state 24
id shift and go to state 51
state 30
(98) cmd -> TK_DROP_KOR id . TK_TABLE_KOR
TK_TABLE_KOR shift and go to state 52
state 31
(99) cmd -> TK_DELETE TK_FROM . id where_opt
(13) id -> . TK_STRING
(83) id -> . TK_ID
TK_STRING shift and go to state 23
TK_ID shift and go to state 24
id shift and go to state 53
state 32
(100) cmd -> TK_DELETE_KOR id . TK_FROM_KR where_opt
TK_FROM_KR shift and go to state 54
state 33
(5) create_table -> TK_CREATE TK_TABLE . id
(13) id -> . TK_STRING
(83) id -> . TK_ID
TK_STRING shift and go to state 23
TK_ID shift and go to state 24
id shift and go to state 55
state 34
(35) oneselect -> TK_SELECT selcollist . from where_opt groupby_opt having_opt orderby_opt
(38) sclp -> selcollist . TK_COMMA
(40) from -> . TK_FROM seltablist
(90) from -> . seltablist TK_FROM_KR
(43) seltablist -> . stl_prefix id
(44) seltablist -> . stl_prefix id TK_AS id
(41) stl_prefix -> .
(42) stl_prefix -> . seltablist TK_COMMA
TK_COMMA shift and go to state 57
TK_FROM shift and go to state 38
TK_STRING reduce using rule 41 (stl_prefix -> .)
TK_ID reduce using rule 41 (stl_prefix -> .)
from shift and go to state 56
seltablist shift and go to state 39
stl_prefix shift and go to state 40
state 35
(36) selcollist -> TK_STAR .
TK_COMMA reduce using rule 36 (selcollist -> TK_STAR .)
TK_FROM reduce using rule 36 (selcollist -> TK_STAR .)
TK_STRING reduce using rule 36 (selcollist -> TK_STAR .)
TK_ID reduce using rule 36 (selcollist -> TK_STAR .)
TK_COL_LIST_POST_KR reduce using rule 36 (selcollist -> TK_STAR .)
state 36
(37) selcollist -> sclp . expr
(63) expr -> . expr TK_AND expr
(64) expr -> . expr TK_OR expr
(65) expr -> . expr TK_LT expr
(66) expr -> . expr TK_GT expr
(67) expr -> . expr TK_LE expr
(68) expr -> . expr TK_GE expr
(69) expr -> . expr TK_NE expr
(70) expr -> . expr TK_EQ expr
(71) expr -> . expr TK_LIKE expr
(72) expr -> . expr TK_ISNULL
(73) expr -> . expr TK_NOTNULL
(74) expr -> . expr TK_BETWEEN expr TK_AND expr
(75) expr -> . expr TK_NOT TK_BETWEEN expr TK_AND expr
(76) expr -> . expr TK_IN TK_LP exprlist TK_RP
(77) expr -> . expr TK_NOT TK_IN TK_LP exprlist TK_RP
(78) expr -> . TK_LP expr TK_RP
(79) expr -> . TK_INTEGER
(80) expr -> . TK_FLOAT
(81) expr -> . TK_STRING
(82) expr -> . TK_ID
(84) expr -> . TK_NOT expr
(85) expr -> . expr TK_NOT TK_LIKE expr
(86) expr -> . TK_ID TK_LP exprlist TK_RP
(87) expr -> . TK_ID TK_LP TK_STAR TK_RP
(88) expr -> . id TK_DOT id
(13) id -> . TK_STRING
(83) id -> . TK_ID
TK_LP shift and go to state 60
TK_INTEGER shift and go to state 61
TK_FLOAT shift and go to state 62
TK_STRING shift and go to state 63
TK_ID shift and go to state 64
TK_NOT shift and go to state 59
expr shift and go to state 58
id shift and go to state 65
state 37
(89) oneselect -> TK_SELECT_KR from . where_opt groupby_opt having_opt selcollist TK_COL_LIST_POST_KR orderby_opt
(45) where_opt -> .
(46) where_opt -> . TK_WHERE expr
(91) where_opt -> . TK_WHERE_PRE_KR expr TK_WHERE_POST_KR
TK_GROUP reduce using rule 45 (where_opt -> .)
TK_GROUP_BY_PRE_KR reduce using rule 45 (where_opt -> .)
TK_HAVING reduce using rule 45 (where_opt -> .)
TK_HAVING_PRE_KR reduce using rule 45 (where_opt -> .)
TK_STAR reduce using rule 45 (where_opt -> .)
TK_LP reduce using rule 45 (where_opt -> .)
TK_INTEGER reduce using rule 45 (where_opt -> .)
TK_FLOAT reduce using rule 45 (where_opt -> .)
TK_STRING reduce using rule 45 (where_opt -> .)
TK_ID reduce using rule 45 (where_opt -> .)
TK_NOT reduce using rule 45 (where_opt -> .)
TK_WHERE shift and go to state 67
TK_WHERE_PRE_KR shift and go to state 68
where_opt shift and go to state 66
state 38
(40) from -> TK_FROM . seltablist
(43) seltablist -> . stl_prefix id
(44) seltablist -> . stl_prefix id TK_AS id
(41) stl_prefix -> .
(42) stl_prefix -> . seltablist TK_COMMA
TK_STRING reduce using rule 41 (stl_prefix -> .)
TK_ID reduce using rule 41 (stl_prefix -> .)
seltablist shift and go to state 69
stl_prefix shift and go to state 40
state 39
(90) from -> seltablist . TK_FROM_KR
(42) stl_prefix -> seltablist . TK_COMMA
TK_FROM_KR shift and go to state 70
TK_COMMA shift and go to state 71
state 40
(43) seltablist -> stl_prefix . id
(44) seltablist -> stl_prefix . id TK_AS id
(13) id -> . TK_STRING
(83) id -> . TK_ID
TK_STRING shift and go to state 23
TK_ID shift and go to state 24
id shift and go to state 72
state 41
(6) create_table_args -> TK_LP columnlist . TK_RP
(7) columnlist -> columnlist . TK_COMMA column
TK_RP shift and go to state 73
TK_COMMA shift and go to state 74
state 42
(8) columnlist -> column .
TK_RP reduce using rule 8 (columnlist -> column .)
TK_COMMA reduce using rule 8 (columnlist -> column .)
state 43
(9) column -> columnid . type
(11) type -> . typename
(12) typename -> . id
(13) id -> . TK_STRING
(83) id -> . TK_ID
TK_STRING shift and go to state 23
TK_ID shift and go to state 24
type shift and go to state 75
typename shift and go to state 76
id shift and go to state 77
state 44
(10) columnid -> id .
TK_STRING reduce using rule 10 (columnid -> id .)
TK_ID reduce using rule 10 (columnid -> id .)
state 45
(14) cmd -> TK_CREATE_KOR id TK_LP . columnlist TK_RP TK_TABLE_KOR
(7) columnlist -> . columnlist TK_COMMA column
(8) columnlist -> . column
(9) column -> . columnid type
(10) columnid -> . id
(13) id -> . TK_STRING
(83) id -> . TK_ID
TK_STRING shift and go to state 23
TK_ID shift and go to state 24
id shift and go to state 44
columnlist shift and go to state 78
column shift and go to state 42
columnid shift and go to state 43
state 46
(15) cmd -> TK_INSERT TK_INTO id . inscollist_opt TK_VALUES TK_LP itemlist TK_RP
(16) cmd -> TK_INSERT TK_INTO id . inscollist_opt select
(17) inscollist_opt -> .
(18) inscollist_opt -> . TK_LP inscollist TK_RP
TK_VALUES reduce using rule 17 (inscollist_opt -> .)
TK_SELECT reduce using rule 17 (inscollist_opt -> .)
TK_SELECT_KR reduce using rule 17 (inscollist_opt -> .)
TK_LP shift and go to state 48
inscollist_opt shift and go to state 79
state 47
(28) cmd -> TK_INSERT_KOR id inscollist_opt . TK_TABLE_INTO_KOR TK_LP itemlist TK_RP TK_COL_LIST_POST_KR
TK_TABLE_INTO_KOR shift and go to state 80
state 48
(18) inscollist_opt -> TK_LP . inscollist TK_RP
(19) inscollist -> . inscollist TK_COMMA id
(20) inscollist -> . id
(13) id -> . TK_STRING
(83) id -> . TK_ID
TK_STRING shift and go to state 23
TK_ID shift and go to state 24
inscollist shift and go to state 81
id shift and go to state 82
state 49
(29) cmd -> TK_UPDATE id TK_SET . setlist where_opt
(30) setlist -> . setlist TK_COMMA id TK_EQ expr
(31) setlist -> . id TK_EQ expr
(13) id -> . TK_STRING
(83) id -> . TK_ID
TK_STRING shift and go to state 23
TK_ID shift and go to state 24
id shift and go to state 83
setlist shift and go to state 84
state 50
(32) cmd -> TK_UPDATE_KOR id TK_FROM_KR . where_opt setlist TK_EURO
(45) where_opt -> .
(46) where_opt -> . TK_WHERE expr
(91) where_opt -> . TK_WHERE_PRE_KR expr TK_WHERE_POST_KR
TK_STRING reduce using rule 45 (where_opt -> .)
TK_ID reduce using rule 45 (where_opt -> .)
TK_WHERE shift and go to state 67
TK_WHERE_PRE_KR shift and go to state 68
where_opt shift and go to state 85
state 51
(97) cmd -> TK_DROP TK_TABLE id .
$end reduce using rule 97 (cmd -> TK_DROP TK_TABLE id .)
state 52
(98) cmd -> TK_DROP_KOR id TK_TABLE_KOR .
$end reduce using rule 98 (cmd -> TK_DROP_KOR id TK_TABLE_KOR .)
state 53
(99) cmd -> TK_DELETE TK_FROM id . where_opt
(45) where_opt -> .
(46) where_opt -> . TK_WHERE expr
(91) where_opt -> . TK_WHERE_PRE_KR expr TK_WHERE_POST_KR
$end reduce using rule 45 (where_opt -> .)
TK_WHERE shift and go to state 67
TK_WHERE_PRE_KR shift and go to state 68
where_opt shift and go to state 86
state 54
(100) cmd -> TK_DELETE_KOR id TK_FROM_KR . where_opt
(45) where_opt -> .
(46) where_opt -> . TK_WHERE expr
(91) where_opt -> . TK_WHERE_PRE_KR expr TK_WHERE_POST_KR
$end reduce using rule 45 (where_opt -> .)
TK_WHERE shift and go to state 67
TK_WHERE_PRE_KR shift and go to state 68
where_opt shift and go to state 87
state 55
(5) create_table -> TK_CREATE TK_TABLE id .
TK_LP reduce using rule 5 (create_table -> TK_CREATE TK_TABLE id .)
state 56
(35) oneselect -> TK_SELECT selcollist from . where_opt groupby_opt having_opt orderby_opt
(45) where_opt -> .
(46) where_opt -> . TK_WHERE expr
(91) where_opt -> . TK_WHERE_PRE_KR expr TK_WHERE_POST_KR
TK_GROUP reduce using rule 45 (where_opt -> .)
TK_GROUP_BY_PRE_KR reduce using rule 45 (where_opt -> .)
TK_HAVING reduce using rule 45 (where_opt -> .)
TK_HAVING_PRE_KR reduce using rule 45 (where_opt -> .)
TK_ORDER reduce using rule 45 (where_opt -> .)
TK_LP reduce using rule 45 (where_opt -> .)
TK_INTEGER reduce using rule 45 (where_opt -> .)
TK_FLOAT reduce using rule 45 (where_opt -> .)
TK_STRING reduce using rule 45 (where_opt -> .)
TK_ID reduce using rule 45 (where_opt -> .)
TK_NOT reduce using rule 45 (where_opt -> .)
$end reduce using rule 45 (where_opt -> .)
TK_WHERE shift and go to state 67
TK_WHERE_PRE_KR shift and go to state 68
where_opt shift and go to state 88
state 57
(38) sclp -> selcollist TK_COMMA .
TK_LP reduce using rule 38 (sclp -> selcollist TK_COMMA .)
TK_INTEGER reduce using rule 38 (sclp -> selcollist TK_COMMA .)