Categories: None [Edit]
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,872 of 192,034
Downloads: 534,639
Daily
Ranking: 10,197 of 191,980
Downloads: 135
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 12,693 | 190,635 | merb-action-args |
| 13,702 | 164,087 | dm-sweatshop |
| 17,126 | 108,473 | heckle |
| 18,076 | 98,836 | red |
| 19,915 | 84,167 | ambition |
| 23,831 | 64,010 | sake |
| 27,445 | 52,197 | warden-googleapps |
| 35,428 | 36,701 | integrity |
| 35,806 | 36,211 | foca-integrity |
| 35,811 | 36,207 | gem_velocity |
| 38,004 | 33,420 | dm-ambition |
| 38,574 | 32,727 | ri_for |
| 40,450 | 30,695 | rdp-arguments |
| 44,283 | 27,269 | rogerdpack-arguments |
| 45,021 | 26,647 | alphasights-integrity |
| 48,332 | 24,187 | rails_action_args |
| 56,746 | 19,416 | benhoskings-ambition |
| 57,158 | 19,224 | desc_method |
| 69,410 | 14,648 | nitpick |
| 71,706 | 13,954 | virtual_keywords |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 14 | 1,190,948,638 | minitest |
| 167 | 293,315,782 | rdoc |
| 332 | 145,420,370 | sexp_processor |
| 2,343 | 9,222,992 | hoe |
| 2,387 | 8,892,798 | RubyInline |