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: 8,246 of 198,430
Downloads: 560,865
Daily
Ranking: 11,955 of 198,401
Downloads: 87
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 13,252 | 197,896 | merb-action-args |
| 14,310 | 169,425 | dm-sweatshop |
| 17,245 | 118,530 | heckle |
| 18,837 | 101,638 | red |
| 20,679 | 86,919 | ambition |
| 24,756 | 65,456 | sake |
| 28,467 | 53,354 | warden-googleapps |
| 35,716 | 38,756 | integrity |
| 35,989 | 38,394 | foca-integrity |
| 36,797 | 37,263 | gem_velocity |
| 39,026 | 34,384 | dm-ambition |
| 39,623 | 33,672 | ri_for |
| 41,739 | 31,403 | rdp-arguments |
| 45,061 | 28,395 | alphasights-integrity |
| 45,347 | 28,140 | rogerdpack-arguments |
| 49,814 | 24,767 | rails_action_args |
| 58,106 | 20,020 | benhoskings-ambition |
| 58,564 | 19,788 | desc_method |
| 70,254 | 15,348 | nitpick |
| 73,403 | 14,378 | virtual_keywords |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 14 | 1,341,705,701 | minitest |
| 142 | 373,659,467 | rdoc |
| 353 | 155,056,779 | sexp_processor |
| 2,412 | 9,714,887 | hoe |
| 2,430 | 9,637,517 | RubyInline |