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,689 of 187,960
Downloads: 520,922

Daily

Ranking: 8,845 of 187,950
Downloads: 157

Depended by

RankDownloadsName
12,421186,932merb-action-args
13,383161,665dm-sweatshop
16,950104,143heckle
17,74996,589red
19,49082,906ambition
23,38262,694sake
27,01550,978warden-googleapps
35,21335,421integrity
35,22535,402gem_velocity
35,35235,186foca-integrity
37,24132,803dm-ambition
38,06231,863ri_for
39,79030,040rdp-arguments
43,78326,541rogerdpack-arguments
44,66225,852alphasights-integrity
47,62023,679rails_action_args
55,98318,998benhoskings-ambition
56,44018,786desc_method
69,11014,171nitpick
70,95013,631virtual_keywords

Depends on

RankDownloadsName
151,101,661,048minitest
180253,346,918rdoc
319140,057,317sexp_processor
2,3029,019,356hoe
2,3618,517,956RubyInline

Owners

#GravatarHandle
1icondrbrain
2iconzenspider