RUN

Syntax

RUN list

Explanation

RUN runs its input as if it were typed in directly. RUN outputs whatever its list of instructions outputs.

Example

? TO CALCULATOR

> LOCAL "LIST

> TYPE [WHAT CALCULATION DO YOU WISH]

> MAKE "LIST READLIST

> IF EMPTY? :LIST THEN STOP

> (PR "RESULT "\= RUN :LIST)

> CALCULATOR

> END

? CALCULATOR

WHAT CALCULATION DO YOU WISH? 5 + 7

RESULT = 12

WHAT CALCULATION DO YOU WISH? 12 / 4

RESULT = 3

WHAT CALCULATION DO YOU WISH?