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,633 of 186,698
Downloads: 508,494
Daily
Ranking: 6,575 of 186,685
Downloads: 82
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
12,296 | 182,674 | merb-action-args |
13,224 | 158,990 | dm-sweatshop |
16,880 | 100,967 | heckle |
17,614 | 94,204 | red |
19,306 | 81,154 | ambition |
23,272 | 60,901 | sake |
26,934 | 49,421 | warden-googleapps |
34,965 | 34,417 | gem_velocity |
35,101 | 34,235 | foca-integrity |
35,355 | 33,927 | integrity |
37,062 | 31,810 | dm-ambition |
38,048 | 30,727 | ri_for |
39,582 | 29,170 | rdp-arguments |
43,798 | 25,578 | rogerdpack-arguments |
44,587 | 24,945 | alphasights-integrity |
47,230 | 23,049 | rails_action_args |
55,291 | 18,584 | benhoskings-ambition |
55,939 | 18,313 | desc_method |
68,788 | 13,733 | nitpick |
70,204 | 13,312 | virtual_keywords |
Depends on
Rank | Downloads | Name |
---|---|---|
16 | 1,052,609,903 | minitest |
190 | 230,670,698 | rdoc |
309 | 137,287,509 | sexp_processor |
2,255 | 8,886,031 | hoe |
2,330 | 8,304,805 | RubyInline |