From: Ryan Davis Date: 2008-07-25T08:39:35+09:00 Subject: Re: ruby_parser 1.0.0 Released On Jul 22, 2008, at 16:22 , Roger Pack wrote: > 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) > ... I get a silent failure on 1.9.0-2, but it worked on 1.9.0-1. I'll look into it but would appreciate if you filed a bug.