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: 8,246 of 198,430
Downloads: 560,865

Daily

Ranking: 11,955 of 198,401
Downloads: 87

Depended by

RankDownloadsName
13,252197,896merb-action-args
14,310169,425dm-sweatshop
17,245118,530heckle
18,837101,638red
20,67986,919ambition
24,75665,456sake
28,46753,354warden-googleapps
35,71638,756integrity
35,98938,394foca-integrity
36,79737,263gem_velocity
39,02634,384dm-ambition
39,62333,672ri_for
41,73931,403rdp-arguments
45,06128,395alphasights-integrity
45,34728,140rogerdpack-arguments
49,81424,767rails_action_args
58,10620,020benhoskings-ambition
58,56419,788desc_method
70,25415,348nitpick
73,40314,378virtual_keywords

Depends on

RankDownloadsName
141,341,705,701minitest
142373,659,467rdoc
353155,056,779sexp_processor
2,4129,714,887hoe
2,4309,637,517RubyInline

Owners

#GravatarHandle
1icondrbrain
2iconzenspider