-
Notifications
You must be signed in to change notification settings - Fork 0
/
y.output
162 lines (110 loc) · 2.17 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
state 0
$accept: .main $end
'(' shift 6
NUM shift 5
. error
expression goto 2
term goto 3
factor goto 4
main goto 1
state 1
$accept: main.$end
$end accept
. error
state 2
main: expression. (1)
expression: expression.'+' term
expression: expression.'-' term
'+' shift 7
'-' shift 8
. reduce 1 (src line 23)
state 3
expression: term. (4)
term: term.'*' factor
term: term.'/' factor
'*' shift 9
'/' shift 10
. reduce 4 (src line 32)
state 4
term: factor. (7)
. reduce 7 (src line 38)
state 5
factor: NUM. (8)
. reduce 8 (src line 40)
state 6
factor: '('.expression ')'
'(' shift 6
NUM shift 5
. error
expression goto 11
term goto 3
factor goto 4
state 7
expression: expression '+'.term
'(' shift 6
NUM shift 5
. error
term goto 12
factor goto 4
state 8
expression: expression '-'.term
'(' shift 6
NUM shift 5
. error
term goto 13
factor goto 4
state 9
term: term '*'.factor
'(' shift 6
NUM shift 5
. error
factor goto 14
state 10
term: term '/'.factor
'(' shift 6
NUM shift 5
. error
factor goto 15
state 11
expression: expression.'+' term
expression: expression.'-' term
factor: '(' expression.')'
'+' shift 7
'-' shift 8
')' shift 16
. error
state 12
expression: expression '+' term. (2)
term: term.'*' factor
term: term.'/' factor
'*' shift 9
'/' shift 10
. reduce 2 (src line 28)
state 13
expression: expression '-' term. (3)
term: term.'*' factor
term: term.'/' factor
'*' shift 9
'/' shift 10
. reduce 3 (src line 30)
state 14
term: term '*' factor. (5)
. reduce 5 (src line 34)
state 15
term: term '/' factor. (6)
. reduce 6 (src line 36)
state 16
factor: '(' expression ')'. (9)
. reduce 9 (src line 42)
10 terminals, 5 nonterminals
10 grammar rules, 17/8000 states
0 shift/reduce, 0 reduce/reduce conflicts reported
54 working sets used
memory: parser 12/120000
14 extra closures
23 shift entries, 1 exceptions
9 goto entries
4 entries saved by goto default
Optimizer space used: output 18/120000
18 table entries, 0 zero
maximum spread: 10, maximum offset: 10