Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 978 Bytes

README.md

File metadata and controls

33 lines (24 loc) · 978 Bytes

Lox interpreter in Zig

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.

Challenge Status

progress-banner

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.