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: 293 of 180,416
Downloads: 108,957,790
Daily
Ranking: 349 of 180,403
Downloads: 67,446
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
1,027 | 30,376,883 | html2haml |
1,089 | 27,275,025 | gettext_i18n_rails |
1,157 | 25,020,324 | flay |
1,335 | 20,044,881 | flog |
1,515 | 15,508,448 | ruby2ruby |
1,749 | 10,979,451 | rubycritic |
2,066 | 7,508,808 | protocol |
2,208 | 6,617,646 | fasterer |
2,663 | 4,542,292 | hairtrigger |
3,576 | 2,272,449 | churn |
3,604 | 2,217,479 | roodi |
5,150 | 921,686 | debride |
5,337 | 845,890 | safemode |
5,527 | 777,016 | sourcify |
5,569 | 763,681 | i18nliner |
5,645 | 739,916 | dawnscanner |
6,581 | 521,159 | partialruby |
6,720 | 494,990 | wrong |
6,918 | 461,639 | quality |
7,362 | 400,290 | ripper_ruby_parser |
Depends on
Rank | Downloads | Name |
---|---|---|
16 | 849,672,215 | rake |
102 | 310,272,230 | racc |
214 | 145,830,930 | rdoc |
269 | 116,013,753 | sexp_processor |
1,949 | 8,399,356 | hoe |
22,827 | 54,450 | oedipus_lex |
Owners
# | Gravatar | Handle |
---|---|---|
1 | zenspider |