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,720 of 188,588
Downloads: 525,119

Daily

Ranking: 6,600 of 188,571
Downloads: 129

Depended by

RankDownloadsName
12,461188,565merb-action-args
13,442162,455dm-sweatshop
16,982105,355heckle
17,81697,389red
19,62483,292ambition
23,47863,137sake
27,06751,496warden-googleapps
35,10035,964integrity
35,26135,745gem_velocity
35,36235,610foca-integrity
37,37433,052dm-ambition
38,15432,179ri_for
39,93130,259rdp-arguments
43,90626,768rogerdpack-arguments
44,67626,148alphasights-integrity
47,78723,856rails_action_args
56,11619,150benhoskings-ambition
56,55718,947desc_method
69,17514,321nitpick
71,02013,767virtual_keywords

Depends on

RankDownloadsName
141,122,823,255minitest
176262,392,156rdoc
325141,268,106sexp_processor
2,3129,077,250hoe
2,3678,606,034RubyInline

Owners

#GravatarHandle
1icondrbrain
2iconzenspider