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,872 of 192,034
Downloads: 534,639

Daily

Ranking: 10,197 of 191,980
Downloads: 135

Depended by

RankDownloadsName
12,693190,635merb-action-args
13,702164,087dm-sweatshop
17,126108,473heckle
18,07698,836red
19,91584,167ambition
23,83164,010sake
27,44552,197warden-googleapps
35,42836,701integrity
35,80636,211foca-integrity
35,81136,207gem_velocity
38,00433,420dm-ambition
38,57432,727ri_for
40,45030,695rdp-arguments
44,28327,269rogerdpack-arguments
45,02126,647alphasights-integrity
48,33224,187rails_action_args
56,74619,416benhoskings-ambition
57,15819,224desc_method
69,41014,648nitpick
71,70613,954virtual_keywords

Depends on

RankDownloadsName
141,190,948,638minitest
167293,315,782rdoc
332145,420,370sexp_processor
2,3439,222,992hoe
2,3878,892,798RubyInline

Owners

#GravatarHandle
1icondrbrain
2iconzenspider