retroforth/example/evaluate-string.retro
crc 9e03717deb normalize names for examples (with a couple of exceptions), closes #38
FossilOrigin-Name: 088675e452ed86a712563c8b2597fe4d47da59bdea0e40becdd1e028a84c47b0
2021-01-24 01:13:04 +00:00

15 lines
299 B
Forth

## s:(evaluate)
Show string being evaluated
~~~
:s:() (s-) nl '(_ s:prepend '_) s:append s:put nl ;
:s:(evaluate) (s-) dup s:() s:evaluate nl ;
~~~
```
:s:testing (s--) 'Testing_ s:prepend s:put nl ;
's:(evaluate) s:testing
'#2_#3_#136_dump-stack s:(evaluate)
'reset_dump-stack s:(evaluate)
```