Commit | Line | Data |
---|---|---|
2de7ddb7 MG |
1 | -*- text -*- |
2 | ||
3 | This directory includes examples which show how to write scripts using | |
4 | Guile. | |
5 | ||
6 | The descriptions below assume that you have a working copy of Guile | |
7 | installed and available with the standard installation prefix | |
8 | `/usr/local'. | |
9 | ||
10 | simple-hello.scm: | |
11 | ||
12 | The simplest "Hello World!" program for Guile. Run it like this: | |
13 | ||
14 | $ guile -s simple-hello.scm | |
15 | ||
16 | hello: | |
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 | ||
27 | fact: | |
28 | ||
29 | Command-line factorial calculator. Run it like this: | |
30 | ||
31 | ./fact 5 | |
32 | ||
33 | to calculate the factorial of 5. |