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,912 of 192,861
Downloads: 537,255
Daily
Ranking: 10,157 of 192,676
Downloads: 81
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 12,880 | 191,227 | merb-action-args |
| 13,890 | 164,653 | dm-sweatshop |
| 17,257 | 109,349 | heckle |
| 18,246 | 99,330 | red |
| 20,104 | 84,468 | ambition |
| 23,999 | 64,305 | sake |
| 27,625 | 52,418 | warden-googleapps |
| 35,499 | 36,913 | integrity |
| 35,863 | 36,433 | foca-integrity |
| 35,891 | 36,394 | gem_velocity |
| 38,075 | 33,609 | dm-ambition |
| 38,701 | 32,882 | ri_for |
| 40,624 | 30,801 | rdp-arguments |
| 44,367 | 27,420 | rogerdpack-arguments |
| 45,124 | 26,810 | alphasights-integrity |
| 48,535 | 24,277 | rails_action_args |
| 56,905 | 19,508 | benhoskings-ambition |
| 57,326 | 19,318 | desc_method |
| 69,467 | 14,757 | nitpick |
| 71,840 | 14,041 | virtual_keywords |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 14 | 1,207,656,884 | minitest |
| 165 | 300,770,743 | rdoc |
| 336 | 146,474,199 | sexp_processor |
| 2,355 | 9,261,534 | hoe |
| 2,393 | 8,971,451 | RubyInline |