logoalt Hacker News

jandresetoday at 1:00 AM1 replyview on HN

Traditionally you would start with the Dragon Book[1]. Another starting point is reading the documentation for Yacc (aka Bison) and Lex.

[1] https://en.wikipedia.org/wiki/Compilers:_Principles,_Techniq...


Replies

compiler-guytoday at 1:33 AM

The dragon book is a classic, and was a terrific resource thirty and forty years ago. Today there are many far better resources. Several listed adjacent to this one.

It’s focused on theory and very heavy on parsing. All of that is fine, but not especially useful for the hobbies.