carta
six-script(1)

six-script1

Gambit scheme interpreter and compiler

Part of gsi(1).

Usage

gsi [-:arg, ...] [-f] [-v] [[-] [-e] [file]] ...

gsc [options] [files]

Overview

This manual page briefly documents the gsi and gsc commands.

The Gambit programming system is a full implementation of the Scheme language which conforms to the R4RS, R5RS, and IEEE Scheme standards. It consists of two main programs: gsi, the Gambit Scheme interpreter, and gsc, the Gambit Scheme compiler. The interpreter provides an interactive environment with a debugger, while the compiler can produce stand-alone executables or modules which can be linked or loaded at run time. Interpreted code and compiled code can be freely mixed. C modules can be linked with Scheme modules.

The interpreter is executed in interactive mode when no file or `-' or `-e' option is given on the command line. When at least one file or `-' or `-e' option is present the interpreter is executed in batch mode.

Entering ,q or (exit) at the interpreter's command prompt will exit the interpreter.

Entering ,? at the interpreter's command prompt will display a list of special commands.

In batch mode the command line arguments denote files to be loaded, REPL interactions to start (`-' option), and expressions to be evaluated (`-e' option). Note that the `-' and `-e' options can be interspersed with the files on the command line and can occur multiple times. The interpreter processes the command line arguments from left to right, loading files with the `load' procedure and evaluating expressions with the `eval' procedure in the global interaction environment. After this processing the interpreter exits.

gsc-cc-o.bat is a script called by gsc to generate object files during compilation. It takes its data from environment variables and is not intended for user interaction.

Options

A summary of options is included below. For a complete description, see the Info files.

-

Initiate a REPL at this point. (Continue by issuing a ,c command at the interpreter prompt)

-:

Comma separated list of run-time options

-e

Evaluate an expression.

-f

Skip initialization file.

-v

Show version of program.

History

  • Debian 13 (Trixie) to Debian 10 (Buster): the text shown here
  • Debian 9 (Stretch) to Debian 5.0 (Lenny)
  • Debian 4.0 (Etch)

Author

Gambit was written by Marc Feeley <[email protected]>.

Homepage: http://gambitscheme.org

From gambc 4.9.3-1.4 in Debian 13 (Trixie). Parsed by carta from the page's man source.