From: Eric Hodel Date: 2009-07-23T07:51:08+09:00 Subject: Re: Best gem to parse Ruby with? On Jul 22, 2009, at 06:00, Caleb Clausen wrote: > On 7/21/09, Tony Arcieri wrote: >> 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. > > RedParse doesn't work in 1.9 yet either, tho. > > I forgot to mention RubyNode before. That fills out the list of ruby > parsing libraries I know of. > > So you want something that: > works in 1.9 > written in pure ruby > doesn't use extensions (except maybe thru FFI) > > Taken together, I think these requirements eliminate all the > reasonable candidates. Um, ruby_parser works great on 1.9, is written in pure ruby and can not use extensions. (It sits atop racc which is part of the standard library and has a non-extension version. I imagine that racc would ship with JRuby.)