From: Douglas Livingstone Date: 2006-05-25T02:52:03+09:00 Subject: Re: Zed and Luis drop the bomb on Ruby's poor performance 2006/5/24, Jacob Fugal : > > ((class Example Object (defn example (scope (block (args) (defn sum > (scope (block (args a b) (call (lvar a) + (array (lvar b)))))) (lasgn a > (lit 3)) (lasgn b (lit 4)) (lasgn c (fcall sum (array (lvar a) (lvar > b)))) (fcall puts (array (lvar c)))))))) > > The interior (starting from "(defn sum...") is the same as you've got > (minus the return statement), but I've got a lot of extra stuff > wrapped around it. I've double checked the my sexp and parsetree gems > are the latest (sexp-0.1, ParseTree-1.4.1). > I think you've deleted an extra line, try putting this in after your result=ParseTree: result = result[0][3][2][1][2..-1] Or it might just be how you're running the script, I'm doing: $ cat example.rb | ./parse.rb -f hth, Douglas