2 ms·
What's the issue with nested compilers in Lox?
by chrisseaton 5y ago
What's the issue with nested compilers in Lox?
- n8ta 5y agoThe implementation recommended in the book involves allocating a new compiler struct for each function with a pointer to the enclosing compiler. I found this very awkward in rust. Additionally the nested compiler needs to share the lexer (which is lazy thus mutable).