moss

Crates.iomoss
lib.rsmoss
version0.0.4
sourcesrc
created_at2017-11-06 15:48:01.523951
updated_at2019-03-18 10:36:55.625665
descriptionExperimental Moss interpreter
homepagehttps://johnbsmith.github.io/moss/home.htm
repositoryhttps://github.com/JohnBSmith/moss
max_upload_size
id38359
size1,563,047
Finn (JohnBSmith)

documentation

README

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

Moss interpreter

Moss is a dynamic programming language. Its interpreter kernel is written in Rust.

Example of calling Moss code from Rust:

use moss::object::Object;

fn main(){
    let i = moss::Interpreter::new();
    i.rte.set("a",Object::from(vec![1,2,3,4]));

    let v: Vec<i32> = i.eval_cast(r#"
        a.map(|x| 2*x)
    "#);

    println!("{:?}",v);
}
Commit count: 376

cargo fmt