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: 6,796 of 188,756
Downloads: 474,236

Daily

Ranking: 10,513 of 188,734
Downloads: 73

Depended by

RankDownloadsName
11,170173,672merb-action-args
11,982153,153dm-sweatshop
16,11491,471heckle
16,36289,120red
17,82777,850ambition
21,85357,696sake
25,18547,184warden-googleapps
33,44132,119integrity
33,84631,611gem_velocity
34,01831,406foca-integrity
35,24629,984dm-ambition
36,28628,820ri_for
37,55227,619rdp-arguments
42,66023,485rogerdpack-arguments
43,38722,972alphasights-integrity
45,21721,743rails_action_args
53,18817,441desc_method
53,65517,253benhoskings-ambition
68,08012,437virtual_keywords
68,11212,426nitpick

Depends on

RankDownloadsName
20787,713,697minitest
213143,872,090rdoc
269114,815,992sexp_processor
1,9358,368,403hoe
2,1267,062,837RubyInline

Owners

#GravatarHandle
1icondrbrain
2iconzenspider