refactor doall
method.
This commit is contained in:
parent
417c8d07e0
commit
c9168f1e15
9
main.io
9
main.io
|
@ -38,9 +38,14 @@ read := method(
|
|||
print_stack
|
||||
)
|
||||
|
||||
action_queue := List clone
|
||||
|
||||
doall := method(line,
|
||||
actions := line splitNoEmpties
|
||||
actions foreach(v, doword(v))
|
||||
action_queue = line splitNoEmpties
|
||||
while(action_queue size > 0,
|
||||
action := action_queue removeAt(0)
|
||||
doword(action)
|
||||
)
|
||||
)
|
||||
|
||||
doword := method(word,
|
||||
|
|
Loading…
Reference in a new issue