RosettaCodeData/Task/Runtime-evaluation-In-an-environment/Forth/runtime-evaluation-in-an-environment-1.fth
2023-07-01 13:44:08 -04:00

7 lines
141 B
Forth

: f-" ( a b snippet" -- )
[char] " parse ( code len )
2dup 2>r evaluate
swap 2r> evaluate
- . ;
2 3 f-" dup *" \ 5 (3*3 - 2*2)