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,784 of 189,455
Downloads: 529,320

Daily

Ranking: 10,641 of 189,432
Downloads: 66

Depended by

RankDownloadsName
12,532189,427merb-action-args
13,542162,906dm-sweatshop
16,951107,182heckle
17,89397,976red
19,70783,555ambition
23,55463,454sake
27,15051,798warden-googleapps
35,10936,275integrity
35,41235,887gem_velocity
35,46235,802foca-integrity
37,52733,180dm-ambition
38,23132,374ri_for
40,05830,403rdp-arguments
43,96126,943rogerdpack-arguments
44,75326,312alphasights-integrity
47,89223,968rails_action_args
56,25219,250benhoskings-ambition
56,65419,057desc_method
69,11914,452nitpick
71,15513,835virtual_keywords

Depends on

RankDownloadsName
141,145,898,093minitest
176272,746,980rdoc
328142,661,507sexp_processor
2,3219,128,486hoe
2,3698,734,191RubyInline

Owners

#GravatarHandle
1icondrbrain
2iconzenspider