xref: /freebsd/contrib/byacc/test/btyacc/err_inherit4.output (revision 39ee7a7a6bdd1557b1c3532abf60d139798ac88b)
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  namelist : namelist NAME
20  11           | NAME
21
22  12  locnamelist : namelist
23
24state 0
25	$accept : . declaration $end  (0)
26
27	GLOBAL  shift 1
28	LOCAL  shift 2
29	REAL  shift 3
30	INTEGER  shift 4
31	.  error
32
33	declaration  goto 5
34	class  goto 6
35	type  goto 7
36
37
38state 1
39	class : GLOBAL .  (6)
40
41	.  reduce 6
42
43
44state 2
45	class : LOCAL .  (7)
46
47	.  reduce 7
48
49
50state 3
51	type : REAL .  (8)
52
53	.  reduce 8
54
55
56state 4
57	type : INTEGER .  (9)
58
59	.  reduce 9
60
61
62state 5
63	$accept : declaration . $end  (0)
64
65	$end  accept
66
67
68state 6
69	declaration : class . type $$1 $$2 namelist  (3)
70
71	REAL  shift 3
72	INTEGER  shift 4
73	.  error
74
75	type  goto 8
76
77
78state 7
79	declaration : type . $$3 locnamelist  (5)
80	$$3 : .  (4)
81
82	.  reduce 4
83
84	$$3  goto 9
85
86
87state 8
88	declaration : class type . $$1 $$2 namelist  (3)
89	$$1 : .  (1)
90
91	.  reduce 1
92
93	$$1  goto 10
94
95
96state 9
97	declaration : type $$3 . locnamelist  (5)
98
99	NAME  shift 11
100	.  error
101
102	namelist  goto 12
103	locnamelist  goto 13
104
105
106state 10
107	declaration : class type $$1 . $$2 namelist  (3)
108	$$2 : .  (2)
109
110	.  reduce 2
111
112	$$2  goto 14
113
114
115state 11
116	namelist : NAME .  (11)
117
118	.  reduce 11
119
120
121state 12
122	namelist : namelist . NAME  (10)
123	locnamelist : namelist .  (12)
124
125	NAME  shift 15
126	$end  reduce 12
127
128
129state 13
130	declaration : type $$3 locnamelist .  (5)
131
132	.  reduce 5
133
134
135state 14
136	declaration : class type $$1 $$2 . namelist  (3)
137
138	NAME  shift 11
139	.  error
140
141	namelist  goto 16
142
143
144state 15
145	namelist : namelist NAME .  (10)
146
147	.  reduce 10
148
149
150state 16
151	declaration : class type $$1 $$2 namelist .  (3)
152	namelist : namelist . NAME  (10)
153
154	NAME  shift 15
155	$end  reduce 3
156
157
1587 terminals, 9 nonterminals
15913 grammar rules, 17 states
160
161grammar parser grammar
162symbol# value# symbol
163     0      0  $end
164     1    256  error
165     2    257  GLOBAL
166     3    258  LOCAL
167     4    259  REAL
168     5    260  INTEGER
169     6    261  NAME
170     7    262  $accept
171     8    263  declaration
172     9    264  namelist
173    10    265  locnamelist
174    11    266  class
175    12    267  type
176    13    268  $$1
177    14    269  $$2
178    15    270  $$3
179