Categories: None [Edit]
ruby_parser
ruby_parser (RP) is a ruby parser written in pure ruby (utilizing
racc--which does by default use a C extension). It outputs
s-expressions which can be manipulated and converted back to ruby via
the ruby2ruby gem.
As an example:
def conditional1 arg1
return 1 if arg1 == 0
return 0
end
becomes:
s(:defn, :conditional1, s(:args, :arg1),
s(:if,
s(:call, s(:lvar, :arg1), :==, s(:lit, 0)),
s(:return, s(:lit, 1)),
nil),
s(:return, s(:lit, 0)))
Tested against 801,039 files from the latest of all rubygems (as of 2013-05):
* 1.8 parser is at 99.9739% accuracy, 3.651 sigma
* 1.9 parser is at 99.9940% accuracy, 4.013 sigma
* 2.0 parser is at 99.9939% accuracy, 4.008 sigma
* 2.6 parser is at 99.9972% accuracy, 4.191 sigma
* 3.0 parser has a 100% parse rate.
* Tested against 2,672,412 unique ruby files across 167k gems.
* As do all the others now, basically.
Total
Ranking: 312 of 184,864
Downloads: 124,581,807
Daily
Ranking: 709 of 184,846
Downloads: 8,678
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
1,020 | 39,255,043 | gettext_i18n_rails |
1,165 | 32,302,791 | html2haml |
1,302 | 27,709,360 | flay |
1,453 | 22,535,860 | flog |
1,651 | 17,236,809 | ruby2ruby |
1,779 | 14,307,201 | protocol |
1,853 | 12,766,901 | rubycritic |
2,254 | 8,002,525 | fasterer |
2,642 | 5,768,834 | hairtrigger |
3,744 | 2,522,358 | churn |
3,889 | 2,299,578 | roodi |
5,201 | 1,124,568 | debride |
5,734 | 878,203 | safemode |
5,900 | 822,372 | sourcify |
5,911 | 817,197 | dawnscanner |
5,923 | 813,506 | i18nliner |
6,957 | 554,625 | partialruby |
7,029 | 541,042 | wrong |
7,551 | 481,216 | quality |
8,080 | 411,376 | ripper_ruby_parser |
Depends on
Rank | Downloads | Name |
---|---|---|
10 | 1,027,861,423 | rake |
75 | 466,255,933 | racc |
202 | 192,079,189 | rdoc |
297 | 132,521,554 | sexp_processor |
2,159 | 8,720,326 | hoe |
21,611 | 65,285 | oedipus_lex |
Owners
# | Gravatar | Handle |
---|---|---|
1 | zenspider |