-
Notifications
You must be signed in to change notification settings - Fork 2
/
y.output
210 lines (143 loc) · 2.58 KB
/
y.output
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
state 0
$accept: .top $end
'+' shift 4
'-' shift 5
'(' shift 9
NODE shift 8
. error
expr goto 2
expr1 goto 3
expr2 goto 6
expr3 goto 7
top goto 1
state 1
$accept: top.$end
$end accept
. error
state 2
top: expr. (1)
. reduce 1 (src line 42)
state 3
expr: expr1. (2)
expr1: expr1.'+' expr2
expr1: expr1.'-' expr2
'+' shift 10
'-' shift 11
. reduce 2 (src line 54)
state 4
expr: '+'.expr
'+' shift 4
'-' shift 5
'(' shift 9
NODE shift 8
. error
expr goto 12
expr1 goto 3
expr2 goto 6
expr3 goto 7
state 5
expr: '-'.expr
'+' shift 4
'-' shift 5
'(' shift 9
NODE shift 8
. error
expr goto 13
expr1 goto 3
expr2 goto 6
expr3 goto 7
state 6
expr1: expr2. (5)
expr2: expr2.'*' expr3
expr2: expr2.'/' expr3
'*' shift 14
'/' shift 15
. reduce 5 (src line 65)
state 7
expr2: expr3. (8)
. reduce 8 (src line 76)
state 8
expr3: NODE. (11)
. reduce 11 (src line 87)
state 9
expr3: '('.expr ')'
'+' shift 4
'-' shift 5
'(' shift 9
NODE shift 8
. error
expr goto 16
expr1 goto 3
expr2 goto 6
expr3 goto 7
state 10
expr1: expr1 '+'.expr2
'(' shift 9
NODE shift 8
. error
expr2 goto 17
expr3 goto 7
state 11
expr1: expr1 '-'.expr2
'(' shift 9
NODE shift 8
. error
expr2 goto 18
expr3 goto 7
state 12
expr: '+' expr. (3)
. reduce 3 (src line 56)
state 13
expr: '-' expr. (4)
. reduce 4 (src line 60)
state 14
expr2: expr2 '*'.expr3
'(' shift 9
NODE shift 8
. error
expr3 goto 19
state 15
expr2: expr2 '/'.expr3
'(' shift 9
NODE shift 8
. error
expr3 goto 20
state 16
expr3: '(' expr.')'
')' shift 21
. error
state 17
expr1: expr1 '+' expr2. (6)
expr2: expr2.'*' expr3
expr2: expr2.'/' expr3
'*' shift 14
'/' shift 15
. reduce 6 (src line 67)
state 18
expr1: expr1 '-' expr2. (7)
expr2: expr2.'*' expr3
expr2: expr2.'/' expr3
'*' shift 14
'/' shift 15
. reduce 7 (src line 71)
state 19
expr2: expr2 '*' expr3. (9)
. reduce 9 (src line 78)
state 20
expr2: expr2 '/' expr3. (10)
. reduce 10 (src line 82)
state 21
expr3: '(' expr ')'. (12)
. reduce 12 (src line 89)
11 terminals, 6 nonterminals
13 grammar rules, 22/8000 states
0 shift/reduce, 0 reduce/reduce conflicts reported
55 working sets used
memory: parser 22/120000
19 extra closures
33 shift entries, 1 exceptions
12 goto entries
11 entries saved by goto default
Optimizer space used: output 23/120000
23 table entries, 0 zero
maximum spread: 11, maximum offset: 15