Comment

Comment by recursivedoubts

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/

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton