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,214 of 197,744
Downloads: 558,879
Daily
Ranking: 8,042 of 197,724
Downloads: 276
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 13,199 | 197,533 | merb-action-args |
| 14,246 | 169,153 | dm-sweatshop |
| 17,228 | 117,686 | heckle |
| 18,747 | 101,514 | red |
| 20,606 | 86,796 | ambition |
| 24,650 | 65,380 | sake |
| 28,353 | 53,290 | warden-googleapps |
| 35,624 | 38,651 | integrity |
| 35,888 | 38,279 | foca-integrity |
| 36,694 | 37,176 | gem_velocity |
| 38,895 | 34,323 | dm-ambition |
| 39,490 | 33,630 | ri_for |
| 41,608 | 31,338 | rdp-arguments |
| 44,923 | 28,324 | alphasights-integrity |
| 45,211 | 28,084 | rogerdpack-arguments |
| 49,632 | 24,734 | rails_action_args |
| 57,927 | 19,968 | benhoskings-ambition |
| 58,372 | 19,749 | desc_method |
| 70,147 | 15,290 | nitpick |
| 73,220 | 14,344 | virtual_keywords |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 14 | 1,324,561,847 | minitest |
| 147 | 362,648,494 | rdoc |
| 350 | 153,936,392 | sexp_processor |
| 2,409 | 9,652,728 | hoe |
| 2,422 | 9,569,857 | RubyInline |