2 ms·
"The Unix Programming Environment" by Kernighan and Pike, in Chapter 8, builds a compiler for a four function calculator using yacc, to which they then add vari
by thyrsus 10y ago
"The Unix Programming Environment" by Kernighan and Pike, in Chapter 8, builds a compiler for a four function calculator using yacc, to which they then add variables, flow control, and functions. Pretty amazing in a breezy <60 pages. Not familiar with C? They introduce the subset they use (and more) in chapters 6 and 7.
Anything in the book you don't already know is also likely to be immediately applicable.
Oddly, Amazon doesn't provide the table of contents, but Barnes and Noble does: http://www.barnesandnoble.com/w/books/1113183162 http://www.barnesandnoble.com/w/books/1113183162