Book Review: “Crafting Interpreters” by Robert Nystrom
eli.thegreenplace.net
eli.thegreenplace.net
I like the author's sense of humour and the hand drawings.
I'm currently doing an implementation in V, https://vlang.io/
As this review says it can be challenging reimplementing it in another language but that is where the fun is. It can feel a bit boring just typing in the authors code into your IDE :(
> Second, because it's so large and packed already, the author left quite a few things out, particularly testing. There's precious little actual Lox code in the book, and no testing strategy. Testing interpreters well is relatively easy and very powerful, especially when implementing multiple ones for the same language. I do understand the space constraints, however.
It's worth mentioning that the author does have a repo containing the tests they used while creating the book, which can be ran against the state of each interpreters (including your own) at the end of each chapter, which is really cool:
https://github.com/munificent/craftinginterpreters#testing-y...