rtforth 0.6.8

Forth implemented in Rust for realtime application
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
extern crate rtforth;
mod vm;

use rtforth::core::Core;
use vm::VM;

// Evaluate "1 ."
fn main() {
    let vm = &mut VM::new(100);
    vm.set_source("1 . flush-output");
    vm.evaluate_input();
    match vm.last_error() {
        Some(e) => println!("{:?}", e),
        None => {}
    }
}