3 ms·
I would also compare it with the Lox language: https://www.craftinginterpreters.com/the-lox-language.html https://www.craftinginterpreters.com/the-lox-language
by chubot 7y ago
I would also compare it with the Lox language:
https://www.craftinginterpreters.com/the-lox-language.html https://www.craftinginterpreters.com/the-lox-language.html
which has an AST interpreter in Java as well as a bytecode interpreter in C. And an entire educational book devoted to it, which was just finished! https://news.ycombinator.com/item?id=22788738 https://news.ycombinator.com/item?id=22788738
Lox is also pretty similar to JavaScript, although it has classes (not prototypes), which JS didn't get until later.
Also many other implementations: https://github.com/munificent/craftinginterpreters/wiki/Lox-implementations https://github.com/munificent/craftinginterpreters/wiki/Lox-...
- accidentalrebel 7y agoThe last chapter of the book you mentioned just got finished this week, I believe. Such a huge feat!