Ryan Davis wrote:
> 
>> Don't bring it up here. File a bug.
> 
> But you'll have to provide better information. This works fine for me:
> 
> % ruby -v -I../lib -rubygems -e 'require "ruby_parser"; require 
> "ruby_to_ruby_c"; p RubyParser.new.parse(File.read("hello.rb"))'
> ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0]
> s(:class, :Hello, nil, s(:scope, s(:block, s(:defn, :hello, s(:args), 
> s(:scope, s(:block, s(:call, nil, :puts, s(:arglist, s(:str, "hello 
> world")))))), s(:defn, :main, s(:args), s(:scope, s(:block, s(:call, 
> nil, :hello, s(:arglist)), s(:return, s(:lit, 0))))))))
> 
> 

hmm -- looks like it's only an issue in irb...

rthompso@raker>/usr/lib/ruby/gems/1.8/gems/ruby2c-1.0.0.7/demo
$ ruby -v -I../lib -rubygems -e 'require "ruby_parser"; require 
"ruby_to_ruby_c"; p RubyParser.new.parse(File.read("hello.rb"))'
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-linux]
s(:class, :Hello, nil, s(:scope, s(:block, s(:defn, :hello, s(:args), s(:scope, 
s(:block, s(:call, nil, :puts, s(:arglist, s(:str, "hello world")))))), s(:defn, 
:main, s(:args), s(:scope, s(:block, s(:call, nil, :hello, s(:arglist)), 
s(:return, s(:lit, 0))))))))
rthompso@raker>/usr/lib/ruby/gems/1.8/gems/ruby2c-1.0.0.7/demo
 

$ irb
irb(main):001:0> require "ruby_parser"
=> true
irb(main):002:0> require "ruby_to_ruby_c"
=> true
irb(main):003:0> p RubyParser.new.parse(File.read("hello.rb"))
NoMethodError: undefined method `clear' for nil:NilClass
         from 
/usr/lib/ruby/gems/1.8/gems/ruby_parser-2.0.4/lib/ruby_parser_extras.rb:938:in 
`reset'
         from 
/usr/lib/ruby/gems/1.8/gems/ruby_parser-2.0.4/lib/ruby_parser_extras.rb:766:in 
`reset'
         from 
/usr/lib/ruby/gems/1.8/gems/ruby_parser-2.0.4/lib/ruby_parser_extras.rb:345:in 
`initialize'
         from (irb):3:in `new'
         from (irb):3