Categories: None [Edit]

ParseTree

https://rubygems.org/gems/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: 4,112 of 153,727
Downloads: 307,167

Daily

Ranking: 7,771 of 153,705
Downloads: 67

Depended by

RankDownloadsName
6,823114,572merb-action-args
6,879112,556dm-sweatshop
10,45857,904red
10,93854,540ambition
13,46640,951heckle
14,27437,838sake
15,19934,911warden-googleapps
21,95621,629integrity
24,86218,539rdp-arguments
24,91818,493ri_for
25,66917,876dm-ambition
26,79417,000gem_velocity
28,92315,447foca-integrity
30,93714,237rails_action_args
35,71011,944alphasights-integrity
36,32211,694desc_method
37,60011,218rogerdpack-arguments
42,3499,657benhoskings-ambition
47,7148,281nitpick
50,5547,660RubyToC

Depends on

RankDownloadsName
20207,405,529minitest
8875,956,281rdoc
22929,030,166sexp_processor
9445,898,799hoe
1,4742,301,872RubyInline

Owners

#GravatarHandle
1icondrbrain
2iconzenspider