From: "Bartosz DziewoƄski" Date: 2011-12-18T06:52:46+09:00 Subject: Re: Writing ruby to [LANGUAGE] "compiler" Use a parser. There is ruby_parse gem, just perfect for the occasion. I've once tried to create something similar: https://github.com/MatmaRex/crude - examples included. -- Matma Rex