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,206 of 197,085
Downloads: 554,412

Daily

Ranking: 7,276 of 197,066
Downloads: 143

Depended by

RankDownloadsName
13,157196,966merb-action-args
14,189168,858dm-sweatshop
17,441114,395heckle
18,687101,438red
20,51586,693ambition
24,57765,311sake
28,25253,246warden-googleapps
35,57138,503integrity
35,83938,139foca-integrity
36,59837,106gem_velocity
38,80634,252dm-ambition
39,37833,568ri_for
41,49831,297rdp-arguments
44,81728,273alphasights-integrity
45,07628,043rogerdpack-arguments
49,47824,697rails_action_args
57,79019,929benhoskings-ambition
58,23219,712desc_method
70,02315,251nitpick
73,06014,318virtual_keywords

Depends on

RankDownloadsName
141,310,230,254minitest
150353,290,307rdoc
349152,925,389sexp_processor
2,4059,615,266hoe
2,4209,504,877RubyInline

Owners

#GravatarHandle
1icondrbrain
2iconzenspider