aboutsummaryrefslogtreecommitdiffstats
path: root/tests/define-mult.forth
diff options
context:
space:
mode:
Diffstat (limited to 'tests/define-mult.forth')
-rw-r--r--tests/define-mult.forth6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/define-mult.forth b/tests/define-mult.forth
new file mode 100644
index 0000000..5b6f798
--- /dev/null
+++ b/tests/define-mult.forth
@@ -0,0 +1,6 @@
+INPUT
+: multrec over if rot swap over + rot 1 - swap multrec then ;
+: mult 0 multrec ;
+6 8 mult .
+OUTPUT
+48