4 ms·
The implementation recommended in the book involves allocating a new compiler struct for each function with a pointer to the enclosing compiler. I found this ve
by n8ta 5y ago
The 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).