A interpreter written in Rust for Resolution YSWS
- Rust 100%
| src | ||
| .gitignore | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| example.cin | ||
| README.md | ||
| test.txt | ||
Cinnamon - a simple interpreter written in Rust
Cinnamon is a toy programming language that uses lalrpop and rust. It was built for Rust Resolution W4.
Download
Currently there is no binary release. But you can clone the repository and build it yourself using Cargo:
git clone https://git.hackclub.app/PrathamGhaywat/cinnamon.git
cd cinnamon
cargo build --release
You can then run the interpreter using:
./target/release/cinnamon path_to_your_file.cin
Alternatively you can add the folder containing the binary to your PATH variable for easier access.
Documentation
The documentation is in the example.cin file. It contains examples of all the features of the language. You can also refer to the source code for more details on the implementation.