From: Luis Lavena Date: 2009-07-22T14:05:05+09:00 Subject: Re: Best gem to parse Ruby with? On Jul 22, 1:18 am, Tony Arcieri wrote: > [Note:  parts of this message were removed to make it a legal post.] > > On Tue, Jul 21, 2009 at 9:28 PM, Caleb Clausen wrote: > > No doubt its author will say it is, but I'd like to recommend my own > > library, RedParse. If you can stand its painful slowness, it outputs > > the nicest parsetrees. > > I'm definitely looking for a pure Ruby solution, and in that regard RedParse > looks nice. > > > You should also consider ParseTree, which is likely to be faster than > > either of the others. > > ParseTree is great but it seems to only work with 1.8.x MRI which is > unacceptable to me.  I guess I should've stated that outright.  I'm fine > with an FFI solution but not something which needs a non-FFI native > extension. > Pure ruby to parse Ruby doesn't fit you? see ruby_parser: http://rubyforge.org/projects/parsetree Non-FFI extension is impossible. At the end you're going to need link somehow to Ruby C level, and FFI *is* actually a C extension. -- Luis Lavena