-
A toy language implemented as a learning exercise and kinda code along for an amazing book CraftingInterpreters
-
It is a sweet spot between javascript/java/lua/ruby/python being dynamic and garbage collected and semantic features from all
-
It contains two interpreters:
- A Tree-walk interpreter implemented in Rust (named roxy)
- A Bytecode interpreter implemented in C (named coxy)
(Ah yes I know I should have given more thought while naming it)
- Rust:
From the root of the project run:
cargo run -- <filename>
- C:
From the bytecode-interpreter/
dir run:
make compile
./coxy <filename>
-
Wanna explore the language?
- Check the
examples/
dir
- Check the
- Language grammar can be found in
src/parser/parser.rs