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,167 of 196,106
Downloads: 548,523

Daily

Ranking: 9,938 of 196,079
Downloads: 77

Depended by

RankDownloadsName
13,116194,543merb-action-args
14,104167,385dm-sweatshop
17,415112,766heckle
18,528101,289red
20,34286,477ambition
24,41065,190sake
28,04353,144warden-googleapps
35,60238,017integrity
35,98737,504foca-integrity
36,34237,017gem_velocity
38,53734,163dm-ambition
39,09533,502ri_for
41,20531,225rdp-arguments
44,57728,180alphasights-integrity
44,84127,949rogerdpack-arguments
49,16724,641rails_action_args
57,45719,860benhoskings-ambition
57,82519,679desc_method
69,68815,166nitpick
72,58814,272virtual_keywords

Depends on

RankDownloadsName
141,280,319,739minitest
154336,079,615rdoc
346150,971,465sexp_processor
2,3809,506,771hoe
2,4049,379,632RubyInline

Owners

#GravatarHandle
1icondrbrain
2iconzenspider