mirror of
https://github.com/russolsen/rforth
synced 2024-12-26 09:58:27 +01:00
334 B
334 B
russ forth
A simple Forth interpreter in Ruby (1.9).
1 2 dup + +
.
5
3 2 1 + *
.
9
: sq dup * ;
2 sq
.
4
This is based on a sweet hack by Russ Olsen presented to me in a GoodReads comment.