LinuxCommandLibrary

scheme

Scheme programming language interpreter

TLDR

Start REPL

$ scheme
copy
Run file
$ scheme [file.scm]
copy
Evaluate expression
$ scheme -e "[(+ 1 2)]"
copy
Load file then REPL
$ scheme -l [file.scm]
copy
Quiet mode
$ scheme -q
copy

SYNOPSIS

scheme [-e expr] [-l file] [options] [file]

DESCRIPTION

scheme is an interpreter for the Scheme programming language, a minimalist dialect of Lisp emphasizing functional programming, lexical scoping, and first-class procedures. It provides both an interactive REPL for experimentation and the ability to run Scheme source files directly.
Scheme's design follows the R5RS and R7RS language standards, providing a small but powerful core with features like proper tail recursion, continuations, and hygienic macros. The interactive REPL allows evaluating expressions immediately, making it well-suited for learning, prototyping, and exploring algorithms.
The scheme command may refer to different implementations depending on the system, including MIT/GNU Scheme, Chez Scheme, or GNU Guile. Each implementation offers its own extensions beyond the standard, so behavior and available libraries may vary.

PARAMETERS

-e EXPR

Evaluate expression.
-l FILE
Load file.
-q
Quiet startup.
--help
Show help.
--version
Show version.

CAVEATS

Implementation varies. Name may differ (guile, mit-scheme). Portability concerns.

HISTORY

Scheme was designed by Guy Steele and Gerald Sussman in 1975. Various implementations provide the scheme command.

SEE ALSO

guile(1), racket(1), clisp(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community