(To follow my compiler related posts, either subscribe to my main RSS feed, or the compiler specific one)
Back in March 2008 I started publishing a series on how to write a compiler in Ruby, bottom up, that is, starting with the code generator and working my way up instead of the more traditional approach of writing the parser first. Here are the parts I've published on my blog so far:
The next two parts are mostly finished. From part 24 I'll be back to relatively "clean" changesets per part again.
All the code can now be found in this GitHub repository
Someone commenting on this series pointed to Niklaus Wirth's excellent book on compiler construction (PDF available on his homepage) as a good starting point from a traditional, top down point of view. It's a good and very approachable book, and well worth a read.
Another great series with a more traditional approach is a famous series by Jack Crenshaw: Let's build a compiler.
This list at Stackoverflow.com has a great list of other compiler writing resources.
E-mail: vidar@hokstad.com
Skype: vhokstad
Twitter: vhokstad
View my LinkedIn profile.
I was born April 21st, 1975, in Oslo, Norway. Since 2000 I've been living in London, UK. I'm married and we just had our first child, Tristan Ikemefuna Hokstad.
I'm working for Aardvark Media as Director of Technology. I'm also currently on the board of SpatialQ, a startup in the GIS space, and an advisor to Skoach, a startup doing a time management app for people with ADD.
Showing 0 comments
Add New Comment
You are commenting as a Guest. Optional: Login below.
Reactions