aboutsummaryrefslogtreecommitdiffstats
path: root/core.fth
diff options
context:
space:
mode:
Diffstat (limited to 'core.fth')
-rw-r--r--core.fth15
1 files changed, 15 insertions, 0 deletions
diff --git a/core.fth b/core.fth
new file mode 100644
index 0000000..ab53923
--- /dev/null
+++ b/core.fth
@@ -0,0 +1,15 @@
+( : variable create 0 , ; )
+( : create here const ; )
+
+: . 0 sys ;
+
+: over 1 pick ;
+: -rot rot rot ;
+: nip swap drop ;
+: tuck swap over ;
+
+: 1+ 1 + ;
+: 1- 1 - ;
+
+: 0= 0 = ;
+: >= < 0= ;