James Edward Gray II wrote:
> On Sep 22, 2006, at 8:04 PM, Ryan Davis wrote:
> 
>>
>> On Sep 22, 2006, at 3:13 PM, Ruby Quiz wrote:
>>
>>> Your mission: Create a function named sxp() that can take a block  
>>> (not a
>>> string), and create an s-expression representing the code in the  block.
>>
>>
>> Am I exempt from the quiz?
> 
> 
> Of course not.  The real question though is using ParseTree cheating,  
> right?  ;)

What about using the sexp library?

gem install -r sexp


http://www.artima.com/rubycs/articles/patterns_sexp_dsls3.html



-- 
James Britt

"Judge a man by his questions, rather than his answers."
  - Voltaire