4 releases
0.0.4 | Mar 18, 2019 |
---|---|
0.0.3 | Apr 21, 2018 |
0.0.2 | Mar 13, 2018 |
0.0.1 | Nov 6, 2017 |
#459 in Programming languages
720KB
21K
SLoC
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);
}