From 67d25d837ac55f28a366c0a3b262e439a6e75fc3 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sat, 19 Aug 2017 12:15:28 +0200 Subject: Add AmForth --- amforth-6.5/examples/many.frt | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 amforth-6.5/examples/many.frt (limited to 'amforth-6.5/examples/many.frt') 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 -- cgit v1.2.3