HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

scheme — MIT Scheme language interpreter and REPL (interactive shell). More information: <https://www.gnu.org

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandlanguageandclischemeinterpretermit

Problem

How to use the scheme command: MIT Scheme language interpreter and REPL (interactive shell). More information: <https://www.gnu.org/software/mit-scheme/documentation/stable/mit-scheme-user.html#Command_002dLine-Options>.

Solution

scheme — MIT Scheme language interpreter and REPL (interactive shell). More information: <https://www.gnu.org/software/mit-scheme/documentation/stable/mit-scheme-user.html#Command_002dLine-Options>.

Start a REPL (interactive shell):
scheme


Run a scheme program (with no REPL output):
scheme < {{script.scm}} --quiet


Load a scheme program into the REPL:
scheme --load {{script.scm}}


Load scheme expressions into the REPL:
scheme --eval "{{(define foo 'x)}}"


Open the REPL in quiet mode:
scheme --quiet

Code Snippets

Start a REPL (interactive shell)

scheme

Run a scheme program (with no REPL output)

scheme < {{script.scm}} --quiet

Load a scheme program into the REPL

scheme --load {{script.scm}}

Load scheme expressions into the REPL

scheme --eval "{{(define foo 'x)}}"

Open the REPL in quiet mode

scheme --quiet

Context

tldr-pages: common/scheme

Revisions (0)

No revisions yet.