]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/byacc/test/btyacc/err_inherit3.output
ZFS: MFV 2.0-rc1-ga00c61
[FreeBSD/FreeBSD.git] / contrib / byacc / test / btyacc / err_inherit3.output
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 \f
25 state 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
39 state 1
40         class : GLOBAL .  (5)
41
42         .  reduce 5
43
44
45 state 2
46         class : LOCAL .  (6)
47
48         .  reduce 6
49
50
51 state 3
52         type : REAL .  (7)
53
54         .  reduce 7
55
56
57 state 4
58         type : INTEGER .  (8)
59
60         .  reduce 8
61
62
63 state 5
64         $accept : declaration . $end  (0)
65
66         $end  accept
67
68
69 state 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
79 state 7
80         declaration : type . locnamelist  (4)
81         $$4 : .  (12)
82
83         .  reduce 12
84
85         locnamelist  goto 9
86         $$4  goto 10
87
88
89 state 8
90         declaration : class type . $$1 $$2 namelist  (3)
91         $$1 : .  (1)
92
93         .  reduce 1
94
95         $$1  goto 11
96
97
98 state 9
99         declaration : type locnamelist .  (4)
100
101         .  reduce 4
102
103
104 state 10
105         locnamelist : $$4 . $$2 namelist  (13)
106         $$2 : .  (2)
107
108         .  reduce 2
109
110         $$2  goto 12
111
112
113 state 11
114         declaration : class type $$1 . $$2 namelist  (3)
115         $$2 : .  (2)
116
117         .  reduce 2
118
119         $$2  goto 13
120
121
122 12: shift/reduce conflict (shift 14, reduce 9) on NAME
123 state 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
133 13: shift/reduce conflict (shift 14, reduce 9) on NAME
134 state 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
144 state 14
145         namelist : NAME .  (11)
146
147         .  reduce 11
148
149
150 state 15
151         locnamelist : $$4 $$2 namelist .  (13)
152
153         .  reduce 13
154
155
156 16: shift/reduce conflict (shift 14, reduce 9) on NAME
157 state 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
167 state 17
168         declaration : class type $$1 $$2 namelist .  (3)
169
170         .  reduce 3
171
172
173 state 18
174         namelist : $$3 namelist . NAME  (10)
175
176         NAME  shift 19
177         .  error
178
179
180 state 19
181         namelist : $$3 namelist NAME .  (10)
182
183         .  reduce 10
184
185
186 Rules never reduced:
187         $$3 :  (9)
188
189
190 State 12 contains 1 shift/reduce conflict.
191 State 13 contains 1 shift/reduce conflict.
192 State 16 contains 1 shift/reduce conflict.
193
194
195 7 terminals, 10 nonterminals
196 14 grammar rules, 20 states
197
198 grammar parser grammar
199 symbol# 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