custom_parser/
custom_parser.rs1use repl_framework::Repl;
2fn main() -> std::io::Result<()> {
3 Repl::default()
4 .with_parser(|f| f.split('.').map(|f| f.to_owned()).collect())
5 .with_prompt("print:> ")
6 .with_function("", |_: &mut (), args| println!("{}", args.join("/")))
7 .run()
8}