Categories: None [Edit]

ParseTree

https://rubygems.org/gems/ParseTree
https://github.com/seattlerb/parsetree
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]]]]]

Total

Ranking: 8,214 of 197,744
Downloads: 558,879

Daily

Ranking: 8,042 of 197,724
Downloads: 276

Depended by

RankDownloadsName
13,199197,533merb-action-args
14,246169,153dm-sweatshop
17,228117,686heckle
18,747101,514red
20,60686,796ambition
24,65065,380sake
28,35353,290warden-googleapps
35,62438,651integrity
35,88838,279foca-integrity
36,69437,176gem_velocity
38,89534,323dm-ambition
39,49033,630ri_for
41,60831,338rdp-arguments
44,92328,324alphasights-integrity
45,21128,084rogerdpack-arguments
49,63224,734rails_action_args
57,92719,968benhoskings-ambition
58,37219,749desc_method
70,14715,290nitpick
73,22014,344virtual_keywords

Depends on

RankDownloadsName
141,324,561,847minitest
147362,648,494rdoc
350153,936,392sexp_processor
2,4099,652,728hoe
2,4229,569,857RubyInline

Owners

#GravatarHandle
1icondrbrain
2iconzenspider