Expand description
REPL command dispatcher - handles all : prefixed commands.
§Commands
| Command | Description |
|---|---|
:help | Print all available commands |
:stdlib | List all stdlib modules |
:stdlib <mod> | List all functions in a stdlib module |
:save <file> | Save all ValidInput lines to a file |
:load <file> | Print a file’s contents into the output |
:attach <file> | Lex, parse, and evaluate a file into the env |
:detach <file> | Remove a file from the attached list |
:exit | Exit the REPL |
Note: :detach removes the file from the tracked list but does not
undefine variables or functions already loaded into the evaluator environment.
Functions§
- handle_
command - Dispatches a
:commandstring, mutatingoutput,evaluator, andattachedas needed.