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,295 of 184,912
Downloads: 497,535
Daily
Ranking: 13,062 of 184,894
Downloads: 23
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
12,000 | 179,916 | merb-action-args |
12,891 | 157,663 | dm-sweatshop |
16,685 | 98,023 | heckle |
17,237 | 92,861 | red |
18,882 | 80,362 | ambition |
22,866 | 60,067 | sake |
26,550 | 48,638 | warden-googleapps |
34,904 | 33,354 | integrity |
34,971 | 33,272 | gem_velocity |
34,980 | 33,258 | foca-integrity |
36,549 | 31,394 | dm-ambition |
37,662 | 30,121 | ri_for |
39,031 | 28,771 | rdp-arguments |
43,676 | 24,898 | rogerdpack-arguments |
44,486 | 24,263 | alphasights-integrity |
46,804 | 22,658 | rails_action_args |
54,988 | 18,161 | benhoskings-ambition |
55,142 | 18,098 | desc_method |
68,639 | 13,382 | nitpick |
69,803 | 13,053 | virtual_keywords |
Depends on
Rank | Downloads | Name |
---|---|---|
19 | 967,909,604 | minitest |
202 | 192,657,834 | rdoc |
297 | 132,606,989 | sexp_processor |
2,163 | 8,723,082 | hoe |
2,270 | 7,937,205 | RubyInline |