refactor doall method.

This commit is contained in:
trans_soup 2023-11-01 14:20:36 +01:00
parent 417c8d07e0
commit c9168f1e15

View file

@ -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,