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,936 of 193,081
Downloads: 538,341
Daily
Ranking: 10,726 of 193,053
Downloads: 64
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 12,916 | 191,471 | merb-action-args |
| 13,927 | 164,869 | dm-sweatshop |
| 17,284 | 109,693 | heckle |
| 18,292 | 99,583 | red |
| 20,164 | 84,619 | ambition |
| 24,064 | 64,412 | sake |
| 27,691 | 52,502 | warden-googleapps |
| 35,543 | 37,014 | integrity |
| 35,895 | 36,529 | foca-integrity |
| 35,945 | 36,476 | gem_velocity |
| 38,139 | 33,674 | dm-ambition |
| 38,749 | 32,974 | ri_for |
| 40,694 | 30,855 | rdp-arguments |
| 44,397 | 27,511 | rogerdpack-arguments |
| 45,164 | 26,892 | alphasights-integrity |
| 48,607 | 24,329 | rails_action_args |
| 56,994 | 19,538 | benhoskings-ambition |
| 57,421 | 19,348 | desc_method |
| 69,465 | 14,813 | nitpick |
| 71,949 | 14,066 | virtual_keywords |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 14 | 1,217,680,442 | minitest |
| 165 | 305,298,066 | rdoc |
| 337 | 147,123,150 | sexp_processor |
| 2,361 | 9,287,504 | hoe |
| 2,385 | 9,097,053 | RubyInline |