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,872 of 191,980
Downloads: 534,504

Daily

Ranking: 10,243 of 191,939
Downloads: 125

Depended by

RankDownloadsName
12,691190,617merb-action-args
13,701164,055dm-sweatshop
17,122108,418heckle
18,07598,824red
19,90384,128ambition
23,79864,001sake
27,39352,181warden-googleapps
35,41736,699integrity
35,79536,209foca-integrity
35,80036,204gem_velocity
37,99233,418dm-ambition
38,57132,724ri_for
40,43630,691rdp-arguments
44,27927,263rogerdpack-arguments
45,03326,631alphasights-integrity
48,32024,183rails_action_args
56,75519,403benhoskings-ambition
57,14319,222desc_method
69,41414,641nitpick
71,70313,948virtual_keywords

Depends on

RankDownloadsName
141,190,010,682minitest
167292,889,403rdoc
332145,359,679sexp_processor
2,3419,221,139hoe
2,3868,888,887RubyInline

Owners

#GravatarHandle
1icondrbrain
2iconzenspider