3 ms·
I prefer the traditional lexer -> parser -> optimization -> code generator path. If I were going to change anything about teaching compilers, it would be to te
by recursivedoubts 6y ago
I prefer the traditional lexer -> parser -> optimization -> code generator path.
If I were going to change anything about teaching compilers, it would be to teach recursive descent, which makes the recursive nature of grammars a lot more obvious than parser generator approaches do.
This is a great book/website a contributor to Dart, which explains the algorithm:
https://craftinginterpreters.com/ https://craftinginterpreters.com/
- thomaslkjeldsen 6y agoElaborating from https://en.wikipedia.org/wiki/Dart_(programming_language) https://en.wikipedia.org/wiki/Dart_(programming_language) > Dart was unveiled at the GOTO conference in Aarhus, Denmark, October 10–12, 2011. The project was founded by Lars Bak and Kasper Lund.