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,872 of 191,980
Downloads: 534,504
Daily
Ranking: 10,243 of 191,939
Downloads: 125
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 12,691 | 190,617 | merb-action-args |
| 13,701 | 164,055 | dm-sweatshop |
| 17,122 | 108,418 | heckle |
| 18,075 | 98,824 | red |
| 19,903 | 84,128 | ambition |
| 23,798 | 64,001 | sake |
| 27,393 | 52,181 | warden-googleapps |
| 35,417 | 36,699 | integrity |
| 35,795 | 36,209 | foca-integrity |
| 35,800 | 36,204 | gem_velocity |
| 37,992 | 33,418 | dm-ambition |
| 38,571 | 32,724 | ri_for |
| 40,436 | 30,691 | rdp-arguments |
| 44,279 | 27,263 | rogerdpack-arguments |
| 45,033 | 26,631 | alphasights-integrity |
| 48,320 | 24,183 | rails_action_args |
| 56,755 | 19,403 | benhoskings-ambition |
| 57,143 | 19,222 | desc_method |
| 69,414 | 14,641 | nitpick |
| 71,703 | 13,948 | virtual_keywords |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 14 | 1,190,010,682 | minitest |
| 167 | 292,889,403 | rdoc |
| 332 | 145,359,679 | sexp_processor |
| 2,341 | 9,221,139 | hoe |
| 2,386 | 8,888,887 | RubyInline |