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,096 of 193,576
Downloads: 540,338
Daily
Ranking: 8,955 of 193,553
Downloads: 129
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 12,976 | 191,845 | merb-action-args |
| 13,983 | 165,183 | dm-sweatshop |
| 17,333 | 110,250 | heckle |
| 18,338 | 99,993 | red |
| 20,240 | 84,753 | ambition |
| 24,156 | 64,515 | sake |
| 27,739 | 52,673 | warden-googleapps |
| 35,549 | 37,224 | integrity |
| 35,999 | 36,627 | foca-integrity |
| 36,044 | 36,566 | gem_velocity |
| 38,235 | 33,760 | dm-ambition |
| 38,800 | 33,108 | ri_for |
| 40,782 | 30,934 | rdp-arguments |
| 44,498 | 27,586 | rogerdpack-arguments |
| 45,207 | 27,002 | alphasights-integrity |
| 48,703 | 24,406 | rails_action_args |
| 57,105 | 19,588 | benhoskings-ambition |
| 57,468 | 19,424 | desc_method |
| 69,470 | 14,898 | nitpick |
| 72,082 | 14,104 | virtual_keywords |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 14 | 1,232,541,246 | minitest |
| 164 | 311,936,176 | rdoc |
| 340 | 148,028,031 | sexp_processor |
| 2,366 | 9,332,915 | hoe |
| 2,389 | 9,165,215 | RubyInline |