moss 0.0.3

Experimental Moss interpreter
Documentation

Home | Language | Library | Examples | Rust-Moss examples

Experimental Moss interpreter in Rust

Experimental interpreter for the dynamic programming language Moss. This implementation is written in Rust and more type safe than the first implementation in C.

See Moss Home.

Example of calling Moss code from Rust:

extern crate moss;

fn main(){
    let i = moss::Interpreter::new();
    let x = i.eval(r#"
        f = |n| 1 if n==0 else n*f(n-1)
        f(4)
    "#);
    println!("{}",x);
}