8 releases
0.3.0 | Nov 11, 2021 |
---|---|
0.2.1 | Sep 24, 2021 |
0.2.0 | Jul 20, 2021 |
0.1.74 | Apr 30, 2021 |
#746 in Command-line interface
28 downloads per month
18KB
258 lines
repl_framework
An easy to use repl creation library
quickstart
use repl_framework::Repl;
fn main() -> std::io::Result<()>{
Repl::default().with_function("Hello", hello).run()
}
fn hello(_: &mut (), _: Vec<String>) {
println!("Hello World")
}
lib.rs
:
repl_framework a crate to create a simple toy repl
Examples
use repl_framework::Repl;
fn main() -> std::io::Result<()> {
Repl::default()
.with_function("", |data_store: &mut Vec<String>, data: Vec<String>| {
data_store.extend(data)
})
.run()
}