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