aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/lib/forth2012/search/order.frt
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/common/lib/forth2012/search/order.frt')
-rw-r--r--amforth-6.5/common/lib/forth2012/search/order.frt9
1 files changed, 9 insertions, 0 deletions
diff --git a/amforth-6.5/common/lib/forth2012/search/order.frt b/amforth-6.5/common/lib/forth2012/search/order.frt
new file mode 100644
index 0000000..b0c4057
--- /dev/null
+++ b/amforth-6.5/common/lib/forth2012/search/order.frt
@@ -0,0 +1,9 @@
+\ print the wids of the current word list and the search order
+
+\ #require get-order.frt
+
+: order ( -- )
+ get-current u. cr
+ get-order dup u.
+ 0 ?do u. space loop
+;