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,811 of 189,968
Downloads: 530,911
Daily
Ranking: 9,927 of 189,933
Downloads: 118
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 12,570 | 189,844 | merb-action-args |
| 13,572 | 163,243 | dm-sweatshop |
| 17,011 | 107,476 | heckle |
| 17,941 | 98,317 | red |
| 19,785 | 83,669 | ambition |
| 23,605 | 63,673 | sake |
| 27,209 | 51,920 | warden-googleapps |
| 35,129 | 36,436 | integrity |
| 35,472 | 35,986 | gem_velocity |
| 35,534 | 35,904 | foca-integrity |
| 37,645 | 33,243 | dm-ambition |
| 38,264 | 32,518 | ri_for |
| 40,140 | 30,485 | rdp-arguments |
| 43,991 | 27,066 | rogerdpack-arguments |
| 44,820 | 26,390 | alphasights-integrity |
| 47,980 | 24,035 | rails_action_args |
| 56,374 | 19,293 | benhoskings-ambition |
| 56,759 | 19,110 | desc_method |
| 69,132 | 14,520 | nitpick |
| 71,322 | 13,858 | virtual_keywords |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 14 | 1,158,882,510 | minitest |
| 171 | 279,071,716 | rdoc |
| 329 | 143,414,907 | sexp_processor |
| 2,330 | 9,153,957 | hoe |
| 2,375 | 8,782,055 | RubyInline |