Skip to content

Interpreter for the Lox programming language in Zig, that "closely" follows the book Crafting Interpreters by Robert Nystrom.

Notifications You must be signed in to change notification settings

lloydlobo/lox-interpreter

Repository files navigation

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.

About

Interpreter for the Lox programming language in Zig, that "closely" follows the book Crafting Interpreters by Robert Nystrom.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published