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,633 of 186,698
Downloads: 508,494

Daily

Ranking: 6,575 of 186,685
Downloads: 82

Depended by

RankDownloadsName
12,296182,674merb-action-args
13,224158,990dm-sweatshop
16,880100,967heckle
17,61494,204red
19,30681,154ambition
23,27260,901sake
26,93449,421warden-googleapps
34,96534,417gem_velocity
35,10134,235foca-integrity
35,35533,927integrity
37,06231,810dm-ambition
38,04830,727ri_for
39,58229,170rdp-arguments
43,79825,578rogerdpack-arguments
44,58724,945alphasights-integrity
47,23023,049rails_action_args
55,29118,584benhoskings-ambition
55,93918,313desc_method
68,78813,733nitpick
70,20413,312virtual_keywords

Depends on

RankDownloadsName
161,052,609,903minitest
190230,670,698rdoc
309137,287,509sexp_processor
2,2558,886,031hoe
2,3308,304,805RubyInline

Owners

#GravatarHandle
1icondrbrain
2iconzenspider