Categories: None [Edit]

ParseTree

https://rubygems.org/gems/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: 3,957 of 151,987
Downloads: 302,580

Daily

Ranking: 7,521 of 151,947
Downloads: 75

Depended by

RankDownloadsName
6,646111,456dm-sweatshop
6,655111,145merb-action-args
10,16657,254red
10,61054,069ambition
13,06940,605heckle
13,91237,394sake
15,27033,231warden-googleapps
21,41621,410integrity
24,31518,314rdp-arguments
24,39718,249ri_for
25,13917,638dm-ambition
26,33416,718gem_velocity
28,58515,117foca-integrity
30,32514,052rails_action_args
35,21811,731alphasights-integrity
35,64411,548desc_method
37,25310,955rogerdpack-arguments
41,7269,495benhoskings-ambition
46,8618,171nitpick
49,6477,571RubyToC

Depends on

RankDownloadsName
20191,202,817minitest
8673,194,952rdoc
22526,653,403sexp_processor
8685,800,340hoe
1,4432,174,060RubyInline

Owners

#GravatarHandle
1icondrbrain
2iconzenspider