gsh/evaluator/runner
The runner module orchestrates the compilation and execution of the shell’s
dynamically generated code.
It acts as the coordinator between the external system (using shellout to
invoke the Gleam compiler) and the internal Erlang VM (using the runtime
FFI to dynamically load and execute the resulting .beam bytecode).
Values
pub fn build_project() -> Result(String, #(Int, String))
Triggers a full compilation of the host project using the Gleam CLI.
This is used when the user types the compile command in the REPL,
allowing them to rebuild their background application without leaving the shell.
pub fn run(
binding: option.Option(binding.Binding),
module_name: String,
) -> result.Evaluation
The core execution pipeline for evaluated code.