Modern Compiler Design
Explore Modern Compiler Design by David Galles: 2 Hacker News mentions from 2 participants in 2007-02-22–2026-11-01. Read original excerpts, compare opinions and save this book.
Share on XFrom the conversation
Latest 2 source recordsA mention is not an endorsement. Labels are automatically classified by the source. Follow the original discussion to verify the context.
This record preserves its author, date and source link. Open HN to read the full context.
Read on Hacker News…earning there. Once you've done this, you can write a basic interpreter/compiler for languages with s-expression syntax . [The semantics can be anything you imagine] (2) Essentials of Programming Languages. This will teach you how many language features work (lazy evaluation, object systems, static type systems ..) (3) Lisp in Small Pieces - how to implement byte code compilers, macro systems, compilation to C, lots of good stuff here. (4) A book on lexing and parsing so you can give your language any syntax you want. I prefer Modern Compiler Design by Gries. If you understand the first three chapters you can write your own lex/yacc equivalents. (the book has a lot more to it than these chapters, but it is the best I've seen on lexing/parsing). (5) Now take a look at the source of your favorite language. ((Lua and the lcc compiler (it eve…
Read on Hacker News