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: 7,673 of 187,591
Downloads: 518,774

Daily

Ranking: 7,233 of 187,571
Downloads: 142

Depended by

RankDownloadsName
12,391186,182merb-action-args
13,332161,359dm-sweatshop
16,918103,526heckle
17,69796,210red
19,43682,589ambition
23,33062,449sake
26,96950,746warden-googleapps
35,15435,249gem_velocity
35,20535,180integrity
35,31435,027foca-integrity
37,17432,672dm-ambition
37,99131,733ri_for
39,73729,911rdp-arguments
43,71326,425rogerdpack-arguments
44,68725,661alphasights-integrity
47,55323,580rails_action_args
55,86918,930benhoskings-ambition
56,34318,717desc_method
69,03414,101nitpick
70,93013,551virtual_keywords

Depends on

RankDownloadsName
151,089,701,321minitest
182248,248,053rdoc
318139,402,166sexp_processor
2,2978,987,679hoe
2,3608,463,192RubyInline

Owners

#GravatarHandle
1icondrbrain
2iconzenspider