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,704 of 188,277
Downloads: 523,235
Daily
Ranking: 10,574 of 188,252
Downloads: 102
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 12,452 | 187,673 | merb-action-args |
| 13,418 | 162,123 | dm-sweatshop |
| 16,966 | 104,819 | heckle |
| 17,784 | 97,018 | red |
| 19,554 | 83,120 | ambition |
| 23,439 | 62,918 | sake |
| 27,066 | 51,218 | warden-googleapps |
| 35,180 | 35,673 | integrity |
| 35,252 | 35,572 | gem_velocity |
| 35,367 | 35,404 | foca-integrity |
| 37,314 | 32,949 | dm-ambition |
| 38,108 | 32,047 | ri_for |
| 39,862 | 30,177 | rdp-arguments |
| 43,830 | 26,684 | rogerdpack-arguments |
| 44,709 | 25,994 | alphasights-integrity |
| 47,711 | 23,778 | rails_action_args |
| 56,042 | 19,092 | benhoskings-ambition |
| 56,509 | 18,877 | desc_method |
| 69,111 | 14,267 | nitpick |
| 71,032 | 13,698 | virtual_keywords |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 14 | 1,113,187,765 | minitest |
| 179 | 258,445,668 | rdoc |
| 323 | 140,740,436 | sexp_processor |
| 2,310 | 9,052,332 | hoe |
| 2,367 | 8,570,753 | RubyInline |