2018-10-30 09:04:59 -06:00
|
|
|
# scheme
|
|
|
|
|
2020-12-04 07:37:44 -05:00
|
|
|
> MIT Scheme language interpreter and REPL (interactive shell).
|
2019-05-23 11:56:50 +01:00
|
|
|
> More information: <https://www.gnu.org/software/mit-scheme>.
|
2018-10-30 09:04:59 -06:00
|
|
|
|
2021-09-12 16:03:27 +02:00
|
|
|
- Start a REPL (interactive shell):
|
2018-10-30 09:04:59 -06:00
|
|
|
|
|
|
|
`scheme`
|
|
|
|
|
|
|
|
- Run a scheme program (with no REPL output):
|
|
|
|
|
|
|
|
`scheme --quiet < {{script.scm}}`
|
|
|
|
|
|
|
|
- Load a scheme program into the REPL:
|
|
|
|
|
|
|
|
`scheme --load {{script.scm}}`
|
|
|
|
|
|
|
|
- Load scheme expressions into the REPL:
|
|
|
|
|
2020-10-04 19:33:38 +02:00
|
|
|
`scheme --eval "{{(define foo 'x)}}"`
|
2018-10-30 09:04:59 -06:00
|
|
|
|
|
|
|
- Open the REPL in quiet mode:
|
|
|
|
|
|
|
|
`scheme --quiet`
|