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,704 of 188,277
Downloads: 523,235

Daily

Ranking: 10,574 of 188,252
Downloads: 102

Depended by

RankDownloadsName
12,452187,673merb-action-args
13,418162,123dm-sweatshop
16,966104,819heckle
17,78497,018red
19,55483,120ambition
23,43962,918sake
27,06651,218warden-googleapps
35,18035,673integrity
35,25235,572gem_velocity
35,36735,404foca-integrity
37,31432,949dm-ambition
38,10832,047ri_for
39,86230,177rdp-arguments
43,83026,684rogerdpack-arguments
44,70925,994alphasights-integrity
47,71123,778rails_action_args
56,04219,092benhoskings-ambition
56,50918,877desc_method
69,11114,267nitpick
71,03213,698virtual_keywords

Depends on

RankDownloadsName
141,113,187,765minitest
179258,445,668rdoc
323140,740,436sexp_processor
2,3109,052,332hoe
2,3678,570,753RubyInline

Owners

#GravatarHandle
1icondrbrain
2iconzenspider