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,295 of 184,912
Downloads: 497,535

Daily

Ranking: 13,062 of 184,894
Downloads: 23

Depended by

RankDownloadsName
12,000179,916merb-action-args
12,891157,663dm-sweatshop
16,68598,023heckle
17,23792,861red
18,88280,362ambition
22,86660,067sake
26,55048,638warden-googleapps
34,90433,354integrity
34,97133,272gem_velocity
34,98033,258foca-integrity
36,54931,394dm-ambition
37,66230,121ri_for
39,03128,771rdp-arguments
43,67624,898rogerdpack-arguments
44,48624,263alphasights-integrity
46,80422,658rails_action_args
54,98818,161benhoskings-ambition
55,14218,098desc_method
68,63913,382nitpick
69,80313,053virtual_keywords

Depends on

RankDownloadsName
19967,909,604minitest
202192,657,834rdoc
297132,606,989sexp_processor
2,1638,723,082hoe
2,2707,937,205RubyInline

Owners

#GravatarHandle
1icondrbrain
2iconzenspider