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,756 of 188,987
Downloads: 527,795

Daily

Ranking: 9,723 of 188,969
Downloads: 106

Depended by

RankDownloadsName
12,488189,061merb-action-args
13,490162,669dm-sweatshop
16,930106,809heckle
17,85497,710red
19,67183,402ambition
23,51463,291sake
27,10351,670warden-googleapps
35,05836,167integrity
35,33335,814gem_velocity
35,40335,720foca-integrity
37,46233,106dm-ambition
38,19732,276ri_for
40,02030,313rdp-arguments
43,94526,845rogerdpack-arguments
44,71126,242alphasights-integrity
47,84523,912rails_action_args
56,21319,189benhoskings-ambition
56,61019,001desc_method
69,12214,395nitpick
71,07113,807virtual_keywords

Depends on

RankDownloadsName
141,133,910,572minitest
177267,328,210rdoc
325141,954,938sexp_processor
2,3169,102,273hoe
2,3688,664,866RubyInline

Owners

#GravatarHandle
1icondrbrain
2iconzenspider