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: 4,655 of 159,688
Downloads: 333,643

Daily

Ranking: 6,724 of 159,669
Downloads: 127

Depended by

RankDownloadsName
7,466126,741merb-action-args
7,837116,151dm-sweatshop
11,71459,537red
12,26655,987ambition
15,03942,119heckle
15,92238,836sake
17,01935,556warden-googleapps
24,09222,185integrity
27,07419,113ri_for
27,08319,103rdp-arguments
27,85718,453dm-ambition
28,73317,756gem_velocity
30,76016,287foca-integrity
33,44414,641rails_action_args
37,61212,645alphasights-integrity
39,14211,997desc_method
39,51011,861rogerdpack-arguments
44,79610,095benhoskings-ambition
50,8948,531nitpick
54,0067,853RubyToC

Depends on

RankDownloadsName
20277,878,821minitest
11785,089,443rdoc
23439,878,884sexp_processor
1,0926,455,352hoe
1,5812,979,908RubyInline

Owners

#GravatarHandle
1icondrbrain
2iconzenspider