Added the new `examples' directory to the distribution.
[bpt/guile.git] / examples / scripts / README
CommitLineData
2de7ddb7
MG
1 -*- text -*-
2
3This directory includes examples which show how to write scripts using
4Guile.
5
6The descriptions below assume that you have a working copy of Guile
7installed and available with the standard installation prefix
8`/usr/local'.
9
10simple-hello.scm:
11
12 The simplest "Hello World!" program for Guile. Run it like this:
13
14 $ guile -s simple-hello.scm
15
16hello:
17
18 An advanced version of the script above, with command line handling
19 for the important options --help and --version. Run it like this:
20
21 ./hello
22
23 or
24
25 guile -s hello
26
27fact:
28
29 Command-line factorial calculator. Run it like this:
30
31 ./fact 5
32
33 to calculate the factorial of 5.