From: Roger Pack Date: 2008-07-23T08:22:40+09:00 Subject: Re: ruby_parser 1.0.0 Released Roger Pack wrote: > Ryan Davis wrote: >> ruby_parser version 1.0.0 has been released! >> >> * >> >> ruby_parser (RP) is a ruby parser written in pure ruby (utilizing >> racc--which does by default use a C extension). RP's output is >> the same as ParseTree's output: s-expressions using ruby's arrays and >> base types. > > I assume this doesn't work with 1.9 [the racc, at least]? > Thanks! > -R Answering my own question [in 1.9 SVN HEAD] >> RubyParser.new.parse "1+1" /Users/rogerpack/dev/ruby_19_installed/lib/ruby/gems/1.9.0/gems/ruby_parser-1.0.0/lib/ruby_lexer.rb:2617: [BUG] Bus Error ruby 1.9.0 (2008-07-23 revision 17865) [i686-darwin9.3.0] -- control frame ---------- c:0029 p:---- s:0098 b:0098 l:000097 d:000097 CFUNC :method_missing c:0028 p:---- s:0096 b:0096 l:000095 d:000095 CFUNC :old_initialize c:0027 p:0029 s:0092 b:0092 l:000091 d:000091 METHOD /Users/rogerpack/dev/ruby_19_installed/lib/ruby/gems/1.9.0/gems/ruby_parser-1.0.0/lib/ruby_lexer.rb:2617 c:0026 p:---- s:0088 b:0088 l:000087 d:000087 FINISH :(null) ... As a note 1.9 does include racc still, as an extension, so I don't think this is expected. Guess I'll file it away to the core people. -R -- Posted via http://www.ruby-forum.com/.