From: John Mair Date: 2011-02-23T09:54:51+09:00 Subject: Re: LiveAST: a pure Ruby 1.9.2 library for obtaining live abstract syntax trees Why not use Ripper for 1.9 code and RubyParser for 1.8 code? James Lawrence wrote in post #983253: > On Tue, Feb 22, 2011 at 7:07 AM, John Mair wrote: >> The weird thing about this project is it requires Ruby 1.9.2 and above, >> yet RubyParser can only parse 1.8 code.... >> >> just an observation >> ;) > > LiveAST merely takes a static Ruby parser and electrifies it with the > Ruby runtime. The weirdness you observe is the lack of a full-featured > cross-implementation parser for Ruby 1.9. This project is only a > messenger for that weirdness :) > > Ruby needs a parser: > http://groups.google.com/group/ruby-core-google/browse_thread/thread/3d245807cb0b42b1/ > > (The current implementation of LiveAST is different from the hacky > prototype mentioned in that thread, though it is still small.) -- Posted via http://www.ruby-forum.com/.