From f29fbb16a13af66fe88d524cb6faf0e87257f44d Mon Sep 17 00:00:00 2001 From: Lars Brinkhoff Date: Thu, 26 Aug 2021 10:22:10 +0200 Subject: [PATCH] Update CLU example; it will now make an executable file. --- src/hello/hello.clu | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/hello/hello.clu b/src/hello/hello.clu index 52b77120..c7dfeb38 100644 --- a/src/hello/hello.clu +++ b/src/hello/hello.clu @@ -1,5 +1,18 @@ % Hello world example for CLU. +% To make an executable: +% 1. Type :CWD HELLO to change the working directory. +% 2. Type :CLU HELLO to compile this file. +% 3. Type :CLU;CLUSYS to start the CLU runtime system. +% 4. At the runtime : prompt, type fload("hello") +% 5. Then type gc_pure_dump("hello; ts hello") + hello = proc() file$puts (file$tyo(), "Hello CLU-less world!\n") -end +end hello + +% The CLU runtime calls start_up. This procedure overrides the default. +start_up = proc() + hello() + quit_() +end start_up