]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/byacc/test/btyacc/inherit0.output
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / byacc / test / btyacc / inherit0.output
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 \f
21 state 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
35 state 1
36         class : GLOBAL .  (3)
37
38         .  reduce 3
39
40
41 state 2
42         class : LOCAL .  (4)
43
44         .  reduce 4
45
46
47 state 3
48         type : REAL .  (5)
49
50         .  reduce 5
51
52
53 state 4
54         type : INTEGER .  (6)
55
56         .  reduce 6
57
58
59 state 5
60         $accept : declaration . $end  (0)
61
62         $end  accept
63
64
65 state 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
75 state 7
76         declaration : type . locnamelist  (2)
77         $$1 : .  (9)
78
79         .  reduce 9
80
81         locnamelist  goto 9
82         $$1  goto 10
83
84
85 state 8
86         declaration : class type . namelist  (1)
87
88         NAME  shift 11
89         .  error
90
91         namelist  goto 12
92
93
94 state 9
95         declaration : type locnamelist .  (2)
96
97         .  reduce 2
98
99
100 state 10
101         locnamelist : $$1 . $$2 namelist  (11)
102         $$2 : .  (10)
103
104         .  reduce 10
105
106         $$2  goto 13
107
108
109 state 11
110         namelist : NAME .  (8)
111
112         .  reduce 8
113
114
115 state 12
116         declaration : class type namelist .  (1)
117         namelist : namelist . NAME  (7)
118
119         NAME  shift 14
120         $end  reduce 1
121
122
123 state 13
124         locnamelist : $$1 $$2 . namelist  (11)
125
126         NAME  shift 11
127         .  error
128
129         namelist  goto 15
130
131
132 state 14
133         namelist : namelist NAME .  (7)
134
135         .  reduce 7
136
137
138 state 15
139         namelist : namelist . NAME  (7)
140         locnamelist : $$1 $$2 namelist .  (11)
141
142         NAME  shift 14
143         $end  reduce 11
144
145
146 7 terminals, 8 nonterminals
147 12 grammar rules, 16 states
148
149 grammar parser grammar
150 symbol# 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