aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/examples/many.frt
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/examples/many.frt')
-rw-r--r--amforth-6.5/examples/many.frt13
1 files changed, 13 insertions, 0 deletions
diff --git a/amforth-6.5/examples/many.frt b/amforth-6.5/examples/many.frt
new file mode 100644
index 0000000..c5bfc49
--- /dev/null
+++ b/amforth-6.5/examples/many.frt
@@ -0,0 +1,13 @@
+\ Rick VanNorman, clf 15. Apr 1997
+
+: many key? if key drop exit then 0 >in ! ;
+
+\ use it like
+\ > 0
+\ > dup . 1+ many
+\ 0 1 2 3 4 5 6 .....
+\
+\ this repeats the current input line until a key
+\ is hit. The repeat can, of course, cause a total
+\ desaster
+\ \ No newline at end of file