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,840 of 191,254
Downloads: 532,579
Daily
Ranking: 8,199 of 191,174
Downloads: 221
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 12,621 | 190,197 | merb-action-args |
| 13,637 | 163,599 | dm-sweatshop |
| 17,054 | 107,955 | heckle |
| 17,994 | 98,565 | red |
| 19,838 | 83,809 | ambition |
| 23,677 | 63,818 | sake |
| 27,282 | 52,046 | warden-googleapps |
| 35,182 | 36,572 | integrity |
| 35,581 | 36,057 | gem_velocity |
| 35,614 | 36,015 | foca-integrity |
| 37,741 | 33,316 | dm-ambition |
| 38,331 | 32,616 | ri_for |
| 40,230 | 30,563 | rdp-arguments |
| 44,063 | 27,152 | rogerdpack-arguments |
| 44,870 | 26,483 | alphasights-integrity |
| 48,080 | 24,094 | rails_action_args |
| 56,471 | 19,336 | benhoskings-ambition |
| 56,856 | 19,156 | desc_method |
| 69,197 | 14,573 | nitpick |
| 71,408 | 13,898 | virtual_keywords |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 14 | 1,174,633,726 | minitest |
| 169 | 285,976,002 | rdoc |
| 332 | 144,390,350 | sexp_processor |
| 2,336 | 9,184,272 | hoe |
| 2,381 | 8,834,847 | RubyInline |