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: 8,187 of 196,721
Downloads: 551,467

Daily

Ranking: 8,823 of 196,694
Downloads: 100

Depended by

RankDownloadsName
13,126195,549merb-action-args
14,131168,046dm-sweatshop
17,388113,940heckle
18,596101,325red
20,42086,533ambition
24,48465,224sake
28,13353,183warden-googleapps
35,58438,213integrity
35,91137,776foca-integrity
36,43337,042gem_velocity
38,64534,193dm-ambition
39,22133,518ri_for
41,34631,240rdp-arguments
44,67228,201alphasights-integrity
44,93027,978rogerdpack-arguments
49,28324,661rails_action_args
57,58219,875benhoskings-ambition
57,95319,690desc_method
69,75115,204nitpick
72,67114,298virtual_keywords

Depends on

RankDownloadsName
141,294,745,029minitest
152344,213,097rdoc
347151,885,747sexp_processor
2,3909,558,724hoe
2,4159,439,523RubyInline

Owners

#GravatarHandle
1icondrbrain
2iconzenspider