I’ve been writing some Ruby again for a while.
If you ever wanted to know, how a compiler for a ruby-like language (written in ruby) might look, check out this series by Vidar Hokstad: Writing a compiler in Ruby
Fortunately, the code has been online at GitHub for a while now here: http://github.com/vidarh/writing-a-compiler-in-ruby
Since I’ve always been interested in language design and how compilers work, I forked the project and started working on it as well. I’m still learning a lot, but the code is still small enough to actually understand it even if you haven’t done anything like that before. The blog posts by Vidar especially help alot here, since a great deal of how the code actually works is explained there.
More and more this is turning into a compiler for the Ruby language and I’m excited to see where this is going


0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.