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,206 of 197,085
Downloads: 554,412
Daily
Ranking: 7,276 of 197,066
Downloads: 143
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 13,157 | 196,966 | merb-action-args |
| 14,189 | 168,858 | dm-sweatshop |
| 17,441 | 114,395 | heckle |
| 18,687 | 101,438 | red |
| 20,515 | 86,693 | ambition |
| 24,577 | 65,311 | sake |
| 28,252 | 53,246 | warden-googleapps |
| 35,571 | 38,503 | integrity |
| 35,839 | 38,139 | foca-integrity |
| 36,598 | 37,106 | gem_velocity |
| 38,806 | 34,252 | dm-ambition |
| 39,378 | 33,568 | ri_for |
| 41,498 | 31,297 | rdp-arguments |
| 44,817 | 28,273 | alphasights-integrity |
| 45,076 | 28,043 | rogerdpack-arguments |
| 49,478 | 24,697 | rails_action_args |
| 57,790 | 19,929 | benhoskings-ambition |
| 58,232 | 19,712 | desc_method |
| 70,023 | 15,251 | nitpick |
| 73,060 | 14,318 | virtual_keywords |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 14 | 1,310,230,254 | minitest |
| 150 | 353,290,307 | rdoc |
| 349 | 152,925,389 | sexp_processor |
| 2,405 | 9,615,266 | hoe |
| 2,420 | 9,504,877 | RubyInline |