index
:
sloth
main
personnal forth dialect
kdx
about
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
stdlib
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
(limited to 'stdlib')
-rw-r--r--
stdlib
6
1 files changed, 6 insertions, 0 deletions
diff --git a/stdlib b/stdlib
new file mode 100644
index 0000000..d89547b
--- /dev/null
+++ b/
stdlib
@@ -0,0 +1,6 @@
+: dup 0 @ 0 ! 0 ! ;
+: drop 0 @ ;
+: swap 0 @ 1 @ 0 ! 1 ! ;
+: - neg + ;
+: not 1 swap - ;
+: = - not ;