-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathy.output
More file actions
195 lines (108 loc) · 2.96 KB
/
y.output
File metadata and controls
195 lines (108 loc) · 2.96 KB
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
Terminals unused in grammar
STATE
Grammar
0 $accept: commands $end
1 commands: %empty
2 | commands command
3 command: heat_switch
4 | target_set
5 | change_dir
6 | change_dir_prev
7 | default
8 heat_switch: TOKHEAT
9 target_set: TOKTARGET TOKTEMPERATURE NUMBER
10 change_dir: TOKCD WORD
11 change_dir_prev: TOKCD_HOME
12 default: WORD
Terminals, with rules where they appear
$end (0) 0
error (256)
TOKHEAT (258) 8
STATE (259)
TOKTARGET (260) 9
TOKTEMPERATURE (261) 9
TOKCD (262) 10
TOKCD_HOME (263) 11
NUMBER (264) 9
WORD (265) 10 12
Nonterminals, with rules where they appear
$accept (11)
on left: 0
commands (12)
on left: 1 2, on right: 0 2
command (13)
on left: 3 4 5 6 7, on right: 2
heat_switch (14)
on left: 8, on right: 3
target_set (15)
on left: 9, on right: 4
change_dir (16)
on left: 10, on right: 5
change_dir_prev (17)
on left: 11, on right: 6
default (18)
on left: 12, on right: 7
State 0
0 $accept: . commands $end
$default reduce using rule 1 (commands)
commands go to state 1
State 1
0 $accept: commands . $end
2 commands: commands . command
$end shift, and go to state 2
TOKHEAT shift, and go to state 3
TOKTARGET shift, and go to state 4
TOKCD shift, and go to state 5
TOKCD_HOME shift, and go to state 6
WORD shift, and go to state 7
command go to state 8
heat_switch go to state 9
target_set go to state 10
change_dir go to state 11
change_dir_prev go to state 12
default go to state 13
State 2
0 $accept: commands $end .
$default accept
State 3
8 heat_switch: TOKHEAT .
$default reduce using rule 8 (heat_switch)
State 4
9 target_set: TOKTARGET . TOKTEMPERATURE NUMBER
TOKTEMPERATURE shift, and go to state 14
State 5
10 change_dir: TOKCD . WORD
WORD shift, and go to state 15
State 6
11 change_dir_prev: TOKCD_HOME .
$default reduce using rule 11 (change_dir_prev)
State 7
12 default: WORD .
$default reduce using rule 12 (default)
State 8
2 commands: commands command .
$default reduce using rule 2 (commands)
State 9
3 command: heat_switch .
$default reduce using rule 3 (command)
State 10
4 command: target_set .
$default reduce using rule 4 (command)
State 11
5 command: change_dir .
$default reduce using rule 5 (command)
State 12
6 command: change_dir_prev .
$default reduce using rule 6 (command)
State 13
7 command: default .
$default reduce using rule 7 (command)
State 14
9 target_set: TOKTARGET TOKTEMPERATURE . NUMBER
NUMBER shift, and go to state 16
State 15
10 change_dir: TOKCD WORD .
$default reduce using rule 10 (change_dir)
State 16
9 target_set: TOKTARGET TOKTEMPERATURE NUMBER .
$default reduce using rule 9 (target_set)