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,654 of 187,239
Downloads: 516,107

Daily

Ranking: 7,289 of 187,224
Downloads: 164

Depended by

RankDownloadsName
12,353185,211merb-action-args
13,299160,941dm-sweatshop
16,908102,791heckle
17,66895,747red
19,36182,324ambition
23,28962,141sake
26,95950,411warden-googleapps
35,08135,104gem_velocity
35,27434,841integrity
35,28134,835foca-integrity
37,08032,528dm-ambition
38,00631,499ri_for
39,66429,773rdp-arguments
43,65926,289rogerdpack-arguments
44,71725,454alphasights-integrity
47,44723,493rails_action_args
55,70918,861benhoskings-ambition
56,22918,636desc_method
68,98214,013nitpick
70,81013,485virtual_keywords

Depends on

RankDownloadsName
161,076,711,297minitest
185241,836,103rdoc
315138,715,178sexp_processor
2,2868,954,469hoe
2,3558,407,533RubyInline

Owners

#GravatarHandle
1icondrbrain
2iconzenspider