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,286 of 199,228
Downloads: 562,585

Daily

Ranking: 16,282 of 199,184
Downloads: 57

Depended by

RankDownloadsName
13,297198,603merb-action-args
14,382169,841dm-sweatshop
17,310119,047heckle
18,926102,074red
20,76487,170ambition
24,83365,717sake
28,61653,514warden-googleapps
35,83438,915integrity
36,09938,589foca-integrity
36,91537,438gem_velocity
39,12534,547dm-ambition
39,77533,808ri_for
41,89031,526rdp-arguments
45,19828,526alphasights-integrity
45,45728,300rogerdpack-arguments
49,95524,880rails_action_args
58,28620,117benhoskings-ambition
58,79719,870desc_method
70,41815,433nitpick
73,58914,451virtual_keywords

Depends on

RankDownloadsName
141,358,956,518minitest
142384,735,258rdoc
354156,212,321sexp_processor
2,4079,898,711hoe
2,4389,700,496RubyInline

Owners

#GravatarHandle
1icondrbrain
2iconzenspider