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,912 of 192,861
Downloads: 537,255

Daily

Ranking: 10,157 of 192,676
Downloads: 81

Depended by

RankDownloadsName
12,880191,227merb-action-args
13,890164,653dm-sweatshop
17,257109,349heckle
18,24699,330red
20,10484,468ambition
23,99964,305sake
27,62552,418warden-googleapps
35,49936,913integrity
35,86336,433foca-integrity
35,89136,394gem_velocity
38,07533,609dm-ambition
38,70132,882ri_for
40,62430,801rdp-arguments
44,36727,420rogerdpack-arguments
45,12426,810alphasights-integrity
48,53524,277rails_action_args
56,90519,508benhoskings-ambition
57,32619,318desc_method
69,46714,757nitpick
71,84014,041virtual_keywords

Depends on

RankDownloadsName
141,207,656,884minitest
165300,770,743rdoc
336146,474,199sexp_processor
2,3559,261,534hoe
2,3938,971,451RubyInline

Owners

#GravatarHandle
1icondrbrain
2iconzenspider