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: 8,167 of 196,106
Downloads: 548,523
Daily
Ranking: 9,938 of 196,079
Downloads: 77
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 13,116 | 194,543 | merb-action-args |
| 14,104 | 167,385 | dm-sweatshop |
| 17,415 | 112,766 | heckle |
| 18,528 | 101,289 | red |
| 20,342 | 86,477 | ambition |
| 24,410 | 65,190 | sake |
| 28,043 | 53,144 | warden-googleapps |
| 35,602 | 38,017 | integrity |
| 35,987 | 37,504 | foca-integrity |
| 36,342 | 37,017 | gem_velocity |
| 38,537 | 34,163 | dm-ambition |
| 39,095 | 33,502 | ri_for |
| 41,205 | 31,225 | rdp-arguments |
| 44,577 | 28,180 | alphasights-integrity |
| 44,841 | 27,949 | rogerdpack-arguments |
| 49,167 | 24,641 | rails_action_args |
| 57,457 | 19,860 | benhoskings-ambition |
| 57,825 | 19,679 | desc_method |
| 69,688 | 15,166 | nitpick |
| 72,588 | 14,272 | virtual_keywords |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 14 | 1,280,319,739 | minitest |
| 154 | 336,079,615 | rdoc |
| 346 | 150,971,465 | sexp_processor |
| 2,380 | 9,506,771 | hoe |
| 2,404 | 9,379,632 | RubyInline |