* Add ETAGS_ARGS decls so that more stuff gets tagged.
[bpt/guile.git] / doc / ref / guile.texi
CommitLineData
38a93523
NJ
1\input texinfo
2@c -*-texinfo-*-
3@c %**start of header
4@setfilename guile.info
5@settitle Guile Reference Manual
370babab 6@set guile
9401323e 7@set MANUAL_EDITION 1.1
38a93523
NJ
8@c %**end of header
9
2a946b44 10@c Notes
370babab 11@c
2a946b44
NJ
12@c We no longer use the category "primitive" to distinguish C-defined
13@c Scheme procedures from those defined in Scheme. Instead, the
14@c reference manual now includes a C declaration as well as a Scheme
15@c declaration for each procedure that is available in both Scheme and
16@c C.
370babab 17@c
2a946b44
NJ
18@c When adding a new reference entry to the Guile manual, please
19@c document it with @deffn using one of the following categories:
20@c
21@c {Scheme Procedure}
22@c {Scheme Syntax}
23@c {C Function}
24@c {C Macro}
25@c
26@c If the entry is for a new primitive, it should have both a @deffn
27@c {Scheme Procedure} line and a @deffnx {C Function} line; see the
28@c manual source for plenty of existing examples of this.
29@c
30@c For {C Function} entries where the return type and all parameter
31@c types are SCM, we omit the SCMs. This is easier to read and also
32@c gets round the problem that Texinfo doesn't allow a @deftypefnx
33@c inside a @deffn.
38a93523 34@c
370babab
NJ
35@c For a list of Guile primitives that are not yet incorporated into the
36@c reference manual, see the file `new-docstrings.texi', which holds all
37@c the docstrings snarfed from the libguile C sources for primitives
38@c that are not in the reference manual. If you have worked with some
39@c of these concepts, implemented them, or just happen to know what they
40@c do, please write up a little explanation -- it would be a big help.
2a946b44
NJ
41@c Alternatively, if you know of any reason why some of these should
42@c *not* go in the manual, please let the mailing list
43@c <guile-devel@gnu.org> know.
38a93523
NJ
44
45@c Define indices that are used in the Guile Scheme part of the
46@c reference manual to group stuff according to whether it is R5RS or a
47@c Guile extension.
5c4b24e1 48@defcodeindex rn
38a93523
NJ
49@defcodeindex ge
50
51@include version.texi
52
53@c @iftex
54@c @cropmarks
55@c @end iftex
56
57@dircategory The Algorithmic Language Scheme
58@direntry
59* Guile Reference: (guile). The Guile reference manual.
60@end direntry
61
62@setchapternewpage off
63
64@ifinfo
65Guile Reference Manual
66Copyright (C) 1996 Free Software Foundation @*
67Copyright (C) 1997 Free Software Foundation @*
68Copyright (C) 2000 Free Software Foundation @*
69Copyright (C) 2001 Free Software Foundation
70
71Permission is granted to make and distribute verbatim copies of
72this manual provided the copyright notice and this permission notice
73are preserved on all copies.
74
75@ignore
76Permission is granted to process this file through TeX and print the
77results, provided the printed document carries copying permission
78notice identical to this one except for the removal of this paragraph
79(this paragraph not being relevant to the printed manual).
80@end ignore
81
82Permission is granted to copy and distribute modified versions of this
83manual under the conditions for verbatim copying, provided that the entire
84resulting derived work is distributed under the terms of a permission
85notice identical to this one.
86
87Permission is granted to copy and distribute translations of this manual
88into another language, under the above conditions for modified versions,
89except that this permission notice may be stated in a translation approved
90by the Free Software Foundation.
91@end ifinfo
92
93@titlepage
94@sp 10
95@comment The title is printed in a large font.
96@title Guile Reference Manual
2a946b44 97@subtitle $Id: guile.texi,v 1.7 2001-12-01 15:53:04 ossau Exp $
38a93523 98@subtitle For use with Guile @value{VERSION}
b45898ca
NJ
99
100@c AUTHORS
101
102@c The Guile reference and tutorial manuals were written and edited
103@c largely by Mark Galassi and Jim Blandy. In particular, Jim wrote the
104@c original tutorial on Guile's data representation and the C API for
105@c accessing Guile objects.
106
107@c Significant portions were contributed by Gary Houston (contributions
108@c to posix system calls and networking, expect, I/O internals and
109@c extensions, slib installation, error handling) and Tim Pierce
110@c (sections on script interpreter triggers, alists, function tracing).
111
112@c Tom Lord contributed a great deal of material with early Guile
113@c snapshots; although most of this text has been rewritten, all of it
114@c was important, and some of the structure remains.
115
116@c Aubrey Jaffer wrote the SCM Scheme implementation and manual upon
117@c which the Guile program and manual are based. Some portions of the
118@c SCM and SLIB manuals have been included here verbatim.
119
120@c Since Guile 1.4, Neil Jerram has been maintaining and improving the
121@c reference manual. Among other contributions, he wrote the Basic
122@c Ideas chapter, developed the tools for keeping the manual in sync
123@c with snarfed libguile docstrings, and reorganized the structure so as
124@c to accommodate docstrings for all Guile's primitives.
125
126@c Martin Grabmueller has made substantial contributions throughout the
127@c reference manual in preparation for the Guile 1.6 release, including
128@c filling out a lot of the documentation of Scheme data types, control
129@c mechanisms and procedures. In addition, he wrote the documentation
130@c for Guile's SRFI modules and modules associated with the Guile REPL.
131
132@author Mark Galassi
133@author Cygnus Solution and Los Alamos National Laboratory
134@author @email{rosalia@@cygnus.com}
135@author
136@author Jim Blandy
137@author Free Software Foundation and MIT AI Lab
138@author @email{jimb@@red-bean.com}
139@author
140@author Gary Houston
141@author @email{ghouston@@arglist.com}
142@author
143@author Tim Pierce
144@author @email{twp@@skepsis.com}
145@author
146@author Neil Jerram
147@author @email{neil@@ossau.uklinux.net}
148@author
149@author Martin Grabmueller
150@author @email{mgrabmue@@cs.tu-berlin.de}
370babab 151
38a93523
NJ
152@c The following two commands start the copyright page.
153@page
154@vskip 0pt plus 1filll
155@vskip 0pt plus 1filll
156Copyright @copyright{} 1996 Free Software Foundation
157
158Copyright @copyright{} 1997 Free Software Foundation
159
160Copyright @copyright{} 2000 Free Software Foundation
161
162Permission is granted to make and distribute verbatim copies of
163this manual provided the copyright notice and this permission notice
164are preserved on all copies.
165
166Permission is granted to copy and distribute modified versions of this
167manual under the conditions for verbatim copying, provided that the entire
168resulting derived work is distributed under the terms of a permission
169notice identical to this one.
170
171Permission is granted to copy and distribute translations of this manual
172into another language, under the above conditions for modified versions,
173except that this permission notice may be stated in a translation approved
174by Free Software Foundation.
175@end titlepage
176
177@c @smallbook
178@finalout
179@headings double
180
181@c Where to find Guile examples.
182@set example-dir doc/examples
183
184@ifinfo
185@node Top, Guile License, (dir), (dir)
186@top The Guile Reference Manual
187
188This reference manual documents Guile, GNU's Ubiquitous Intelligent
189Language for Extensions. It describes how to use Guile in many useful
190and interesting ways.
191
9401323e
NJ
192This Info file contains edition @value{MANUAL_EDITION} of the reference
193manual, corresponding to Guile version @value{VERSION}.
38a93523
NJ
194@end ifinfo
195
196@menu
197Preface
198
199* Guile License:: Conditions for copying and using Guile.
200* Manual Layout:: How to read the rest of this manual.
370babab 201* Manual Conventions:: Conventional terminology.
38a93523
NJ
202
203Part I: Introduction to Guile
204
205* What is Guile?:: And what does it do?
206* Whirlwind Tour:: An introductory whirlwind tour.
9401323e 207* Obtaining and Installing Guile::
38a93523
NJ
208* Reporting Bugs:: Reporting bugs in Guile or this manual.
209
9401323e 210Part II: Programming with Guile
38a93523 211
9401323e
NJ
212* Programming Intro:: Intoduction to programming with Guile.
213* Programming Options:: Programming Options in Guile.
38a93523
NJ
214* Scheme Intro:: Introduction to Guile Scheme.
215* Basic Ideas:: Basic ideas in Scheme.
9401323e
NJ
216* Guile Scripting:: How to write Guile scripts.
217* Command Line Handling:: Command line options and arguments.
218* Libguile Intro:: Using Guile as an extension language.
219* Scheme Primitives:: Writing Scheme primitives in C.
220* Data Representation:: Data representation in Guile.
221* GH:: The deprecated GH interface.
222* Debugger User Interface::
223* Further Reading:: Where to find out more about Scheme programming.
224
225Part III: Guile API Reference
226
227* Reference Intro:: Introduction to the Guile API reference.
38a93523
NJ
228* Data Types:: Data types for generic use.
229* Procedures and Macros:: Procedures and macros.
230* Utility Functions:: General utility functions.
231* Binding Constructs:: Definitions and variable bindings.
232* Control Mechanisms:: Controlling the flow of program execution.
233* Input and Output:: Ports, reading and writing.
234* Read/Load/Eval:: Reading and evaluating Scheme code.
235* Memory Management:: Memory management and garbage collection.
236* Objects:: Low level object orientation support.
237* Modules:: Designing reusable code libraries.
238* Scheduling:: Threads, mutexes, asyncs and dynamic roots.
239* Options and Config:: Runtime options and configuration.
240* Translation:: Support for translating other languages.
241* Debugging:: Internal debugging interface.
242* Deprecated:: Features that are planned to disappear.
38a93523 243
9401323e 244Part IV: Guile Modules
38a93523
NJ
245
246* SLIB:: Using the SLIB Scheme library.
247* POSIX:: POSIX system calls and networking.
fc8529c7 248* SRFI Support:: Support for various SRFIs.
fc8529c7
MG
249* Readline Support:: Module for using the readline library.
250* Value History:: Maintaining a value history in the REPL.
c2537425
MG
251* Pretty Printing:: Nicely formatting Scheme objects for output.
252* Formatted Output:: The @code{format} procedure.
2a946b44 253* Rx Regexps:: The Rx regular expression library.
38a93523 254* Expect:: Controlling interactive programs with Guile.
a42b5e5b 255* The Scheme shell (scsh):: Using scsh interfaces in Guile.
38a93523
NJ
256
257Indices
258
259* Concept Index::
260* Procedure Index::
261* Variable Index::
262* Type Index::
255ea784
NJ
263* R5RS Index::
264* Guile Extensions Index::
38a93523
NJ
265
266@end menu
267
268@include preface.texi
269
38a93523
NJ
270@iftex
271@page
272@unnumbered{Part I: Introduction to Guile}
273@end iftex
274
275@include intro.texi
276
38a93523 277@page
9401323e
NJ
278@node Programming Intro
279@unnumbered Part II: Programming with Guile
280
281In this part of the manual, we aim to present a wide ranging picture of
282what it means to program using Guile, to provide guidance, practical
283guidelines and tips for @emph{how} to program in Guile, and to document
284the tools that are available to help you with your programming. For
285detailed reference information on the variables, functions etc. that
286make up Guile's application programming interface (API), please refer to
287Part III (@pxref{Reference Intro,,Part III: Programming with Guile}).
38a93523 288
9401323e
NJ
289We begin in the first chapter of this part by looking at the programming
290options available.
291
292@include program.texi
38a93523
NJ
293@include scheme-intro.texi
294@include scheme-ideas.texi
9401323e
NJ
295@include scripts.texi
296@include script-getopt.texi
297@include extend.texi
298@include scm.texi
299@include data-rep.texi
300@include gh.texi
301@include debugging.texi
302@include scheme-reading.texi
303
304@page
305@node Reference Intro
306@unnumbered Part III: Guile API Reference
307
38a93523
NJ
308@include scheme-data.texi
309@include scheme-procedures.texi
310@include scheme-utility.texi
311@include scheme-binding.texi
312@include scheme-control.texi
313@include scheme-io.texi
314@include scheme-evaluation.texi
315@include scheme-memory.texi
316@include scheme-modules.texi
317@include scheme-scheduling.texi
318@c object orientation support here
319@include scheme-options.texi
320@include scheme-translation.texi
321@include scheme-debug.texi
322@include deprecated.texi
38a93523 323
38a93523
NJ
324@iftex
325@page
9401323e 326@unnumbered{Part IV: Guile Modules}
38a93523
NJ
327@end iftex
328
329@include slib.texi
330@include posix.texi
fc8529c7 331@include srfi-modules.texi
fc8529c7 332@include repl-modules.texi
c2537425 333@include misc-modules.texi
38a93523
NJ
334@include expect.texi
335@include scsh.texi
38a93523 336
38a93523
NJ
337@iftex
338@page
339@unnumbered{Indices}
340@end iftex
341
342@include indices.texi
9401323e 343@include scheme-indices.texi
38a93523
NJ
344
345@contents
346
347@bye