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,689 of 187,960
Downloads: 520,922
Daily
Ranking: 8,845 of 187,950
Downloads: 157
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 12,421 | 186,932 | merb-action-args |
| 13,383 | 161,665 | dm-sweatshop |
| 16,950 | 104,143 | heckle |
| 17,749 | 96,589 | red |
| 19,490 | 82,906 | ambition |
| 23,382 | 62,694 | sake |
| 27,015 | 50,978 | warden-googleapps |
| 35,213 | 35,421 | integrity |
| 35,225 | 35,402 | gem_velocity |
| 35,352 | 35,186 | foca-integrity |
| 37,241 | 32,803 | dm-ambition |
| 38,062 | 31,863 | ri_for |
| 39,790 | 30,040 | rdp-arguments |
| 43,783 | 26,541 | rogerdpack-arguments |
| 44,662 | 25,852 | alphasights-integrity |
| 47,620 | 23,679 | rails_action_args |
| 55,983 | 18,998 | benhoskings-ambition |
| 56,440 | 18,786 | desc_method |
| 69,110 | 14,171 | nitpick |
| 70,950 | 13,631 | virtual_keywords |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 15 | 1,101,661,048 | minitest |
| 180 | 253,346,918 | rdoc |
| 319 | 140,057,317 | sexp_processor |
| 2,302 | 9,019,356 | hoe |
| 2,361 | 8,517,956 | RubyInline |