xref: /freebsd/contrib/byacc/test/btyacc/err_inherit3.output (revision bdd1243df58e60e85101c09001d9812a789b6bc4)
1   0  $accept : declaration $end
2
3   1  $$1 :
4
5   2  $$2 :
6
7   3  declaration : class type $$1 $$2 namelist
8   4              | type locnamelist
9
10   5  class : GLOBAL
11   6        | LOCAL
12
13   7  type : REAL
14   8       | INTEGER
15
16   9  $$3 :
17
18  10  namelist : $$3 namelist NAME
19  11           | NAME
20
21  12  $$4 :
22
23  13  locnamelist : $$4 $$2 namelist
24
25state 0
26	$accept : . declaration $end  (0)
27
28	GLOBAL  shift 1
29	LOCAL  shift 2
30	REAL  shift 3
31	INTEGER  shift 4
32	.  error
33
34	declaration  goto 5
35	class  goto 6
36	type  goto 7
37
38
39state 1
40	class : GLOBAL .  (5)
41
42	.  reduce 5
43
44
45state 2
46	class : LOCAL .  (6)
47
48	.  reduce 6
49
50
51state 3
52	type : REAL .  (7)
53
54	.  reduce 7
55
56
57state 4
58	type : INTEGER .  (8)
59
60	.  reduce 8
61
62
63state 5
64	$accept : declaration . $end  (0)
65
66	$end  accept
67
68
69state 6
70	declaration : class . type $$1 $$2 namelist  (3)
71
72	REAL  shift 3
73	INTEGER  shift 4
74	.  error
75
76	type  goto 8
77
78
79state 7
80	declaration : type . locnamelist  (4)
81	$$4 : .  (12)
82
83	.  reduce 12
84
85	locnamelist  goto 9
86	$$4  goto 10
87
88
89state 8
90	declaration : class type . $$1 $$2 namelist  (3)
91	$$1 : .  (1)
92
93	.  reduce 1
94
95	$$1  goto 11
96
97
98state 9
99	declaration : type locnamelist .  (4)
100
101	.  reduce 4
102
103
104state 10
105	locnamelist : $$4 . $$2 namelist  (13)
106	$$2 : .  (2)
107
108	.  reduce 2
109
110	$$2  goto 12
111
112
113state 11
114	declaration : class type $$1 . $$2 namelist  (3)
115	$$2 : .  (2)
116
117	.  reduce 2
118
119	$$2  goto 13
120
121
12212: shift/reduce conflict (shift 14, reduce 9) on NAME
123state 12
124	locnamelist : $$4 $$2 . namelist  (13)
125	$$3 : .  (9)
126
127	NAME  shift 14
128
129	namelist  goto 15
130	$$3  goto 16
131
132
13313: shift/reduce conflict (shift 14, reduce 9) on NAME
134state 13
135	declaration : class type $$1 $$2 . namelist  (3)
136	$$3 : .  (9)
137
138	NAME  shift 14
139
140	namelist  goto 17
141	$$3  goto 16
142
143
144state 14
145	namelist : NAME .  (11)
146
147	.  reduce 11
148
149
150state 15
151	locnamelist : $$4 $$2 namelist .  (13)
152
153	.  reduce 13
154
155
15616: shift/reduce conflict (shift 14, reduce 9) on NAME
157state 16
158	namelist : $$3 . namelist NAME  (10)
159	$$3 : .  (9)
160
161	NAME  shift 14
162
163	namelist  goto 18
164	$$3  goto 16
165
166
167state 17
168	declaration : class type $$1 $$2 namelist .  (3)
169
170	.  reduce 3
171
172
173state 18
174	namelist : $$3 namelist . NAME  (10)
175
176	NAME  shift 19
177	.  error
178
179
180state 19
181	namelist : $$3 namelist NAME .  (10)
182
183	.  reduce 10
184
185
186Rules never reduced:
187	$$3 :  (9)
188
189
190State 12 contains 1 shift/reduce conflict.
191State 13 contains 1 shift/reduce conflict.
192State 16 contains 1 shift/reduce conflict.
193
194
1957 terminals, 10 nonterminals
19614 grammar rules, 20 states
197
198grammar parser grammar
199symbol# value# symbol
200     0      0  $end
201     1    256  error
202     2    257  GLOBAL
203     3    258  LOCAL
204     4    259  REAL
205     5    260  INTEGER
206     6    261  NAME
207     7    262  $accept
208     8    263  declaration
209     9    264  namelist
210    10    265  locnamelist
211    11    266  class
212    12    267  type
213    13    268  $$1
214    14    269  $$2
215    15    270  $$3
216    16    271  $$4
217