-
Notifications
You must be signed in to change notification settings - Fork 0
Control Words
RUN: pop a list and execute its contents
TIMES: pop a number and a list and execute its contents that number of times
HALT: stop the execution loop (Synonyms: STOP)
INCLUDE: Executes the file specified at the next word
IFTRUE: pop a list then a boolean and execute its contents if the boolean is true
IFFALSE: pop a list then a boolean and execute its contents if the boolean is false
WHILE: pop a code list then a conditional list and repeatedly run the conditional list then the code so long as the conditional list leaves a true boolean on top of the stack
?BREAK: pop a boolean and skip to the end of the current method / list and set the break flag if it's true
?CONTINUE: pop a boolean and skip to the end of the current method / list if it's true
LOOP: pop a list and execute it repeatedly until the break flag is set