Skip to main content

Module command_handler

Module command_handler 

Source
Expand description

REPL command dispatcher - handles all : prefixed commands.

§Commands

CommandDescription
:helpPrint all available commands
:stdlibList 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
:exitExit 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 :command string, mutating output, evaluator, and attached as needed.