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,720 of 188,588
Downloads: 525,119
Daily
Ranking: 6,600 of 188,571
Downloads: 129
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 12,461 | 188,565 | merb-action-args |
| 13,442 | 162,455 | dm-sweatshop |
| 16,982 | 105,355 | heckle |
| 17,816 | 97,389 | red |
| 19,624 | 83,292 | ambition |
| 23,478 | 63,137 | sake |
| 27,067 | 51,496 | warden-googleapps |
| 35,100 | 35,964 | integrity |
| 35,261 | 35,745 | gem_velocity |
| 35,362 | 35,610 | foca-integrity |
| 37,374 | 33,052 | dm-ambition |
| 38,154 | 32,179 | ri_for |
| 39,931 | 30,259 | rdp-arguments |
| 43,906 | 26,768 | rogerdpack-arguments |
| 44,676 | 26,148 | alphasights-integrity |
| 47,787 | 23,856 | rails_action_args |
| 56,116 | 19,150 | benhoskings-ambition |
| 56,557 | 18,947 | desc_method |
| 69,175 | 14,321 | nitpick |
| 71,020 | 13,767 | virtual_keywords |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 14 | 1,122,823,255 | minitest |
| 176 | 262,392,156 | rdoc |
| 325 | 141,268,106 | sexp_processor |
| 2,312 | 9,077,250 | hoe |
| 2,367 | 8,606,034 | RubyInline |