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: 8,096 of 193,576
Downloads: 540,338

Daily

Ranking: 8,955 of 193,553
Downloads: 129

Depended by

RankDownloadsName
12,976191,845merb-action-args
13,983165,183dm-sweatshop
17,333110,250heckle
18,33899,993red
20,24084,753ambition
24,15664,515sake
27,73952,673warden-googleapps
35,54937,224integrity
35,99936,627foca-integrity
36,04436,566gem_velocity
38,23533,760dm-ambition
38,80033,108ri_for
40,78230,934rdp-arguments
44,49827,586rogerdpack-arguments
45,20727,002alphasights-integrity
48,70324,406rails_action_args
57,10519,588benhoskings-ambition
57,46819,424desc_method
69,47014,898nitpick
72,08214,104virtual_keywords

Depends on

RankDownloadsName
141,232,541,246minitest
164311,936,176rdoc
340148,028,031sexp_processor
2,3669,332,915hoe
2,3899,165,215RubyInline

Owners

#GravatarHandle
1icondrbrain
2iconzenspider