Update "guile(1)" man page.
[bpt/guile.git] / doc / guile.1
CommitLineData
4cd27226
MV
1.\" Written by Robert Merkel (rgmerk@mira.net)
2.\" augmented by Rob Browning <rlb@cs.utexas.edu>
3.\" Process this file with
4.\" groff -man -Tascii foo.1
5.\"
1660414a 6.TH GUILE 1
4cd27226
MV
7.SH NAME
8guile \- a Scheme interpreter
9.SH SYNOPSIS
10.B guile [-q] [-ds] [--help] [--version] [--emacs] [--debug]
11.B [-l FILE] [-e FUNCTION] [\]
12.B [-c EXPR] [-s SCRIPT] [--]
13.SH DESCRIPTION
1660414a
LC
14GNU Guile is an interpreter for the Scheme programming language. It
15implements R5RS, providing additional features
4cd27226
MV
16necessary for real-world use. It is extremely simple to embed guile
17into a C program, calling C from Scheme and Scheme from C. Guile's
18design makes it very suitable for use as an "extension" or "glue"
19language, but it also works well as a stand-alone scheme development
20environment.
21
22The
23.B guile
24executable itself provides a stand-alone interpreter for scheme
25programs, for either interactive use or executing scripts.
26
27This manpage provides only brief instruction in invoking
28.B guile
29from the command line. Please consult the guile info documentation
30(type
31.B info guile
32at a command prompt) for more information. There is also a tutorial
33.B (info guile-tut)
34available.
35
36.SH OPTIONS
37.IP -l FILE
38Load scheme source code from file.
39.IP -e FUNCTION
40After reading script, apply FUNCTION to command-line arguments
41.IP -ds
42do -s SCRIPT at this point (note that this argument must be used in
43conjuction with -s)
44.IP --help
45Describe command line options and exit
46.IP --debug
47Start guile with debugging evaluator and backtraces enabled
48(useful for debugging guile scripts)
49.IP --version
50Display guile version and exit.
51.IP --emacs
52Enable emacs protocol for use from within emacs (experimental)
53.IP --
54Stop argument processing, start guile in interactive mode.
55.IP -c EXPR
56Stop argument processing, evaluate EXPR as a scheme expression.
57.IP -s SCRIPT-FILE
58Load Scheme source from SCRIPT-FILE and execute as a script.
59
60.SH ENVIRONMENT
61.\".TP \w'MANROFFSEQ\ \ 'u
62.TP
63.B GUILE_LOAD_PATH
64If
65.RB $ GUILE_LOAD_PATH
66is set, its value is used to agument the path to search for scheme
67files when loading. It should be a colon separated list of
68directories which will be prepended to the default %load-path.
69
70.SH FILES
71.I ~/.guile
72is a guile script that is executed before any other processing occurs.
73For example, the following .guile activates guile's readline
74interface:
75
76.RS 4
77(use-modules (ice-9 readline))
78.RS 0
79(activate-readline)
80
81.SH "SEE ALSO"
1660414a
LC
82The full documentation for guile is maintained as a Texinfo manual. If
83the info and guile programs are properly installed at your site, the
84command
85.IP
86.B info guile
87.PP
88should give you access to the complete manual.
4cd27226
MV
89
90http://www.schemers.org provides a general introduction to the
91Scheme language.
92
93.SH AUTHORS
94Robert Merkel <rgmerk@mira.net> wrote this manpage.
95Rob Browning <rlb@cs.utexas.edu> has added to it.
96
97.B guile
98is GNU software. Guile is originally based on Aubrey Jaffer's
99SCM interpreter, and is the work of many individuals.