summaryrefslogtreecommitdiff
path: root/examples/scripts/README
blob: 491007c277c2460eec4ddf8249a492ae3ee1aa09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
							       -*- text -*-

This directory includes examples which show how to write scripts using
Guile.

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:

  The simplest "Hello World!" program for Guile. Run it like this:

  $ guile -s simple-hello.scm

hello:

  An advanced version of the script above, with command line handling
  for the important options --help and --version.  Run it like this:

  ./hello

  or

  guile -s hello

fact:

  Command-line factorial calculator.  Run it like this:

  ./fact 5

  to calculate the factorial of 5.