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