A Rust implementation of C-like language based on excellent Writing An Interpreter In Go book.
- C-like syntax
- Integer, boolean, string and array
- Variable bindings
- Let and Return statements
- If-Else conditionals
- Basic arithmetic for integer expressions
- First class and higher-order functions, closures
- Built-in utility functions
- HashMap
- TODO: Macros
Building the language from source requires a working rust toolchain installed
- Clone the source code:
git clone https://github.com/ashez2000/monkey-lang-rs
- Run with file or REPL mode
cargo run <filename>
cargo run