This extends the "Build your own Interpreter" Challenge with functions, returns, classes, etc using Zig for Lox, a simple scripting language.
This implementation of Lox, follows the book Crafting Interpreters by Robert Nystrom, apart from tiny aesthetic tweaks.
Congratulations!
Challenge Complete!
Congratulations are in order. Only ~15% of users that attempt this challenge
end up completing all stages, and you're one of them!
Highlights:
- Recursive-descent parser
- Tokenization
- ASTs (Zig tagged unions really shine here)
- tree-walk interpreters and more.