Previous: , Up: Compiling to Wasm   [Contents][Index]


2.3 REPL commands

The (hoot repl) module provides some REPL meta commands to make it easy to compile Scheme programs and run them in Hoot’s Wasm interpreter.

REPL Command: hoot-compile exp [opts ...]

Compile exp and return a Wasm module.

opts may specify the keyword arguments to pass to the compile procedure (see Invoking the compiler).

REPL Command: hoot-compile-file file [opts ...]

Compile the source code in file and return a Wasm module.

opts may specify the keyword arguments to pass to the compile-file procedure (see Invoking the compiler).

REPL Command: hoot-run exp [opts ...]

Compile and run exp and return the results.

REPL Command: hoot-run-file file [opts ...]

Compile and run the source code in file and return the results.