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,903 of 192,505
Downloads: 536,507
Daily
Ranking: 8,798 of 192,483
Downloads: 178
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 12,861 | 191,146 | merb-action-args |
| 13,883 | 164,520 | dm-sweatshop |
| 17,257 | 109,149 | heckle |
| 18,234 | 99,236 | red |
| 20,089 | 84,363 | ambition |
| 23,975 | 64,251 | sake |
| 27,595 | 52,375 | warden-googleapps |
| 35,471 | 36,875 | integrity |
| 35,876 | 36,347 | foca-integrity |
| 35,887 | 36,334 | gem_velocity |
| 38,062 | 33,559 | dm-ambition |
| 38,674 | 32,847 | ri_for |
| 40,586 | 30,771 | rdp-arguments |
| 44,349 | 27,385 | rogerdpack-arguments |
| 45,117 | 26,753 | alphasights-integrity |
| 48,484 | 24,255 | rails_action_args |
| 56,879 | 19,474 | benhoskings-ambition |
| 57,288 | 19,289 | desc_method |
| 69,422 | 14,738 | nitpick |
| 71,793 | 14,023 | virtual_keywords |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 14 | 1,203,696,577 | minitest |
| 165 | 299,004,962 | rdoc |
| 336 | 146,210,042 | sexp_processor |
| 2,353 | 9,250,942 | hoe |
| 2,394 | 8,942,534 | RubyInline |