mirror of
https://github.com/russolsen/rforth
synced 2024-12-27 09:59:00 +01:00
18 lines
169 B
Markdown
18 lines
169 B
Markdown
russ forth
|
|
==========
|
|
|
|
A simple Forth interpreter in Ruby (1.9).
|
|
|
|
1 2 dup + +
|
|
.
|
|
5
|
|
|
|
3 2 1 + *
|
|
.
|
|
9
|
|
|
|
: sq dup * ;
|
|
|
|
2 sq
|
|
.
|
|
4
|