-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathparser.out
9367 lines (7684 loc) · 460 KB
/
parser.out
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 version 3.4 (http://www.dabeaz.com/ply)
Unused terminals:
LBRACKET
ENTERO_NEG
ALTER
COMMIT
CURRENT
NAME2
DECLARE
ISEQUAL
CURSOR
OF
PRINT
ROLLBACK
OPEN
UNION
COLON
FOR
PLUSPLUS
HASHTAG
WORK
WHILE
ORDER
FETCH
ASC
ADD
CLOSE
LESSEQUAL
NAME
DATABASE
RBLOCK
USE
DATE
ENTERO_POS
GREATEREQUAL
LBLOCK
MINUSMINUS
DESC
DATE2
DEQUAL
RBRACKET
Grammar
Rule 0 S' -> program
Rule 1 program -> sql_list
Rule 2 sql_list -> sql SEMICOLON
Rule 3 sql_list -> sql_list sql SEMICOLON
Rule 4 sql -> schema
Rule 5 sql -> manipulative_statement
Rule 6 sql -> schema_element
Rule 7 schema -> CREATE SCHEMA AUTHORIZATION user opt_schema_element_list
Rule 8 user -> ID
Rule 9 opt_schema_element_list -> empty
Rule 10 opt_schema_element_list -> schema_element_list
Rule 11 schema_element_list -> schema_element
Rule 12 schema_element_list -> schema_element_list schema_element
Rule 13 schema_element -> base_table_def
Rule 14 schema_element -> view_def
Rule 15 schema_element -> privilege_def
Rule 16 schema_element -> schema_element schema_element
Rule 17 schema_element -> schema_element manipulative_statement
Rule 18 schema_element -> manipulative_statement schema_element
Rule 19 schema_element -> manipulative_statement
Rule 20 base_table_def -> CREATE TABLE table LPAREN base_table_element_commalist RPAREN
Rule 21 base_table_element_commalist -> base_table_element
Rule 22 base_table_element_commalist -> base_table_element_commalist COMMA base_table_element
Rule 23 base_table_element -> column_def
Rule 24 base_table_element -> constraint_def
Rule 25 base_table_element -> table_constraint_def
Rule 26 column_def -> column data_type column_def_opt_list
Rule 27 data_type -> CHAR
Rule 28 data_type -> INT IDENTITY identity
Rule 29 data_type -> CHAR LPAREN NUMBER RPAREN
Rule 30 data_type -> VARCHAR
Rule 31 data_type -> VARCHAR LPAREN NUMBER RPAREN
Rule 32 data_type -> INT
Rule 33 data_type -> FLOAT
Rule 34 data_type -> DOUBLE
Rule 35 data_type -> BIT
Rule 36 data_type -> SMALLDATETIME
Rule 37 literal -> literal ID
Rule 38 literal -> ID
Rule 39 literal -> literal NUMBER
Rule 40 literal -> NUMBER
Rule 41 identity -> LPAREN literal COMMA literal RPAREN
Rule 42 column_def_opt_list -> column_def_opt_list column_def_opt
Rule 43 column_def_opt_list -> column_def_opt
Rule 44 column_def_opt -> empty
Rule 45 column_def_opt -> NOT NULL
Rule 46 column_def_opt -> NULL
Rule 47 column_def_opt -> NOT NULL UNIQUE
Rule 48 column_def_opt -> NOT NULL PRIMARY KEY
Rule 49 column_def_opt -> DEFAULT NULL
Rule 50 column_def_opt -> DEFAULT USER
Rule 51 column_def_opt -> CHECK LPAREN search_condition RPAREN
Rule 52 column_def_opt -> REFERENCES table
Rule 53 column_def_opt -> REFERENCES table LPAREN column_commalist RPAREN
Rule 54 search_condition -> search_condition OR search_condition
Rule 55 search_condition -> search_condition AND search_condition
Rule 56 search_condition -> NOT search_condition
Rule 57 search_condition -> LPAREN search_condition RPAREN
Rule 58 search_condition -> predicate
Rule 59 predicate -> comparison_predicate
Rule 60 predicate -> assignment_predicate
Rule 61 predicate -> between_predicate
Rule 62 predicate -> like_predicate
Rule 63 predicate -> test_for_null
Rule 64 predicate -> in_predicate
Rule 65 predicate -> all_cr_any_predicate
Rule 66 predicate -> existence_test
Rule 67 comparison_predicate -> scalar_exp COMPARISON scalar_exp
Rule 68 comparison_predicate -> scalar_exp COMPARISON subquery
Rule 69 assignment_predicate -> assignment
Rule 70 subquery -> LPAREN SELECT opt_all_distinct selection table_exp RPAREN
Rule 71 between_predicate -> scalar_exp NOT BETWEEN scalar_exp AND scalar_exp
Rule 72 between_predicate -> scalar_exp BETWEEN scalar_exp AND scalar_exp
Rule 73 like_predicate -> scalar_exp NOT LIKE atom empty
Rule 74 like_predicate -> scalar_exp LIKE atom empty
Rule 75 test_for_null -> column_ref IS NOT NULL
Rule 76 test_for_null -> column_ref IS NULL
Rule 77 in_predicate -> scalar_exp NOT IN LPAREN subquery RPAREN
Rule 78 in_predicate -> scalar_exp IN LPAREN subquery RPAREN
Rule 79 in_predicate -> scalar_exp NOT IN LPAREN atom_commalist RPAREN
Rule 80 in_predicate -> scalar_exp IN LPAREN atom_commalist RPAREN
Rule 81 atom_commalist -> atom
Rule 82 atom_commalist -> atom_commalist COMMA atom
Rule 83 all_cr_any_predicate -> scalar_exp COMPARISON any_all_some subquery
Rule 84 any_all_some -> ANY
Rule 85 any_all_some -> ALL
Rule 86 any_all_some -> SOME
Rule 87 existence_test -> EXISTS subquery
Rule 88 column_commalist -> empty
Rule 89 column_commalist -> column
Rule 90 column_commalist -> column_commalist COMMA column
Rule 91 column_commalist -> LPAREN column_commalist RPAREN
Rule 92 constraint_def -> CONSTRAINT ID table_constraint_def
Rule 93 table_constraint_def -> UNIQUE LPAREN column_commalist RPAREN
Rule 94 table_constraint_def -> PRIMARY KEY LPAREN column_commalist RPAREN
Rule 95 table_constraint_def -> FOREIGN KEY LPAREN column_commalist RPAREN REFERENCES table
Rule 96 table_constraint_def -> FOREIGN KEY LPAREN column_commalist RPAREN REFERENCES table LPAREN column_commalist RPAREN
Rule 97 table_constraint_def -> CHECK LPAREN search_condition RPAREN
Rule 98 view_def -> CREATE VIEW table opt_column_commalist AS query_spec opt_with_check_option
Rule 99 opt_column_commalist -> empty
Rule 100 opt_column_commalist -> LPAREN column_commalist RPAREN
Rule 101 query_spec -> SELECT opt_all_distinct FROM selection table_exp
Rule 102 opt_with_check_option -> empty
Rule 103 opt_with_check_option -> WITH CHECK OPTION
Rule 104 opt_all_distinct -> empty
Rule 105 opt_all_distinct -> ALL
Rule 106 opt_all_distinct -> DISTINCT
Rule 107 selection -> scalar_exp_commalist
Rule 108 selection -> TIMES
Rule 109 scalar_exp_commalist -> scalar_exp
Rule 110 scalar_exp_commalist -> scalar_exp_commalist COMMA scalar_exp
Rule 111 table_exp -> from_clause
Rule 112 table_exp -> opt_where_clause
Rule 113 table_exp -> opt_group_by_clause
Rule 114 from_clause -> FROM table_ref_commalist
Rule 115 table_ref_commalist -> table_ref
Rule 116 table_ref_commalist -> table_ref_commalist COMMA table_ref
Rule 117 table_ref -> table
Rule 118 table_ref -> table range_variable
Rule 119 range_variable -> ID
Rule 120 opt_where_clause -> empty
Rule 121 opt_where_clause -> where_clause
Rule 122 where_clause -> search_condition
Rule 123 opt_group_by_clause -> empty
Rule 124 opt_group_by_clause -> GROUP BY column_ref_commalist
Rule 125 column_ref_commalist -> column_ref
Rule 126 column_ref_commalist -> column_ref_commalist COMMA column_ref
Rule 127 scalar_exp -> scalar_exp PLUS scalar_exp
Rule 128 scalar_exp -> scalar_exp MINUS scalar_exp
Rule 129 scalar_exp -> scalar_exp EQUAL scalar_exp
Rule 130 scalar_exp -> scalar_exp TIMES scalar_exp
Rule 131 scalar_exp -> scalar_exp DIVIDE scalar_exp
Rule 132 scalar_exp -> atom
Rule 133 scalar_exp -> column_ref
Rule 134 scalar_exp -> function_ref
Rule 135 scalar_exp -> LPAREN scalar_exp RPAREN
Rule 136 column_ref -> ID
Rule 137 column_ref -> ID DOT ID
Rule 138 column_ref -> ID DOT ID DOT ID
Rule 139 function_ref -> AMMSC LPAREN TIMES RPAREN
Rule 140 function_ref -> AMMSC LPAREN DISTINCT column_ref RPAREN
Rule 141 function_ref -> AMMSC LPAREN ALL scalar_exp RPAREN
Rule 142 function_ref -> AMMSC LPAREN scalar_exp RPAREN
Rule 143 privilege_def -> GRANT privileges ON table TO grantee_commalist opt_with_grant_option
Rule 144 opt_with_grant_option -> empty
Rule 145 opt_with_grant_option -> WITH GRANT OPTION
Rule 146 privileges -> ALL PRIVILEGES
Rule 147 privileges -> ALL
Rule 148 privileges -> operation_commalist
Rule 149 operation_commalist -> operation
Rule 150 operation_commalist -> operation_commalist COMMA operation
Rule 151 operation -> SELECT
Rule 152 operation -> INSERT
Rule 153 operation -> DELETE
Rule 154 operation -> UPDATE opt_column_commalist
Rule 155 operation -> REFERENCES opt_column_commalist
Rule 156 grantee_commalist -> grantee
Rule 157 grantee_commalist -> grantee_commalist COMMA grantee
Rule 158 grantee -> PUBLIC
Rule 159 grantee -> user
Rule 160 atom -> STRING
Rule 161 atom -> QUOTE parameter_ref QUOTE
Rule 162 atom -> NUMBER
Rule 163 atom -> QUOTE DATE1 QUOTE
Rule 164 atom -> QUOTE USER QUOTE
Rule 165 parameter_ref -> parameter
Rule 166 parameter_ref -> parameter_ref parameter
Rule 167 parameter_ref -> parameter INDICATOR parameter
Rule 168 parameter -> ID
Rule 169 manipulative_statement -> <empty>
Rule 170 manipulative_statement -> delete_statement
Rule 171 manipulative_statement -> insert_statement
Rule 172 manipulative_statement -> select_statement
Rule 173 manipulative_statement -> update_statement
Rule 174 manipulative_statement -> drop_table
Rule 175 update_statement -> UPDATE table SET assignment_commalist WHERE where_conditions
Rule 176 where_conditions -> assignment
Rule 177 where_conditions -> assignment OR where_conditions
Rule 178 where_conditions -> assignment AND where_conditions
Rule 179 where_conditions -> LPAREN where_conditions RPAREN
Rule 180 where_conditions -> where_conditions
Rule 181 drop_table -> DROP TABLE table
Rule 182 delete_statement -> DELETE FROM table opt_where_clause
Rule 183 insert_statement -> INSERT INTO table opt_column_commalist values_or_query_spec
Rule 184 values_or_query_spec -> VALUES LPAREN insert_atom_commalist RPAREN
Rule 185 values_or_query_spec -> query_spec
Rule 186 insert_atom_commalist -> insert_atom
Rule 187 insert_atom_commalist -> insert_atom_commalist COMMA insert_atom
Rule 188 insert_atom -> atom
Rule 189 insert_atom -> NULL
Rule 190 select_statement -> SELECT opt_all_distinct selection INTO target_commalist table_exp
Rule 191 select_statement -> SELECT selection FROM table WHERE assignment_commalist assign_cond
Rule 192 select_statement -> SELECT selection FROM table
Rule 193 target_commalist -> target
Rule 194 target_commalist -> target_commalist COMMA target
Rule 195 target -> parameter_ref
Rule 196 assignment_commalist -> assignment
Rule 197 assignment_commalist -> assignment_commalist COMMA assignment
Rule 198 assignment -> column EQUAL scalar_exp
Rule 199 assignment -> LPAREN assignment_commalist AMPERSANT AMPERSANT assignment_commalist RPAREN
Rule 200 assignment -> column LESS scalar_exp
Rule 201 assignment -> column GREATER scalar_exp
Rule 202 assignment -> column EQUAL NULL
Rule 203 assign_cond -> assign_cond cond assignment_commalist
Rule 204 assign_cond -> cond assignment_commalist
Rule 205 cond -> cond OR
Rule 206 cond -> cond AND
Rule 207 cond -> cond AMPERSANT AMPERSANT
Rule 208 cond -> AND
Rule 209 cond -> OR
Rule 210 cond -> AMPERSANT AMPERSANT
Rule 211 column -> ID
Rule 212 table -> ID
Rule 213 table -> ID DOT ID
Rule 214 empty -> <empty>
Terminals, with rules where they appear
ADD :
ALL : 85 105 141 146 147
ALTER :
AMMSC : 139 140 141 142
AMPERSANT : 199 199 207 207 210 210
AND : 55 71 72 178 206 208
ANY : 84
AS : 98
ASC :
AUTHORIZATION : 7
BETWEEN : 71 72
BIT : 35
BY : 124
CHAR : 27 29
CHECK : 51 97 103
CLOSE :
COLON :
COMMA : 22 41 82 90 110 116 126 150 157 187 194 197
COMMIT :
COMPARISON : 67 68 83
CONSTRAINT : 92
CREATE : 7 20 98
CURRENT :
CURSOR :
DATABASE :
DATE :
DATE1 : 163
DATE2 :
DECLARE :
DEFAULT : 49 50
DELETE : 153 182
DEQUAL :
DESC :
DISTINCT : 106 140
DIVIDE : 131
DOT : 137 138 138 213
DOUBLE : 34
DROP : 181
ENTERO_NEG :
ENTERO_POS :
EQUAL : 129 198 202
EXISTS : 87
FETCH :
FLOAT : 33
FOR :
FOREIGN : 95 96
FROM : 101 114 182 191 192
GRANT : 143 145
GREATER : 201
GREATEREQUAL :
GROUP : 124
HASHTAG :
ID : 8 37 38 92 119 136 137 137 138 138 138 168 211 212 213 213
IDENTITY : 28
IN : 77 78 79 80
INDICATOR : 167
INSERT : 152 183
INT : 28 32
INTO : 183 190
IS : 75 76
ISEQUAL :
KEY : 48 94 95 96
LBLOCK :
LBRACKET :
LESS : 200
LESSEQUAL :
LIKE : 73 74
LPAREN : 20 29 31 41 51 53 57 70 77 78 79 80 91 93 94 95 96 96 97 100 135 139 140 141 142 179 184 199
MINUS : 128
MINUSMINUS :
NAME :
NAME2 :
NOT : 45 47 48 56 71 73 75 77 79
NULL : 45 46 47 48 49 75 76 189 202
NUMBER : 29 31 39 40 162
OF :
ON : 143
OPEN :
OPTION : 103 145
OR : 54 177 205 209
ORDER :
PLUS : 127
PLUSPLUS :
PRIMARY : 48 94
PRINT :
PRIVILEGES : 146
PUBLIC : 158
QUOTE : 161 161 163 163 164 164
RBLOCK :
RBRACKET :
REFERENCES : 52 53 95 96 155
ROLLBACK :
RPAREN : 20 29 31 41 51 53 57 70 77 78 79 80 91 93 94 95 96 96 97 100 135 139 140 141 142 179 184 199
SCHEMA : 7
SELECT : 70 101 151 190 191 192
SEMICOLON : 2 3
SET : 175
SMALLDATETIME : 36
SOME : 86
STRING : 160
TABLE : 20 181
TIMES : 108 130 139
TO : 143
UNION :
UNIQUE : 47 93
UPDATE : 154 175
USE :
USER : 50 164
VALUES : 184
VARCHAR : 30 31
VIEW : 98
WHERE : 175 191
WHILE :
WITH : 103 145
WORK :
error :
Nonterminals, with rules where they appear
all_cr_any_predicate : 65
any_all_some : 83
assign_cond : 191 203
assignment : 69 176 177 178 196 197
assignment_commalist : 175 191 197 199 199 203 204
assignment_predicate : 60
atom : 73 74 81 82 132 188
atom_commalist : 79 80 82
base_table_def : 13
base_table_element : 21 22
base_table_element_commalist : 20 22
between_predicate : 61
column : 26 89 90 198 200 201 202
column_commalist : 53 90 91 93 94 95 96 96 100
column_def : 23
column_def_opt : 42 43
column_def_opt_list : 26 42
column_ref : 75 76 125 126 133 140
column_ref_commalist : 124 126
comparison_predicate : 59
cond : 203 204 205 206 207
constraint_def : 24
data_type : 26
delete_statement : 170
drop_table : 174
empty : 9 44 73 74 88 99 102 104 120 123 144
existence_test : 66
from_clause : 111
function_ref : 134
grantee : 156 157
grantee_commalist : 143 157
identity : 28
in_predicate : 64
insert_atom : 186 187
insert_atom_commalist : 184 187
insert_statement : 171
like_predicate : 62
literal : 37 39 41 41
manipulative_statement : 5 17 18 19
operation : 149 150
operation_commalist : 148 150
opt_all_distinct : 70 101 190
opt_column_commalist : 98 154 155 183
opt_group_by_clause : 113
opt_schema_element_list : 7
opt_where_clause : 112 182
opt_with_check_option : 98
opt_with_grant_option : 143
parameter : 165 166 167 167
parameter_ref : 161 166 195
predicate : 58
privilege_def : 15
privileges : 143
program : 0
query_spec : 98 185
range_variable : 118
scalar_exp : 67 67 68 71 71 71 72 72 72 73 74 77 78 79 80 83 109 110 127 127 128 128 129 129 130 130 131 131 135 141 142 198 200 201
scalar_exp_commalist : 107 110
schema : 4
schema_element : 6 11 12 16 16 17 18
schema_element_list : 10 12
search_condition : 51 54 54 55 55 56 57 97 122
select_statement : 172
selection : 70 101 190 191 192
sql : 2 3
sql_list : 1 3
subquery : 68 77 78 83 87
table : 20 52 53 95 96 98 117 118 143 175 181 182 183 191 192
table_constraint_def : 25 92
table_exp : 70 101 190
table_ref : 115 116
table_ref_commalist : 114 116
target : 193 194
target_commalist : 190 194
test_for_null : 63
update_statement : 173
user : 7 159
values_or_query_spec : 183
view_def : 14
where_clause : 121
where_conditions : 175 177 178 179 180
Parsing method: LALR
state 0
(0) S' -> . program
(1) program -> . sql_list
(2) sql_list -> . sql SEMICOLON
(3) sql_list -> . sql_list sql SEMICOLON
(4) sql -> . schema
(5) sql -> . manipulative_statement
(6) sql -> . schema_element
(7) schema -> . CREATE SCHEMA AUTHORIZATION user opt_schema_element_list
(169) manipulative_statement -> .
(170) manipulative_statement -> . delete_statement
(171) manipulative_statement -> . insert_statement
(172) manipulative_statement -> . select_statement
(173) manipulative_statement -> . update_statement
(174) manipulative_statement -> . drop_table
(13) schema_element -> . base_table_def
(14) schema_element -> . view_def
(15) schema_element -> . privilege_def
(16) schema_element -> . schema_element schema_element
(17) schema_element -> . schema_element manipulative_statement
(18) schema_element -> . manipulative_statement schema_element
(19) schema_element -> . manipulative_statement
(182) delete_statement -> . DELETE FROM table opt_where_clause
(183) insert_statement -> . INSERT INTO table opt_column_commalist values_or_query_spec
(190) select_statement -> . SELECT opt_all_distinct selection INTO target_commalist table_exp
(191) select_statement -> . SELECT selection FROM table WHERE assignment_commalist assign_cond
(192) select_statement -> . SELECT selection FROM table
(175) update_statement -> . UPDATE table SET assignment_commalist WHERE where_conditions
(181) drop_table -> . DROP TABLE table
(20) base_table_def -> . CREATE TABLE table LPAREN base_table_element_commalist RPAREN
(98) view_def -> . CREATE VIEW table opt_column_commalist AS query_spec opt_with_check_option
(143) privilege_def -> . GRANT privileges ON table TO grantee_commalist opt_with_grant_option
! shift/reduce conflict for CREATE resolved as shift
! shift/reduce conflict for DELETE resolved as shift
! shift/reduce conflict for INSERT resolved as shift
! shift/reduce conflict for SELECT resolved as shift
! shift/reduce conflict for UPDATE resolved as shift
! shift/reduce conflict for DROP resolved as shift
! shift/reduce conflict for GRANT resolved as shift
CREATE shift and go to state 8
SEMICOLON reduce using rule 169 (manipulative_statement -> .)
DELETE shift and go to state 20
INSERT shift and go to state 6
SELECT shift and go to state 5
UPDATE shift and go to state 14
DROP shift and go to state 9
GRANT shift and go to state 2
! CREATE [ reduce using rule 169 (manipulative_statement -> .) ]
! GRANT [ reduce using rule 169 (manipulative_statement -> .) ]
! DELETE [ reduce using rule 169 (manipulative_statement -> .) ]
! INSERT [ reduce using rule 169 (manipulative_statement -> .) ]
! SELECT [ reduce using rule 169 (manipulative_statement -> .) ]
! UPDATE [ reduce using rule 169 (manipulative_statement -> .) ]
! DROP [ reduce using rule 169 (manipulative_statement -> .) ]
program shift and go to state 1
drop_table shift and go to state 4
manipulative_statement shift and go to state 7
delete_statement shift and go to state 10
schema shift and go to state 3
update_statement shift and go to state 11
privilege_def shift and go to state 12
base_table_def shift and go to state 13
select_statement shift and go to state 15
sql shift and go to state 16
insert_statement shift and go to state 17
view_def shift and go to state 18
schema_element shift and go to state 19
sql_list shift and go to state 21
state 1
(0) S' -> program .
state 2
(143) privilege_def -> GRANT . privileges ON table TO grantee_commalist opt_with_grant_option
(146) privileges -> . ALL PRIVILEGES
(147) privileges -> . ALL
(148) privileges -> . operation_commalist
(149) operation_commalist -> . operation
(150) operation_commalist -> . operation_commalist COMMA operation
(151) operation -> . SELECT
(152) operation -> . INSERT
(153) operation -> . DELETE
(154) operation -> . UPDATE opt_column_commalist
(155) operation -> . REFERENCES opt_column_commalist
ALL shift and go to state 24
SELECT shift and go to state 29
INSERT shift and go to state 25
DELETE shift and go to state 30
UPDATE shift and go to state 22
REFERENCES shift and go to state 27
privileges shift and go to state 23
operation_commalist shift and go to state 26
operation shift and go to state 28
state 3
(4) sql -> schema .
SEMICOLON reduce using rule 4 (sql -> schema .)
state 4
(174) manipulative_statement -> drop_table .
CREATE reduce using rule 174 (manipulative_statement -> drop_table .)
GRANT reduce using rule 174 (manipulative_statement -> drop_table .)
DELETE reduce using rule 174 (manipulative_statement -> drop_table .)
INSERT reduce using rule 174 (manipulative_statement -> drop_table .)
SELECT reduce using rule 174 (manipulative_statement -> drop_table .)
UPDATE reduce using rule 174 (manipulative_statement -> drop_table .)
DROP reduce using rule 174 (manipulative_statement -> drop_table .)
SEMICOLON reduce using rule 174 (manipulative_statement -> drop_table .)
state 5
(190) select_statement -> SELECT . opt_all_distinct selection INTO target_commalist table_exp
(191) select_statement -> SELECT . selection FROM table WHERE assignment_commalist assign_cond
(192) select_statement -> SELECT . selection FROM table
(104) opt_all_distinct -> . empty
(105) opt_all_distinct -> . ALL
(106) opt_all_distinct -> . DISTINCT
(107) selection -> . scalar_exp_commalist
(108) selection -> . TIMES
(214) empty -> .
(109) scalar_exp_commalist -> . scalar_exp
(110) scalar_exp_commalist -> . scalar_exp_commalist COMMA scalar_exp
(127) scalar_exp -> . scalar_exp PLUS scalar_exp
(128) scalar_exp -> . scalar_exp MINUS scalar_exp
(129) scalar_exp -> . scalar_exp EQUAL scalar_exp
(130) scalar_exp -> . scalar_exp TIMES scalar_exp
(131) scalar_exp -> . scalar_exp DIVIDE scalar_exp
(132) scalar_exp -> . atom
(133) scalar_exp -> . column_ref
(134) scalar_exp -> . function_ref
(135) scalar_exp -> . LPAREN scalar_exp RPAREN
(160) atom -> . STRING
(161) atom -> . QUOTE parameter_ref QUOTE
(162) atom -> . NUMBER
(163) atom -> . QUOTE DATE1 QUOTE
(164) atom -> . QUOTE USER QUOTE
(136) column_ref -> . ID
(137) column_ref -> . ID DOT ID
(138) column_ref -> . ID DOT ID DOT ID
(139) function_ref -> . AMMSC LPAREN TIMES RPAREN
(140) function_ref -> . AMMSC LPAREN DISTINCT column_ref RPAREN
(141) function_ref -> . AMMSC LPAREN ALL scalar_exp RPAREN
(142) function_ref -> . AMMSC LPAREN scalar_exp RPAREN
! shift/reduce conflict for TIMES resolved as shift
! shift/reduce conflict for LPAREN resolved as shift
! shift/reduce conflict for STRING resolved as shift
! shift/reduce conflict for QUOTE resolved as shift
! shift/reduce conflict for NUMBER resolved as shift
! shift/reduce conflict for ID resolved as shift
! shift/reduce conflict for AMMSC resolved as shift
ALL shift and go to state 43
DISTINCT shift and go to state 35
TIMES shift and go to state 39
LPAREN shift and go to state 40
STRING shift and go to state 34
QUOTE shift and go to state 36
NUMBER shift and go to state 38
ID shift and go to state 42
AMMSC shift and go to state 46
! TIMES [ reduce using rule 214 (empty -> .) ]
! LPAREN [ reduce using rule 214 (empty -> .) ]
! STRING [ reduce using rule 214 (empty -> .) ]
! QUOTE [ reduce using rule 214 (empty -> .) ]
! NUMBER [ reduce using rule 214 (empty -> .) ]
! ID [ reduce using rule 214 (empty -> .) ]
! AMMSC [ reduce using rule 214 (empty -> .) ]
selection shift and go to state 31
scalar_exp_commalist shift and go to state 32
opt_all_distinct shift and go to state 44
atom shift and go to state 41
scalar_exp shift and go to state 45
function_ref shift and go to state 33
column_ref shift and go to state 47
empty shift and go to state 37
state 6
(183) insert_statement -> INSERT . INTO table opt_column_commalist values_or_query_spec
INTO shift and go to state 48
state 7
(5) sql -> manipulative_statement .
(18) schema_element -> manipulative_statement . schema_element
(19) schema_element -> manipulative_statement .
(13) schema_element -> . base_table_def
(14) schema_element -> . view_def
(15) schema_element -> . privilege_def
(16) schema_element -> . schema_element schema_element
(17) schema_element -> . schema_element manipulative_statement
(18) schema_element -> . manipulative_statement schema_element
(19) schema_element -> . manipulative_statement
(20) base_table_def -> . CREATE TABLE table LPAREN base_table_element_commalist RPAREN
(98) view_def -> . CREATE VIEW table opt_column_commalist AS query_spec opt_with_check_option
(143) privilege_def -> . GRANT privileges ON table TO grantee_commalist opt_with_grant_option
(169) manipulative_statement -> .
(170) manipulative_statement -> . delete_statement
(171) manipulative_statement -> . insert_statement
(172) manipulative_statement -> . select_statement
(173) manipulative_statement -> . update_statement
(174) manipulative_statement -> . drop_table
(182) delete_statement -> . DELETE FROM table opt_where_clause
(183) insert_statement -> . INSERT INTO table opt_column_commalist values_or_query_spec
(190) select_statement -> . SELECT opt_all_distinct selection INTO target_commalist table_exp
(191) select_statement -> . SELECT selection FROM table WHERE assignment_commalist assign_cond
(192) select_statement -> . SELECT selection FROM table
(175) update_statement -> . UPDATE table SET assignment_commalist WHERE where_conditions
(181) drop_table -> . DROP TABLE table
! reduce/reduce conflict for SEMICOLON resolved using rule 5 (sql -> manipulative_statement .)
! shift/reduce conflict for CREATE resolved as shift
! shift/reduce conflict for GRANT resolved as shift
! shift/reduce conflict for CREATE resolved as shift
! shift/reduce conflict for GRANT resolved as shift
! reduce/reduce conflict for DELETE resolved using rule 19 (schema_element -> manipulative_statement .)
! reduce/reduce conflict for INSERT resolved using rule 19 (schema_element -> manipulative_statement .)
! reduce/reduce conflict for SELECT resolved using rule 19 (schema_element -> manipulative_statement .)
! reduce/reduce conflict for UPDATE resolved using rule 19 (schema_element -> manipulative_statement .)
! reduce/reduce conflict for DROP resolved using rule 19 (schema_element -> manipulative_statement .)
! reduce/reduce conflict for SEMICOLON resolved using rule 5 (sql -> manipulative_statement .)
! shift/reduce conflict for DELETE resolved as shift
! shift/reduce conflict for INSERT resolved as shift
! shift/reduce conflict for SELECT resolved as shift
! shift/reduce conflict for UPDATE resolved as shift
! shift/reduce conflict for DROP resolved as shift
SEMICOLON reduce using rule 5 (sql -> manipulative_statement .)
CREATE shift and go to state 50
GRANT shift and go to state 2
DELETE shift and go to state 20
INSERT shift and go to state 6
SELECT shift and go to state 5
UPDATE shift and go to state 14
DROP shift and go to state 9
! CREATE [ reduce using rule 19 (schema_element -> manipulative_statement .) ]
! GRANT [ reduce using rule 19 (schema_element -> manipulative_statement .) ]
! DELETE [ reduce using rule 19 (schema_element -> manipulative_statement .) ]
! INSERT [ reduce using rule 19 (schema_element -> manipulative_statement .) ]
! SELECT [ reduce using rule 19 (schema_element -> manipulative_statement .) ]
! UPDATE [ reduce using rule 19 (schema_element -> manipulative_statement .) ]
! DROP [ reduce using rule 19 (schema_element -> manipulative_statement .) ]
! SEMICOLON [ reduce using rule 19 (schema_element -> manipulative_statement .) ]
! CREATE [ reduce using rule 169 (manipulative_statement -> .) ]
! GRANT [ reduce using rule 169 (manipulative_statement -> .) ]
! DELETE [ reduce using rule 169 (manipulative_statement -> .) ]
! INSERT [ reduce using rule 169 (manipulative_statement -> .) ]
! SELECT [ reduce using rule 169 (manipulative_statement -> .) ]
! UPDATE [ reduce using rule 169 (manipulative_statement -> .) ]
! DROP [ reduce using rule 169 (manipulative_statement -> .) ]
! SEMICOLON [ reduce using rule 169 (manipulative_statement -> .) ]
drop_table shift and go to state 4
manipulative_statement shift and go to state 49
delete_statement shift and go to state 10
update_statement shift and go to state 11
privilege_def shift and go to state 12
base_table_def shift and go to state 13
select_statement shift and go to state 15
insert_statement shift and go to state 17
view_def shift and go to state 18
schema_element shift and go to state 51
state 8
(7) schema -> CREATE . SCHEMA AUTHORIZATION user opt_schema_element_list
(20) base_table_def -> CREATE . TABLE table LPAREN base_table_element_commalist RPAREN
(98) view_def -> CREATE . VIEW table opt_column_commalist AS query_spec opt_with_check_option
SCHEMA shift and go to state 54
TABLE shift and go to state 52
VIEW shift and go to state 53
state 9
(181) drop_table -> DROP . TABLE table
TABLE shift and go to state 55
state 10
(170) manipulative_statement -> delete_statement .
CREATE reduce using rule 170 (manipulative_statement -> delete_statement .)
GRANT reduce using rule 170 (manipulative_statement -> delete_statement .)
DELETE reduce using rule 170 (manipulative_statement -> delete_statement .)
INSERT reduce using rule 170 (manipulative_statement -> delete_statement .)
SELECT reduce using rule 170 (manipulative_statement -> delete_statement .)
UPDATE reduce using rule 170 (manipulative_statement -> delete_statement .)
DROP reduce using rule 170 (manipulative_statement -> delete_statement .)
SEMICOLON reduce using rule 170 (manipulative_statement -> delete_statement .)
state 11
(173) manipulative_statement -> update_statement .
CREATE reduce using rule 173 (manipulative_statement -> update_statement .)
GRANT reduce using rule 173 (manipulative_statement -> update_statement .)
DELETE reduce using rule 173 (manipulative_statement -> update_statement .)
INSERT reduce using rule 173 (manipulative_statement -> update_statement .)
SELECT reduce using rule 173 (manipulative_statement -> update_statement .)
UPDATE reduce using rule 173 (manipulative_statement -> update_statement .)
DROP reduce using rule 173 (manipulative_statement -> update_statement .)
SEMICOLON reduce using rule 173 (manipulative_statement -> update_statement .)
state 12
(15) schema_element -> privilege_def .
CREATE reduce using rule 15 (schema_element -> privilege_def .)
GRANT reduce using rule 15 (schema_element -> privilege_def .)
DELETE reduce using rule 15 (schema_element -> privilege_def .)
INSERT reduce using rule 15 (schema_element -> privilege_def .)
SELECT reduce using rule 15 (schema_element -> privilege_def .)
UPDATE reduce using rule 15 (schema_element -> privilege_def .)
DROP reduce using rule 15 (schema_element -> privilege_def .)
SEMICOLON reduce using rule 15 (schema_element -> privilege_def .)
state 13
(13) schema_element -> base_table_def .
CREATE reduce using rule 13 (schema_element -> base_table_def .)
GRANT reduce using rule 13 (schema_element -> base_table_def .)
DELETE reduce using rule 13 (schema_element -> base_table_def .)
INSERT reduce using rule 13 (schema_element -> base_table_def .)
SELECT reduce using rule 13 (schema_element -> base_table_def .)
UPDATE reduce using rule 13 (schema_element -> base_table_def .)
DROP reduce using rule 13 (schema_element -> base_table_def .)
SEMICOLON reduce using rule 13 (schema_element -> base_table_def .)
state 14
(175) update_statement -> UPDATE . table SET assignment_commalist WHERE where_conditions
(212) table -> . ID
(213) table -> . ID DOT ID
ID shift and go to state 57
table shift and go to state 56
state 15
(172) manipulative_statement -> select_statement .
CREATE reduce using rule 172 (manipulative_statement -> select_statement .)
GRANT reduce using rule 172 (manipulative_statement -> select_statement .)
DELETE reduce using rule 172 (manipulative_statement -> select_statement .)
INSERT reduce using rule 172 (manipulative_statement -> select_statement .)
SELECT reduce using rule 172 (manipulative_statement -> select_statement .)
UPDATE reduce using rule 172 (manipulative_statement -> select_statement .)
DROP reduce using rule 172 (manipulative_statement -> select_statement .)
SEMICOLON reduce using rule 172 (manipulative_statement -> select_statement .)
state 16
(2) sql_list -> sql . SEMICOLON
SEMICOLON shift and go to state 58
state 17
(171) manipulative_statement -> insert_statement .
CREATE reduce using rule 171 (manipulative_statement -> insert_statement .)
GRANT reduce using rule 171 (manipulative_statement -> insert_statement .)
DELETE reduce using rule 171 (manipulative_statement -> insert_statement .)
INSERT reduce using rule 171 (manipulative_statement -> insert_statement .)
SELECT reduce using rule 171 (manipulative_statement -> insert_statement .)
UPDATE reduce using rule 171 (manipulative_statement -> insert_statement .)
DROP reduce using rule 171 (manipulative_statement -> insert_statement .)
SEMICOLON reduce using rule 171 (manipulative_statement -> insert_statement .)
state 18
(14) schema_element -> view_def .
CREATE reduce using rule 14 (schema_element -> view_def .)
GRANT reduce using rule 14 (schema_element -> view_def .)
DELETE reduce using rule 14 (schema_element -> view_def .)
INSERT reduce using rule 14 (schema_element -> view_def .)
SELECT reduce using rule 14 (schema_element -> view_def .)
UPDATE reduce using rule 14 (schema_element -> view_def .)
DROP reduce using rule 14 (schema_element -> view_def .)
SEMICOLON reduce using rule 14 (schema_element -> view_def .)
state 19
(6) sql -> schema_element .
(16) schema_element -> schema_element . schema_element
(17) schema_element -> schema_element . manipulative_statement
(13) schema_element -> . base_table_def
(14) schema_element -> . view_def
(15) schema_element -> . privilege_def
(16) schema_element -> . schema_element schema_element
(17) schema_element -> . schema_element manipulative_statement
(18) schema_element -> . manipulative_statement schema_element
(19) schema_element -> . manipulative_statement
(169) manipulative_statement -> .
(170) manipulative_statement -> . delete_statement
(171) manipulative_statement -> . insert_statement
(172) manipulative_statement -> . select_statement
(173) manipulative_statement -> . update_statement
(174) manipulative_statement -> . drop_table
(20) base_table_def -> . CREATE TABLE table LPAREN base_table_element_commalist RPAREN
(98) view_def -> . CREATE VIEW table opt_column_commalist AS query_spec opt_with_check_option
(143) privilege_def -> . GRANT privileges ON table TO grantee_commalist opt_with_grant_option
(182) delete_statement -> . DELETE FROM table opt_where_clause
(183) insert_statement -> . INSERT INTO table opt_column_commalist values_or_query_spec
(190) select_statement -> . SELECT opt_all_distinct selection INTO target_commalist table_exp
(191) select_statement -> . SELECT selection FROM table WHERE assignment_commalist assign_cond
(192) select_statement -> . SELECT selection FROM table
(175) update_statement -> . UPDATE table SET assignment_commalist WHERE where_conditions
(181) drop_table -> . DROP TABLE table
! reduce/reduce conflict for SEMICOLON resolved using rule 6 (sql -> schema_element .)
! shift/reduce conflict for CREATE resolved as shift
! shift/reduce conflict for GRANT resolved as shift
! shift/reduce conflict for DELETE resolved as shift
! shift/reduce conflict for INSERT resolved as shift
! shift/reduce conflict for SELECT resolved as shift
! shift/reduce conflict for UPDATE resolved as shift
! shift/reduce conflict for DROP resolved as shift
SEMICOLON reduce using rule 6 (sql -> schema_element .)
CREATE shift and go to state 50
GRANT shift and go to state 2
DELETE shift and go to state 20
INSERT shift and go to state 6
SELECT shift and go to state 5
UPDATE shift and go to state 14
DROP shift and go to state 9
! CREATE [ reduce using rule 169 (manipulative_statement -> .) ]
! GRANT [ reduce using rule 169 (manipulative_statement -> .) ]
! DELETE [ reduce using rule 169 (manipulative_statement -> .) ]
! INSERT [ reduce using rule 169 (manipulative_statement -> .) ]
! SELECT [ reduce using rule 169 (manipulative_statement -> .) ]
! UPDATE [ reduce using rule 169 (manipulative_statement -> .) ]
! DROP [ reduce using rule 169 (manipulative_statement -> .) ]
! SEMICOLON [ reduce using rule 169 (manipulative_statement -> .) ]
drop_table shift and go to state 4
manipulative_statement shift and go to state 59
delete_statement shift and go to state 10
update_statement shift and go to state 11
privilege_def shift and go to state 12
base_table_def shift and go to state 13
select_statement shift and go to state 15
insert_statement shift and go to state 17
view_def shift and go to state 18
schema_element shift and go to state 60
state 20
(182) delete_statement -> DELETE . FROM table opt_where_clause
FROM shift and go to state 61
state 21
(1) program -> sql_list .
(3) sql_list -> sql_list . sql SEMICOLON
(4) sql -> . schema
(5) sql -> . manipulative_statement
(6) sql -> . schema_element
(7) schema -> . CREATE SCHEMA AUTHORIZATION user opt_schema_element_list
(169) manipulative_statement -> .
(170) manipulative_statement -> . delete_statement
(171) manipulative_statement -> . insert_statement
(172) manipulative_statement -> . select_statement
(173) manipulative_statement -> . update_statement
(174) manipulative_statement -> . drop_table
(13) schema_element -> . base_table_def
(14) schema_element -> . view_def
(15) schema_element -> . privilege_def
(16) schema_element -> . schema_element schema_element
(17) schema_element -> . schema_element manipulative_statement
(18) schema_element -> . manipulative_statement schema_element
(19) schema_element -> . manipulative_statement
(182) delete_statement -> . DELETE FROM table opt_where_clause
(183) insert_statement -> . INSERT INTO table opt_column_commalist values_or_query_spec
(190) select_statement -> . SELECT opt_all_distinct selection INTO target_commalist table_exp
(191) select_statement -> . SELECT selection FROM table WHERE assignment_commalist assign_cond
(192) select_statement -> . SELECT selection FROM table
(175) update_statement -> . UPDATE table SET assignment_commalist WHERE where_conditions
(181) drop_table -> . DROP TABLE table
(20) base_table_def -> . CREATE TABLE table LPAREN base_table_element_commalist RPAREN
(98) view_def -> . CREATE VIEW table opt_column_commalist AS query_spec opt_with_check_option
(143) privilege_def -> . GRANT privileges ON table TO grantee_commalist opt_with_grant_option
! shift/reduce conflict for CREATE resolved as shift
! shift/reduce conflict for DELETE resolved as shift
! shift/reduce conflict for INSERT resolved as shift
! shift/reduce conflict for SELECT resolved as shift
! shift/reduce conflict for UPDATE resolved as shift
! shift/reduce conflict for DROP resolved as shift
! shift/reduce conflict for GRANT resolved as shift
$end reduce using rule 1 (program -> sql_list .)
CREATE shift and go to state 8
SEMICOLON reduce using rule 169 (manipulative_statement -> .)
DELETE shift and go to state 20
INSERT shift and go to state 6