File tree Expand file tree Collapse file tree 3 files changed +42
-1
lines changed Expand file tree Collapse file tree 3 files changed +42
-1
lines changed Original file line number Diff line number Diff line change 1+ Page 1
2+ When press button_A Do show_image LED_image
3+ . . . . .
4+ . . . . .
5+ . . . . .
6+ . . . . .
7+ . . . . .
8+ LED_image
9+ . . . . .
10+ . . . . .
11+ . . . . .
12+ . . . . .
13+ . . . . .
14+
15+
16+ When press button_A Do play_sound happy
17+
18+ When press button_B Do show_image LED_image
19+ . . . . .
20+ . . . . .
21+ . . . . .
22+ . . . . .
23+ . . . . .
24+ LED_image
25+ . . . . .
26+ . . . . .
27+ . . . . .
28+ . . . . .
29+ . . . . .
30+
31+
32+ When press button_B Do play_sound sad
33+
34+ Page 2
35+
36+ Page 3
37+
38+ Page 4
39+
40+ Page 5
Original file line number Diff line number Diff line change @@ -297,6 +297,7 @@ namespace microcode {
297297 // to string
298298 const progAsString = this . progdef . toString ( )
299299 const progFromString = parse ( progAsString )
300+ console . log ( progFromString . toString ( ) )
300301 // const progAsBuf = progFromString.toBuffer()
301302 // // compare buffers
302303 // if (buf.length == progAsBuf.length) {
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ namespace microcode {
5454 currRule = undefined
5555 tok = tokens . shift ( )
5656 }
57- for ( ; tokens . length > 0 ; tok = tokens . shift ( ) ) {
57+ for ( ; tok !== undefined ; tok = tokens . shift ( ) ) {
5858 console . log ( `tok2 = ${ tok } ` )
5959 if ( ! tok ) continue
6060 if ( ! currRule ) {
You can’t perform that action at this time.
0 commit comments