From: Caleb Clausen Date: 2009-06-04T07:08:53+09:00 Subject: Re: block as string On 6/3/09, Louis-Philippe wrote: > what I need is some sort of macro system (the LISP macro, not the C one), > to parse the block before calling it. I was thinking to make it a string, > then parsing with regex, would have done it... but seems not. I'll work out > an other logic around the problem then ;). RubyMacros is an implementation of lisp-like macros for ruby.... however, unlike ParseTree, it doesn't allow you to get at the contents of a block. It does however, provide lisp-like forms as well. Maybe you can put whatever code you need into a form? Take a look here: http://github.com/coatl/rubymacros