Skip to content
Moss interpreter (experimental implementation)
Rust Other
  1. Rust 99.4%
  2. Other 0.6%
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc
lib
misc
mossc
src
test
.gitignore
Cargo.lock
Cargo.toml
LICENSE
README.md
home.htm
install-lib.sh
install.sh
make.sh
update.sh

README.md

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);
}
You can’t perform that action at this time.