[Home](https://johnbsmith.github.io/moss/home.htm)
| [Language](https://johnbsmith.github.io/moss/doc/moss/toc.htm)
| [Library](https://johnbsmith.github.io/moss/doc/library/toc.htm)
| [Examples](https://johnbsmith.github.io/moss/doc/examples/toc.htm)
| [Rust-Moss examples](doc/md/rust-moss-examples.md)
# 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](https://github.com/JohnBSmith/moss-c) implementation in C.
See [Moss Home](https://johnbsmith.github.io/moss/home.htm).
Example of calling Moss code from Rust:
```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);
}
```