guile.1 2.9 KB

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