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,784 of 189,455
Downloads: 529,320
Daily
Ranking: 10,641 of 189,432
Downloads: 66
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 12,532 | 189,427 | merb-action-args |
| 13,542 | 162,906 | dm-sweatshop |
| 16,951 | 107,182 | heckle |
| 17,893 | 97,976 | red |
| 19,707 | 83,555 | ambition |
| 23,554 | 63,454 | sake |
| 27,150 | 51,798 | warden-googleapps |
| 35,109 | 36,275 | integrity |
| 35,412 | 35,887 | gem_velocity |
| 35,462 | 35,802 | foca-integrity |
| 37,527 | 33,180 | dm-ambition |
| 38,231 | 32,374 | ri_for |
| 40,058 | 30,403 | rdp-arguments |
| 43,961 | 26,943 | rogerdpack-arguments |
| 44,753 | 26,312 | alphasights-integrity |
| 47,892 | 23,968 | rails_action_args |
| 56,252 | 19,250 | benhoskings-ambition |
| 56,654 | 19,057 | desc_method |
| 69,119 | 14,452 | nitpick |
| 71,155 | 13,835 | virtual_keywords |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 14 | 1,145,898,093 | minitest |
| 176 | 272,746,980 | rdoc |
| 328 | 142,661,507 | sexp_processor |
| 2,321 | 9,128,486 | hoe |
| 2,369 | 8,734,191 | RubyInline |