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,811 of 189,968
Downloads: 530,911

Daily

Ranking: 9,927 of 189,933
Downloads: 118

Depended by

RankDownloadsName
12,570189,844merb-action-args
13,572163,243dm-sweatshop
17,011107,476heckle
17,94198,317red
19,78583,669ambition
23,60563,673sake
27,20951,920warden-googleapps
35,12936,436integrity
35,47235,986gem_velocity
35,53435,904foca-integrity
37,64533,243dm-ambition
38,26432,518ri_for
40,14030,485rdp-arguments
43,99127,066rogerdpack-arguments
44,82026,390alphasights-integrity
47,98024,035rails_action_args
56,37419,293benhoskings-ambition
56,75919,110desc_method
69,13214,520nitpick
71,32213,858virtual_keywords

Depends on

RankDownloadsName
141,158,882,510minitest
171279,071,716rdoc
329143,414,907sexp_processor
2,3309,153,957hoe
2,3758,782,055RubyInline

Owners

#GravatarHandle
1icondrbrain
2iconzenspider