Writing a compiler in Ruby

This is a discussion on Writing a compiler in Ruby within the Compilers forums in Theory and Concepts category; I've been writing a compiler in Ruby as a hobby project, and at the moment I'm serializing the development process on my blog. I though it might be of interest to some people here. All the posts up in this category: http://www.hokstad.com/tag/compiler+in+Ruby+bottom+up It's generating x86 gas-style assembler only for now. 9 parts are up. It's completely experimental, and I'm doing the development very much ad-hoc in that I haven't started with a language spec of any sort (though I have some ideas of where I'll want to go...). I've also very deliberately started in the "wrong end" - the very ...

Go Back   Application Development Forum > Theory and Concepts > Compilers

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 06-20-2008, 12:08 PM
Vidar Hokstad
Guest
 
Default Writing a compiler in Ruby

I've been writing a compiler in Ruby as a hobby project, and at the
moment I'm serializing the development process on my blog. I though it
might be of interest to some people here. All the posts up in this
category:

http://www.hokstad.com/tag/compiler+in+Ruby+bottom+up

It's generating x86 gas-style assembler only for now. 9 parts are up.
It's completely experimental, and I'm doing the development very much
ad-hoc in that I haven't started with a language spec of any sort
(though I have some ideas of where I'll want to go...).

I've also very deliberately started in the "wrong end" - the very
first part started with code generation, and I'm building it up from
the ground by generating code first. In fact, I haven't gotten to the
parser yet. Instead I'm piggy-backing on Ruby arrays and symbols to
write test programs for it.

Vidar
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 06:29 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.