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,756 of 188,987
Downloads: 527,795
Daily
Ranking: 9,723 of 188,969
Downloads: 106
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 12,488 | 189,061 | merb-action-args |
| 13,490 | 162,669 | dm-sweatshop |
| 16,930 | 106,809 | heckle |
| 17,854 | 97,710 | red |
| 19,671 | 83,402 | ambition |
| 23,514 | 63,291 | sake |
| 27,103 | 51,670 | warden-googleapps |
| 35,058 | 36,167 | integrity |
| 35,333 | 35,814 | gem_velocity |
| 35,403 | 35,720 | foca-integrity |
| 37,462 | 33,106 | dm-ambition |
| 38,197 | 32,276 | ri_for |
| 40,020 | 30,313 | rdp-arguments |
| 43,945 | 26,845 | rogerdpack-arguments |
| 44,711 | 26,242 | alphasights-integrity |
| 47,845 | 23,912 | rails_action_args |
| 56,213 | 19,189 | benhoskings-ambition |
| 56,610 | 19,001 | desc_method |
| 69,122 | 14,395 | nitpick |
| 71,071 | 13,807 | virtual_keywords |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 14 | 1,133,910,572 | minitest |
| 177 | 267,328,210 | rdoc |
| 325 | 141,954,938 | sexp_processor |
| 2,316 | 9,102,273 | hoe |
| 2,368 | 8,664,866 | RubyInline |