Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > [ANN] ParseTree 3.0.2 Released

Reply
Thread Tools

[ANN] ParseTree 3.0.2 Released

 
 
Ryan Davis
Guest
Posts: n/a
 
      11-04-2008

ParseTree version 3.0.2 has been released!

* <http://rubyforge.org/projects/parsetree/>
* <http://www.zenspider.com/ZSS/Products/ParseTree/>
* <(E-Mail Removed)>

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 arg1 == 0 then
return 1
end
return 0
end

becomes:

[:defn,
:conditional1,
[:scope,
[:block,
[:args, :arg1],
[:if,
[:call, [:lvar, :arg1], :==, [:array, [:lit, 0]]],
[:return, [:lit, 1]],
nil],
[:return, [:lit, 0]]]]]

Changes:

### 3.0.2 / 2008-11-04

* 1 minor enhancement:

* parse_tree_show now defaults to unified, added -U to UNunify
output.

* 4 bug fixes:

* UnifiedRuby#rewrite_defn kinda sorta deals with cfunc now. Stupid
rails.
* Fixed ambiguities in splatted nodes in a bunch of contexts.
* Fixed 1 arg form of parse_tree_for_proc
* KNOWN ISSUE: 0 arg form (||) of parse_tree_for_proc segfaults.

* <http://rubyforge.org/projects/parsetree/>
* <http://www.zenspider.com/ZSS/Products/ParseTree/>
* <(E-Mail Removed)>


 
Reply With Quote
 
 
 
 
Roger Pack
Guest
Posts: n/a
 
      11-05-2008
Ryan Davis wrote:
> ParseTree version 3.0.2 has been released!


Thanks for doing that.
-=Roger
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Ed Howland
Guest
Posts: n/a
 
      12-10-2008
Hi,

I just tried installing ParseTree from a gem and keep getting the message
ERROR: could not find gem ruby_ParseTree locally or in a repository

Is the gem missing? Other gems (ruby2ruby, ruby_parser) install fine.

Thanks
Ed

On Tue, Nov 4, 2008 at 5:37 PM, Ryan Davis <(E-Mail Removed)> wrote:
>
> ParseTree version 3.0.2 has been released!
>
> * <http://rubyforge.org/projects/parsetree/>
> * <http://www.zenspider.com/ZSS/Products/ParseTree/>
> * <(E-Mail Removed)>
>
> 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 arg1 == 0 then
> return 1
> end
> return 0
> end
>
> becomes:
>
> [:defn,
> :conditional1,
> [:scope,
> [:block,
> [:args, :arg1],
> [:if,
> [:call, [:lvar, :arg1], :==, [:array, [:lit, 0]]],
> [:return, [:lit, 1]],
> nil],
> [:return, [:lit, 0]]]]]
>
> Changes:
>
> ### 3.0.2 / 2008-11-04
>
> * 1 minor enhancement:
>
> * parse_tree_show now defaults to unified, added -U to UNunify output.
>
> * 4 bug fixes:
>
> * UnifiedRuby#rewrite_defn kinda sorta deals with cfunc now. Stupid rails.
> * Fixed ambiguities in splatted nodes in a bunch of contexts.
> * Fixed 1 arg form of parse_tree_for_proc
> * KNOWN ISSUE: 0 arg form (||) of parse_tree_for_proc segfaults.
>
> * <http://rubyforge.org/projects/parsetree/>
> * <http://www.zenspider.com/ZSS/Products/ParseTree/>
> * <(E-Mail Removed)>
>
>
>




--
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

 
Reply With Quote
 
Ryan Davis
Guest
Posts: n/a
 
      12-10-2008

On Dec 10, 2008, at 04:06 , Ed Howland wrote:

> I just tried installing ParseTree from a gem and keep getting the
> message
> ERROR: could not find gem ruby_ParseTree locally or in a repository
>
> Is the gem missing? Other gems (ruby2ruby, ruby_parser) install fine.


> 500 % sudo gem install ParseTree
> Successfully installed ParseTree-3.0.2
> 1 gem installed
> Installing ri documentation for ParseTree-3.0.2...
> Installing RDoc documentation for ParseTree-3.0.2...


seems fine on my end... the name it is reporting is suspect.


 
Reply With Quote
 
Ed Howland
Guest
Posts: n/a
 
      12-11-2008
Yup seems fine now too.

Thanks
Ed

On Wed, Dec 10, 2008 at 5:15 PM, Ryan Davis <(E-Mail Removed)> wrote:
>
> On Dec 10, 2008, at 04:06 , Ed Howland wrote:
>
>> I just tried installing ParseTree from a gem and keep getting the message
>> ERROR: could not find gem ruby_ParseTree locally or in a repository
>>
>> Is the gem missing? Other gems (ruby2ruby, ruby_parser) install fine.

>
>> 500 % sudo gem install ParseTree
>> Successfully installed ParseTree-3.0.2
>> 1 gem installed
>> Installing ri documentation for ParseTree-3.0.2...
>> Installing RDoc documentation for ParseTree-3.0.2...

>
> seems fine on my end... the name it is reporting is suspect.
>
>
>




--
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ParseTree 1.3.2 Released Ryan Davis Ruby 4 01-05-2005 09:28 PM
[ANN] ParseTree 1.3.0 Released Ryan Davis Ruby 0 12-08-2004 07:19 AM
ParseTree 1.2.0 Released Ryan Davis Ruby 2 12-03-2004 09:20 AM
[ANN] ParseTree 1.1.0 Released Ryan Davis Ruby 1 11-13-2004 02:41 AM
[ANN] ParseTree 1.0.0 Released Ryan Davis Ruby 7 11-11-2004 08:41 AM



Advertisments