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,205 of 197,051
Downloads: 554,174
Daily
Ranking: 8,999 of 197,010
Downloads: 173
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 13,154 | 196,878 | merb-action-args |
| 14,185 | 168,796 | dm-sweatshop |
| 17,443 | 114,332 | heckle |
| 18,678 | 101,436 | red |
| 20,506 | 86,673 | ambition |
| 24,570 | 65,309 | sake |
| 28,243 | 53,246 | warden-googleapps |
| 35,563 | 38,485 | integrity |
| 35,833 | 38,114 | foca-integrity |
| 36,569 | 37,103 | gem_velocity |
| 38,776 | 34,248 | dm-ambition |
| 39,350 | 33,565 | ri_for |
| 41,463 | 31,295 | rdp-arguments |
| 44,775 | 28,266 | alphasights-integrity |
| 45,034 | 28,041 | rogerdpack-arguments |
| 49,424 | 24,694 | rails_action_args |
| 57,705 | 19,924 | benhoskings-ambition |
| 58,144 | 19,710 | desc_method |
| 69,893 | 15,249 | nitpick |
| 72,908 | 14,317 | virtual_keywords |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 14 | 1,309,340,755 | minitest |
| 150 | 352,720,308 | rdoc |
| 348 | 152,873,380 | sexp_processor |
| 2,404 | 9,612,990 | hoe |
| 2,419 | 9,502,585 | RubyInline |