stackr-rs 0.1.14

A stack-based interpreter to be embedded in your application. Heavily inspired by Forth.
Documentation
1
2
3
4
5
6
7
8
9
use stackr_rs::*;

fn main() {
    let code = "1 1 +";
    let mut interpreter = Interpreter::new(());
    interpreter.evaluate(code, None).unwrap();

    println!("1 1 + ={}", interpreter.pop_number().unwrap());
}