Skip to content

Commit 00b4c26

Browse files
committed
Learn about 'for' loops.
1 parent 6ec1b03 commit 00b4c26

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/pimscript.coffee

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,11 @@ walk = (ast) ->
149149
ast[1] = walk ast[1]
150150
ast[2] = walk ast[2]
151151
ast[3] = walk ast[3]
152+
else if type is 'for'
153+
ast[1] = walk ast[1]
154+
ast[2] = walk ast[2]
155+
ast[3] = walk ast[3]
156+
ast[4] = walk ast[4]
152157
else if type is 'while'
153158
ast[2] = walk ast[2]
154159
if ast[1][0] is 'assign'

0 commit comments

Comments
 (0)