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,205 of 197,051
Downloads: 554,174

Daily

Ranking: 8,999 of 197,010
Downloads: 173

Depended by

RankDownloadsName
13,154196,878merb-action-args
14,185168,796dm-sweatshop
17,443114,332heckle
18,678101,436red
20,50686,673ambition
24,57065,309sake
28,24353,246warden-googleapps
35,56338,485integrity
35,83338,114foca-integrity
36,56937,103gem_velocity
38,77634,248dm-ambition
39,35033,565ri_for
41,46331,295rdp-arguments
44,77528,266alphasights-integrity
45,03428,041rogerdpack-arguments
49,42424,694rails_action_args
57,70519,924benhoskings-ambition
58,14419,710desc_method
69,89315,249nitpick
72,90814,317virtual_keywords

Depends on

RankDownloadsName
141,309,340,755minitest
150352,720,308rdoc
348152,873,380sexp_processor
2,4049,612,990hoe
2,4199,502,585RubyInline

Owners

#GravatarHandle
1icondrbrain
2iconzenspider