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,117 of 183,471
Downloads: 491,707

Daily

Ranking: 8,764 of 183,459
Downloads: 53

Depended by

RankDownloadsName
11,733178,422merb-action-args
12,609156,712dm-sweatshop
16,58195,911heckle
16,98291,980red
18,55879,835ambition
22,57259,485sake
26,15048,300warden-googleapps
34,49733,072integrity
34,63332,911gem_velocity
34,68632,847foca-integrity
36,14231,092dm-ambition
37,26829,810ri_for
38,63228,487rdp-arguments
43,35624,565rogerdpack-arguments
44,11523,984alphasights-integrity
46,37722,441rails_action_args
54,53317,969benhoskings-ambition
54,56517,955desc_method
68,31013,192nitpick
69,33012,907virtual_keywords

Depends on

RankDownloadsName
19910,051,170minitest
210172,448,676rdoc
282129,345,653sexp_processor
2,1048,603,943hoe
2,2407,679,812RubyInline

Owners

#GravatarHandle
1icondrbrain
2iconzenspider