diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2022-02-18 09:39:53 +0200 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2022-02-18 09:39:53 +0200 |
| commit | dc1ef25f1a7f8e36e93928e5b0288e203833e14a (patch) | |
| tree | b2baa429efd629e55bcd8455a5e46be198d2eba1 /samples/variables.slam | |
| parent | 7a6dc3758c361aa7685934a1896db9f23f1d74be (diff) | |
Clean up
Diffstat (limited to 'samples/variables.slam')
| -rw-r--r-- | samples/variables.slam | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/samples/variables.slam b/samples/variables.slam new file mode 100644 index 0000000..8902b04 --- /dev/null +++ b/samples/variables.slam @@ -0,0 +1,13 @@ +-- store foo = 10 +10 $foo ! + +-- load and print foo +$foo ? + +-- print 1 + value at foo +1 $foo @ + . + +-- define x * 2 = x + x +define *2 dup + ; + +666 *2 . |
