repl/
repl.rs

1
2
3
4
5
6
7
8
9
10
11
use stackr_rs::*;

fn main() {
    // TODO: figure out way to start repl in interpreter
    // let code = "repl \"example of repl\" print-stack";
    let mut interpreter = Interpreter::new(());
    // interpreter.evaluate(code, None).unwrap();

    // Alternative way to start repl in host
    interpreter.start_repl().unwrap();
}