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,903 of 192,505
Downloads: 536,507

Daily

Ranking: 8,798 of 192,483
Downloads: 178

Depended by

RankDownloadsName
12,861191,146merb-action-args
13,883164,520dm-sweatshop
17,257109,149heckle
18,23499,236red
20,08984,363ambition
23,97564,251sake
27,59552,375warden-googleapps
35,47136,875integrity
35,87636,347foca-integrity
35,88736,334gem_velocity
38,06233,559dm-ambition
38,67432,847ri_for
40,58630,771rdp-arguments
44,34927,385rogerdpack-arguments
45,11726,753alphasights-integrity
48,48424,255rails_action_args
56,87919,474benhoskings-ambition
57,28819,289desc_method
69,42214,738nitpick
71,79314,023virtual_keywords

Depends on

RankDownloadsName
141,203,696,577minitest
165299,004,962rdoc
336146,210,042sexp_processor
2,3539,250,942hoe
2,3948,942,534RubyInline

Owners

#GravatarHandle
1icondrbrain
2iconzenspider