4 ms·
I was so excited for this, then I realized it uses C (which I'm not familiar with).
by endorphine 5y ago
I was so excited for this, then I realized it uses C (which I'm not familiar with).
- wulfmann 5y agoThe first implementation is in java and the second is in c. Even if you don’t know C you should give this book a shot!
- marai2 5y agoThe book has two interpreters. The first one is in Java. The second one uses C. If you're familiar with Java then it makes for a great learning experience to contrast the Java version with the C version. (I think it's worth it to learn just enough C to be able to go through this second version. It makes for an awesome learning experience!)
- munificent 5y agoThe first half of the book uses Java, which you might be more familiar with. The C it uses is fairly vanilla. You shouldn't have to be a C expert to understand it. Also, all of the code in the book has been ported to a large number of languages: https://github.com/munificent/craftinginterpreters/wiki/Lox-Implementations https://github.com/munificent/craftinginterpreters/wiki/Lox-...
- stevekemp 5y agoThe golang based https://interpreterbook.com/ https://interpreterbook.com/ project might be interesting to you instead, then?
- mamcx 5y agoI hate, HAAAAAAATEEEE, C. But his C is so clean. Is readable as far as is possible, imho. Plus, exist some many implementations of this in as languages are, so you can go along (https://github.com/search?q=crafting+interpreters https://github.com/search?q=crafting+interpreters or using https://github.com/search?q=lox+interpreter https://github.com/search?q=lox+interpreter).