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,673 of 187,591
Downloads: 518,774
Daily
Ranking: 7,233 of 187,571
Downloads: 142
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 12,391 | 186,182 | merb-action-args |
| 13,332 | 161,359 | dm-sweatshop |
| 16,918 | 103,526 | heckle |
| 17,697 | 96,210 | red |
| 19,436 | 82,589 | ambition |
| 23,330 | 62,449 | sake |
| 26,969 | 50,746 | warden-googleapps |
| 35,154 | 35,249 | gem_velocity |
| 35,205 | 35,180 | integrity |
| 35,314 | 35,027 | foca-integrity |
| 37,174 | 32,672 | dm-ambition |
| 37,991 | 31,733 | ri_for |
| 39,737 | 29,911 | rdp-arguments |
| 43,713 | 26,425 | rogerdpack-arguments |
| 44,687 | 25,661 | alphasights-integrity |
| 47,553 | 23,580 | rails_action_args |
| 55,869 | 18,930 | benhoskings-ambition |
| 56,343 | 18,717 | desc_method |
| 69,034 | 14,101 | nitpick |
| 70,930 | 13,551 | virtual_keywords |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 15 | 1,089,701,321 | minitest |
| 182 | 248,248,053 | rdoc |
| 318 | 139,402,166 | sexp_processor |
| 2,297 | 8,987,679 | hoe |
| 2,360 | 8,463,192 | RubyInline |