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,646 of 186,947
Downloads: 512,219

Daily

Ranking: 7,266 of 186,938
Downloads: 148

Depended by

RankDownloadsName
12,321184,200merb-action-args
13,257159,952dm-sweatshop
16,899101,773heckle
17,65594,904red
19,33681,680ambition
23,28261,505sake
26,93649,908warden-googleapps
35,06234,718gem_velocity
35,12434,645foca-integrity
35,33434,345integrity
37,07432,167dm-ambition
38,02231,123ri_for
39,63429,457rdp-arguments
43,75525,913rogerdpack-arguments
44,55225,282alphasights-integrity
47,34623,262rails_action_args
55,36918,778benhoskings-ambition
56,14918,449desc_method
68,94213,862nitpick
70,39113,436virtual_keywords

Depends on

RankDownloadsName
151,065,284,090minitest
188236,480,412rdoc
312137,997,192sexp_processor
2,2708,918,680hoe
2,3428,352,940RubyInline

Owners

#GravatarHandle
1icondrbrain
2iconzenspider