retroforth/example/EvaluateString.retro
crc 848ba7303b use .retro instead of .forth in examples
FossilOrigin-Name: b5feea667d30aac255d1cfca61fed355d438d2ce6021677f1e53af6302b15eee
2019-08-20 18:46:40 +00:00

15 lines
299 B
Text

## 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)
```