/zlox

Primary LanguageZigMIT LicenseMIT

this is my Zig implementation of the treewalk intrepreter from Crafting Interpreters!

Admittedly code isn't the best it could be, but this is my first venture into Zig. Translating the Java into Zig has been quite painful. This has led to a couple of hacky implementations that made sense when I wrote them but I probably couldn't tell you what they do now. After a while I kinda got in the groove of it though and it aktually works!

Isn't that awesome?

So if you're looking at this for reference, maybe you shouldn't or do whatever; it's your life.

Note

I did not properly implement super (I failed), so the last 5 or so pages are not implemented right. I suspect it was me not really being careful with pointers. Maybe in the future I will rewrite this because truthfully that is what this needs. Bytecode time!