xref: /freebsd/contrib/byacc/test/btyacc/inherit0.output (revision dd41de95a84d979615a2ef11df6850622bf6184e)
1   0  $accept : declaration $end
2
3   1  declaration : class type namelist
4   2              | type locnamelist
5
6   3  class : GLOBAL
7   4        | LOCAL
8
9   5  type : REAL
10   6       | INTEGER
11
12   7  namelist : namelist NAME
13   8           | NAME
14
15   9  $$1 :
16
17  10  $$2 :
18
19  11  locnamelist : $$1 $$2 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 .  (3)
37
38	.  reduce 3
39
40
41state 2
42	class : LOCAL .  (4)
43
44	.  reduce 4
45
46
47state 3
48	type : REAL .  (5)
49
50	.  reduce 5
51
52
53state 4
54	type : INTEGER .  (6)
55
56	.  reduce 6
57
58
59state 5
60	$accept : declaration . $end  (0)
61
62	$end  accept
63
64
65state 6
66	declaration : class . type namelist  (1)
67
68	REAL  shift 3
69	INTEGER  shift 4
70	.  error
71
72	type  goto 8
73
74
75state 7
76	declaration : type . locnamelist  (2)
77	$$1 : .  (9)
78
79	.  reduce 9
80
81	locnamelist  goto 9
82	$$1  goto 10
83
84
85state 8
86	declaration : class type . namelist  (1)
87
88	NAME  shift 11
89	.  error
90
91	namelist  goto 12
92
93
94state 9
95	declaration : type locnamelist .  (2)
96
97	.  reduce 2
98
99
100state 10
101	locnamelist : $$1 . $$2 namelist  (11)
102	$$2 : .  (10)
103
104	.  reduce 10
105
106	$$2  goto 13
107
108
109state 11
110	namelist : NAME .  (8)
111
112	.  reduce 8
113
114
115state 12
116	declaration : class type namelist .  (1)
117	namelist : namelist . NAME  (7)
118
119	NAME  shift 14
120	$end  reduce 1
121
122
123state 13
124	locnamelist : $$1 $$2 . namelist  (11)
125
126	NAME  shift 11
127	.  error
128
129	namelist  goto 15
130
131
132state 14
133	namelist : namelist NAME .  (7)
134
135	.  reduce 7
136
137
138state 15
139	namelist : namelist . NAME  (7)
140	locnamelist : $$1 $$2 namelist .  (11)
141
142	NAME  shift 14
143	$end  reduce 11
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  class
161    10    265  type
162    11    266  namelist
163    12    267  locnamelist
164    13    268  $$1
165    14    269  $$2
166