Skip to main content

sim_lib_repl/
lib.rs

1//! Loadable command-line REPL library for SIM.
2//!
3//! The crate exports `cli/main/repl` as a kernel `Function` and exposes
4//! [`eval_line`] for in-process tests of the read-eval-print core. The eval
5//! stack stays outside this crate: the context must already contain the selected
6//! codec, number domains, and runtime functions.
7
8#![forbid(unsafe_code)]
9#![deny(missing_docs)]
10
11mod entrypoint;
12mod eval;
13
14pub use entrypoint::{ReplLib, repl_entrypoint_symbol};
15pub use eval::{eval_line, run_repl_lines};