[grammarians] s-expression dumper: works
Duncan Mak
duncanmak at gmail.com
Tue Dec 13 20:54:07 EST 2005
Hello,
I'm trying to use the dump-ruby script, and I'm having trouble running it.
I installed ParseTree and RubyInline using Rubygems and when I try to run
your script, I see this error message:
diphthong:~/src/ruby $ ruby dump-ruby.rb hello.rb
/usr/lib/ruby/gems/1.8/gems/RubyInline-3.5.0/./inline.rb:372:in `build':
undefined method `+' for nil:NilClass (NoMethodError)
from /usr/lib/ruby/gems/1.8/gems/RubyInline-3.5.0/./inline.rb:602:in
`inline'
from /usr/lib/ruby/gems/1.8/gems/ParseTree-1.4.0
/lib/parse_tree.rb:101
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:21:in `require'
from /usr/lib/ruby/1.8/rubygems.rb:182:in `activate'
from /usr/lib/ruby/1.8/rubygems.rb:181:in `activate'
from /usr/lib/ruby/1.8/rubygems.rb:37:in `require_gem_with_options'
from /usr/lib/ruby/1.8/rubygems.rb:31:in `require_gem'
from dump-ruby.rb:7
I have ParseTree (1.4.0) and RubyInline (3.5.0) installed.
P.S, Have you looked into RubyLexer at all? The README claims that it's more
robust than other implementations out there.
Duncan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rubygrammar-grammarians/attachments/20051213/ac1698c4/attachment.htm
More information about the Rubygrammar-grammarians
mailing list