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,187 of 196,721
Downloads: 551,467
Daily
Ranking: 8,823 of 196,694
Downloads: 100
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 13,126 | 195,549 | merb-action-args |
| 14,131 | 168,046 | dm-sweatshop |
| 17,388 | 113,940 | heckle |
| 18,596 | 101,325 | red |
| 20,420 | 86,533 | ambition |
| 24,484 | 65,224 | sake |
| 28,133 | 53,183 | warden-googleapps |
| 35,584 | 38,213 | integrity |
| 35,911 | 37,776 | foca-integrity |
| 36,433 | 37,042 | gem_velocity |
| 38,645 | 34,193 | dm-ambition |
| 39,221 | 33,518 | ri_for |
| 41,346 | 31,240 | rdp-arguments |
| 44,672 | 28,201 | alphasights-integrity |
| 44,930 | 27,978 | rogerdpack-arguments |
| 49,283 | 24,661 | rails_action_args |
| 57,582 | 19,875 | benhoskings-ambition |
| 57,953 | 19,690 | desc_method |
| 69,751 | 15,204 | nitpick |
| 72,671 | 14,298 | virtual_keywords |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 14 | 1,294,745,029 | minitest |
| 152 | 344,213,097 | rdoc |
| 347 | 151,885,747 | sexp_processor |
| 2,390 | 9,558,724 | hoe |
| 2,415 | 9,439,523 | RubyInline |