ParseTree

URL
http://www.zenspider.com/ZSS/Products/ParseTree/
Author(s)
Ryan Davis
Summary
ParseTree is a C extension (using RubyInline) that extracts the parse tree for an entire class or a specific method and returns it as a s-expression (aka sexp) using ruby's arrays, strings, symbols, and integers. As an example: def conditional1(arg1) if

Add your comment ↓

Comments

parsetree (3.0.5) is Failing
for Seamus Abshere (GNU/Linux, about 1 year ago)

At my company, we were able to <a href="http://numbers.brighterplanet.com/2010/12/17/replacing-parsetree-in-ruby-1-9">replace ParseTree with sourcify in Ruby 1.9</a>.

<pre><code>
# Ruby 1.8 with ParseTree
proc.to_ruby
# Ruby 1.9 with sourcify (may raise NoMatchingProcError or MultipleMatchingProcsPerLineError)
proc.to_source
# Ruby 1.9 with sourcify (help it find the right Proc)
proc.to_source :attached_to => :name_of_proc
</code></pre>

parsetree ((3.0.4) is Failing
for Martin Wöginger (Mac OSX, over 2 years ago)

LoadError: ParseTree doesn't work with ruby 1.9.1

parsetree is Failing
for Carl (Mac OSX, over 2 years ago)

Doesn't work and has been EOL'd:

http://blog.zenspider.com/2009/04/parsetree-eol.html

parsetree (3.0.3) is Failing
for Matt Grande (GNU/Linux, over 2 years ago)

Fails with error "ParseTree doesn't work with ruby 1.9.1 (LoadError)"

There's no way what Konstantin said is accurate.

parsetree (3.0.3) is Failing
for km (Windows, over 3 years ago)

C:/ruby19/lib/ruby/gems/1.9.1/gems/ParseTree-3.0.3-x86-mswin32-60/lib/parse_tree.rb:3:in `<top (required)>': ParseTree d
oesn't work with ruby 1.9.1 (LoadError)
from parset.rb:1:in `require'
from parset.rb:1:in `<main>'

parsetree (3.0.3) is Failing
for ash (Mac OSX, over 3 years ago)

Try running: ruby1.9 -rparse_tree -e '1'

It won't work. ParseTree checks if your using ruby1.9 and throws an error:

http://github.com/seattlerb/parsetree/blob/9a16804914fd4757065855e4b0cc45b104531f54/lib/parse_tree.rb#L3

parsetree (2.2.0) is Failing
for Gimite (other, over 3 years ago)

require "parse_tree" fails with:

/usr/local/lib/ruby/gems/1.9.0/gems/ParseTree-2.2.0/lib/parse_tree.rb:3:in `<top (required)>': ParseTree doesn't work with ruby 1.9.0 (LoadError)

parsetree (3.0.3, 2.1.1) is Working
for Konstantin Haase (GNU/Linux, over 3 years ago)

Gem works.

Add your comment




Yes No