steel_repl/lib.rs
1#[macro_use]
2mod repl;
3mod highlight;
4
5pub use colored;
6pub use repl::Repl;
7
8/// Run the Steel repl with the given `Engine`. Exits on IO error or when the user requests to exit.
9pub fn run_repl(vm: steel::steel_vm::engine::Engine) -> std::io::Result<()> {
10 repl::repl_base(vm)
11}
12
13pub fn register_readline_module(vm: &mut steel::steel_vm::engine::Engine) {
14 repl::readline_module(vm)
15}