blob: 83cb8671510280b19860a9dae0ef69f7f2a2bdb9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# slang
…a experimental Forth-like stack language implemented in D.
## Example
1 i $
§ incr dup @ 1 + swp $ ;
§ print @ . pop ;
§ withinBounds @ 10 < ;
§ loop i withinBounds if i print i incr loop then else ;
loop
The above _slang_ code to be entered in the repl prints the numbers from 1 to 9. The repl may be compiled and executed using `dub run` in the project directory.
|