News for hackers. Stuff that matters.
Re:Teaching Compilers Backward by recursivedoubts on Tuesday February 23, 2021 @01:56PM (#26241250)
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/

Re:Teaching Compilers Backward by thomaslkjeldsen on Tuesday February 23, 2021 @03:07PM (#26242220)
Elaborating from 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.