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,936 of 193,081
Downloads: 538,341

Daily

Ranking: 10,726 of 193,053
Downloads: 64

Depended by

RankDownloadsName
12,916191,471merb-action-args
13,927164,869dm-sweatshop
17,284109,693heckle
18,29299,583red
20,16484,619ambition
24,06464,412sake
27,69152,502warden-googleapps
35,54337,014integrity
35,89536,529foca-integrity
35,94536,476gem_velocity
38,13933,674dm-ambition
38,74932,974ri_for
40,69430,855rdp-arguments
44,39727,511rogerdpack-arguments
45,16426,892alphasights-integrity
48,60724,329rails_action_args
56,99419,538benhoskings-ambition
57,42119,348desc_method
69,46514,813nitpick
71,94914,066virtual_keywords

Depends on

RankDownloadsName
141,217,680,442minitest
165305,298,066rdoc
337147,123,150sexp_processor
2,3619,287,504hoe
2,3859,097,053RubyInline

Owners

#GravatarHandle
1icondrbrain
2iconzenspider