From 5582b2b66dbfa3f064810c3d30fd3b997e400cfe Mon Sep 17 00:00:00 2001 From: slava Date: Fri, 17 Nov 2006 07:11:18 +0000 Subject: [PATCH] Add a 'hello world' example for posterity --- examples/hello-world.factor | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 examples/hello-world.factor diff --git a/examples/hello-world.factor b/examples/hello-world.factor new file mode 100644 index 0000000000..fe27d890ad --- /dev/null +++ b/examples/hello-world.factor @@ -0,0 +1,10 @@ +! This is a bit more complex than the simplest hello world, +! which is: +! "Hello World" print +! Instead, we define a module, and a main entry hook; when you +! run the module in the listener with the following command, +! "examples/hello-world" run-module +! It prints the above message. + +PROVIDE: examples/hello-world ; +MAIN: examples/hello-world "Hello World" print ;