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: 6,816 of 180,416
Downloads: 475,636

Daily

Ranking: 12,595 of 180,403
Downloads: 39

Depended by

RankDownloadsName
11,216174,067merb-action-args
12,042153,430dm-sweatshop
16,14891,776heckle
16,41989,309red
17,88778,038ambition
21,92657,817sake
25,25547,281warden-googleapps
33,53032,188integrity
33,89631,714gem_velocity
34,06031,521foca-integrity
35,31530,070dm-ambition
36,37828,891ri_for
37,62827,690rdp-arguments
42,72623,581rogerdpack-arguments
43,44223,056alphasights-integrity
45,29821,801rails_action_args
53,28317,485desc_method
53,73417,304benhoskings-ambition
68,14012,479virtual_keywords
68,21912,456nitpick

Depends on

RankDownloadsName
20797,096,633minitest
214145,830,930rdoc
269116,013,753sexp_processor
1,9498,399,356hoe
2,1327,121,621RubyInline

Owners

#GravatarHandle
1icondrbrain
2iconzenspider