logoalt Hacker News

imwallytoday at 12:44 AM3 repliesview on HN

Anyone know a good resource for getting started writing a compiler? I'm not trying to write a new LLVM, but being a "software engineer" writing web-based APIs for a living is leaving me wanting more.


Replies

jandresetoday at 1:00 AM

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...

show 1 reply
prydttoday at 1:01 AM

I would highly recommend Wirth's Compiler Construction. Great, short book with a lot to say.