Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JohnBSmith/moss
Moss interpreter (experimental implementation)
https://github.com/JohnBSmith/moss
Last synced: 3 months ago
JSON representation
Moss interpreter (experimental implementation)
- Host: GitHub
- URL: https://github.com/JohnBSmith/moss
- Owner: JohnBSmith
- License: cc0-1.0
- Created: 2017-10-10T12:46:07.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-03-24T09:20:32.000Z (over 3 years ago)
- Last Synced: 2024-07-11T21:41:22.251Z (4 months ago)
- Language: Rust
- Homepage: https://johnbsmith.github.io/moss/home.htm
- Size: 3.94 MB
- Stars: 27
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[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/lib/toc.htm)
| [Examples](https://johnbsmith.github.io/moss/doc/examples/toc.htm)
| [Rust-Moss examples](doc/md/rust-moss-examples.md)# Moss interpreter
Moss is a dynamic programming language. Its interpreter kernel
is written in Rust.Example of calling Moss code from Rust:
```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 = i.eval_cast(r#"
a.map(|x| 2*x)
"#);println!("{:?}",v);
}
```