aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/lib/forth2012/tools/name2compile.frt
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/common/lib/forth2012/tools/name2compile.frt')
-rw-r--r--amforth-6.5/common/lib/forth2012/tools/name2compile.frt9
1 files changed, 9 insertions, 0 deletions
diff --git a/amforth-6.5/common/lib/forth2012/tools/name2compile.frt b/amforth-6.5/common/lib/forth2012/tools/name2compile.frt
new file mode 100644
index 0000000..fa50d2b
--- /dev/null
+++ b/amforth-6.5/common/lib/forth2012/tools/name2compile.frt
@@ -0,0 +1,9 @@
+
+: name>compile ( nt -- xt1 xt2)
+ dup nfa>cfa swap name>flags immediate? 1 = if
+ ['] execute
+ else
+ ['] ,
+ then
+;
+