repl_framework 0.3.0

A crate to easily create simple repls
Documentation
1
2
3
4
5
6
7
8
use repl_framework::Repl;
fn main() -> std::io::Result<()> {
    Repl::default()
        .with_parser(|f| f.split('.').map(|f| f.to_owned()).collect())
        .with_prompt("print:> ")
        .with_function("", |_: &mut (), args| println!("{}", args.join("/")))
        .run()
}