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