summaryrefslogtreecommitdiff
path: root/examples/scripts
diff options
context:
space:
mode:
authorMartin Grabmüller <mgrabmue@cs.tu-berlin.de>2001-06-14 20:36:06 +0000
committerMartin Grabmüller <mgrabmue@cs.tu-berlin.de>2001-06-14 20:36:06 +0000
commit673509f84f8b0fe3e5593e5473c844ce97c6075b (patch)
tree38efe18ce8e574d0b9fcbe128520e0912b9a1ce6 /examples/scripts
parent4927dd283b1cefa4a0971081023e8d714ca97438 (diff)
downloadguile-673509f84f8b0fe3e5593e5473c844ce97c6075b.tar.gz
* scripts/README, scripts/hello.scm, safe/untrusted.scm,
safe/evil.scm, safe/README, modules/README, modules/main, modules/module-0.scm, modules/module-1.scm, modules/module-2.scm: Minor cleanup. * README: Added intro stuff, restructured a bit. * box-dynamic/README, box-module/README, box/README: Cleanup and restructuring. * box-dynamic-module/box-mixed.scm: New file, demonstrating usage of extension library functionality, but without exporting procedures from the library. Thanks to Thomas Wawrzinek for the idea and example code! * box-dynamic-module/box-module.scm: Add comments, export make-box, box-ref, box-set!. * box-dynamic-module/README: Integrate new module (box-mixed), restructure and cleanup a bit.
Diffstat (limited to 'examples/scripts')
-rw-r--r--examples/scripts/README13
-rwxr-xr-xexamples/scripts/fact1
-rwxr-xr-xexamples/scripts/hello1
-rw-r--r--examples/scripts/simple-hello.scm2
4 files changed, 11 insertions, 6 deletions
diff --git a/examples/scripts/README b/examples/scripts/README
index 491007c27..f3e965b5a 100644
--- a/examples/scripts/README
+++ b/examples/scripts/README
@@ -1,4 +1,6 @@
- -*- text -*-
+ -*- outline -*-
+
+* Overview
This directory includes examples which show how to write scripts using
Guile.
@@ -7,13 +9,16 @@ The descriptions below assume that you have a working copy of Guile
installed and available with the standard installation prefix
`/usr/local'.
-simple-hello.scm:
+* Included Examples
+
+
+** simple-hello.scm
The simplest "Hello World!" program for Guile. Run it like this:
$ guile -s simple-hello.scm
-hello:
+** hello
An advanced version of the script above, with command line handling
for the important options --help and --version. Run it like this:
@@ -24,7 +29,7 @@ hello:
guile -s hello
-fact:
+** fact
Command-line factorial calculator. Run it like this:
diff --git a/examples/scripts/fact b/examples/scripts/fact
index 90eecd7c2..05bcc9ffe 100755
--- a/examples/scripts/fact
+++ b/examples/scripts/fact
@@ -67,4 +67,3 @@
;; Local variables:
;; mode: scheme
;; End:
-
diff --git a/examples/scripts/hello b/examples/scripts/hello
index 4108db400..afeb64781 100755
--- a/examples/scripts/hello
+++ b/examples/scripts/hello
@@ -55,4 +55,3 @@
;; Local variables:
;; mode: scheme
;; End:
-
diff --git a/examples/scripts/simple-hello.scm b/examples/scripts/simple-hello.scm
index 713a1aee4..b46bc36ff 100644
--- a/examples/scripts/simple-hello.scm
+++ b/examples/scripts/simple-hello.scm
@@ -12,3 +12,5 @@
(display "Hello, World!")
(newline)
+
+;;; End of file.