Complete implementation of interpreter in Go

Hi!
I’ve noticed that interpreter challenge follows book Crafting Interpreters. I actually read this great book and implemented interpreter accordingly about couple of months ago with all additional challenges. You can see the code here in case you are interested GitHub - Babihac/lox-lang. It was my first project in Go, so there might be some funny solutions for experienced Go devs, but I generally followed the book, so it should be quite readable :sweat_smile:

3 Likes

Nice job, thanks for sharing!

1 Like

Nice work! I also completed the CodeCrafters challenge in Rust, and now I’m continuing on through the rest of the book, also with all of the additional challenges. Because it’s in Rust, it’s not possible to rest on the garbage collector or other dynamic features of Java that the book’s implementation relies on. So, it’s proving to be an interesting challenge. Sounds like it was a good learning experience for you in Go.

3 Likes