Wednesday, April 28, 2010

Build a compiler series

A great 15 part series here. Definitely worth bookmarking.

The approach taken is an interesting one. Ruthlessly eliminate features. Relentlessly punt to user. Just focus on building a working, complete - and functionally correct - baseline. By functionally correct, I mean it should correctly - and in all cases completely - raise the red flag whenever it encounters anything illegal according the syntax or semantics.

Perhaps it deserves to be given a name. How about "The Crenshaw approach"?

No comments: