skint − cheap and fast R7RS Scheme interpreter
skint [OPTION]... [FILE] [ARG]...
If no FILE is given, an interactive Read-Eval-Print loop is started.
skint is a small, self-contained interpreter for the R7RS-small Scheme language. All standard libraries are built-in; more than 100 SRFIs can be loaded from the optional external library tree.
When FILE is supplied it is executed as a Scheme script (SRFI-22 semantics) after which skint exits.
−v, −−verbose
Increase output verbosity.
−q, −−quiet
Suppress non-essential messages.
−A, −−append−libdir=DIR
Append DIR to the library search path.
−I, −−prepend−libdir=DIR
Prepend DIR to the library search path.
−D, −−define−feature=NAME
Add NAME to the (features) list.
−U, −−undef−feature=NAME
Remove NAME from the (features) list.
−e, −−eval=SEXP
Evaluate and print SEXP, then continue.
−l, −−load=FILE
Load FILE and continue.
−s, −−script=FILE
Run FILE as a script (SRFI-22).
−p, −−program=FILE
Run FILE as a program (non-script mode).
−V, −−version
Show version (in SRFI 176 format) and exit.
−h, −−help
Show help and exit.
|
−− |
Ends option processing; remaining arguments are passed to the script. |
SKINT_LIBDIRS
Colon-separated list of directories searched for ‘.sld‘ libraries. If unset the default is ./:lib/:/usr/share/skint/lib/
/usr/share/skint/lib/
External library tree (‘.sld‘ modules) installed by make libinstall.
Interactive REPL:
skint
Interactive REPL with command line editing:
rlwrap skint
Run a script:
skint -s hello.scm arg1 arg2
Evaluate an expression:
skint -e ’(display (+ 1 2 3)) (newline)’
Load a file then enter REPL:
skint -l init.scm
|
0 |
successful execution |
|||
|
1 |
syntax or runtime error |
|||
|
2 |
command-line usage error |
Full README: https://github.com/false-schemers/skint/README.md R7RS-small: https://small.r7rs.org/
SKINT contributors (https://github.com/false-schemers/skint).