From: Magnus Holm Date: 2009-08-17T22:16:59+09:00 Subject: [ruby-core:24951] Re: [Feature #1857] install *.h and *.inc I've already written RipperRubyParser which generates emulates ruby_parser. I can send it to you if you're interested, even though it might require some refactoring since I'm both a Sexp- and Ripper-noob. However, because of this bug http://redmine.ruby-lang.org/issues/show/1939 it's not reliable enough. Currently RipperRubyParser doesn't handle local variables properly, it just parses them as s(:call, nil, :name, s (:arglist)). Could we please get local variables straight from Ripper? You would also have to update Ruby2Ruby to support the new lambda- syntax and that blocks can capture blocks. This would also be a good time to clean up the AST even more to make it easier in the future. We should probably still support the "old format", at least for some time... What'd you think Ryan? On Aug 17, 7:55�am, Ryan Davis wrote: > On Aug 16, 2009, at 21:51 , Yugui (Yuki Sonoda) wrote: > > > 2 days ago, I talked with ko1 about Proc#to_source. If � > > Proc#to_source is > > supported by Ruby core, you can use ripper for generating S- > > expressoin. > > Is this a good solution? > > Yes. That would be wonderful. > > I can write a ripper AST to ruby_parser converter so that existing � > tools can remain the same.