loxcraft started off as yet another implementation of Crafting Interpreters, but I decided to take it up a notch and build:
syntax highlighting, via tree-sitter
an online playground, via WebAssembly
IDE integration, via Language Server Protocol
an REPL
really good error messages
Also, it’s really fast! Most implementations of Lox turn out to be significantly slower than the one in C, but this one comes really close. Suggestions for how to improve performance further would be highly appreciated!
loxcraft started off as yet another implementation of Crafting Interpreters, but I decided to take it up a notch and build:
Also, it’s really fast! Most implementations of Lox turn out to be significantly slower than the one in C, but this one comes really close. Suggestions for how to improve performance further would be highly appreciated!
Nicely done, @ajeetdsouza!
I’m currently working through the first implementation in the book (but in Go) and take this as a personal attack. You’re showing me up!
But seriously, this is really impressive! Nice work.
This is great. A modern and successful language is so much more than it used to be. Examples of how to create this additional tooling is very helpful.
I’ve been intending to work through Crafting Interpreters, and then add LSP support. I’m glad to have this for inspiration!