aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/lib/modules-test.frt
blob: df45c7c3c555c06fcebcbfd99a5875cbfedad615 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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