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,840 of 191,254
Downloads: 532,579

Daily

Ranking: 8,199 of 191,174
Downloads: 221

Depended by

RankDownloadsName
12,621190,197merb-action-args
13,637163,599dm-sweatshop
17,054107,955heckle
17,99498,565red
19,83883,809ambition
23,67763,818sake
27,28252,046warden-googleapps
35,18236,572integrity
35,58136,057gem_velocity
35,61436,015foca-integrity
37,74133,316dm-ambition
38,33132,616ri_for
40,23030,563rdp-arguments
44,06327,152rogerdpack-arguments
44,87026,483alphasights-integrity
48,08024,094rails_action_args
56,47119,336benhoskings-ambition
56,85619,156desc_method
69,19714,573nitpick
71,40813,898virtual_keywords

Depends on

RankDownloadsName
141,174,633,726minitest
169285,976,002rdoc
332144,390,350sexp_processor
2,3369,184,272hoe
2,3818,834,847RubyInline

Owners

#GravatarHandle
1icondrbrain
2iconzenspider