aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/lib/modules-test.frt
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/common/lib/modules-test.frt')
-rw-r--r--amforth-6.5/common/lib/modules-test.frt15
1 files changed, 15 insertions, 0 deletions
diff --git a/amforth-6.5/common/lib/modules-test.frt b/amforth-6.5/common/lib/modules-test.frt
new file mode 100644
index 0000000..df45c7c
--- /dev/null
+++ b/amforth-6.5/common/lib/modules-test.frt
@@ -0,0 +1,15 @@
+\ Test case for modules - Example code from
+\ http://theforth.net/package/modules
+\ http://theforth.net/package/modules/current-view/glossary.md
+
+\ #require modules.frt
+
+module greet
+
+ : hello ." Hello " ;
+ : mods ." Modules " ;
+
+ : hi hello mods ;
+
+ export hi
+end-module