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: 307 of 184,163
Downloads: 123,016,012
Daily
Ranking: 933 of 184,148
Downloads: 40,967
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
1,022 | 37,408,023 | gettext_i18n_rails |
1,134 | 32,026,489 | html2haml |
1,287 | 27,218,200 | flay |
1,434 | 22,090,678 | flog |
1,630 | 16,965,523 | ruby2ruby |
1,767 | 14,162,763 | protocol |
1,840 | 12,434,900 | rubycritic |
2,253 | 7,788,093 | fasterer |
2,638 | 5,575,299 | hairtrigger |
3,711 | 2,498,590 | churn |
3,853 | 2,284,837 | roodi |
5,214 | 1,083,382 | debride |
5,672 | 874,976 | safemode |
5,846 | 813,979 | sourcify |
5,863 | 806,368 | dawnscanner |
5,867 | 805,305 | i18nliner |
6,878 | 551,633 | partialruby |
6,955 | 535,456 | wrong |
7,310 | 478,661 | quality |
7,983 | 410,365 | ripper_ruby_parser |
Depends on
Rank | Downloads | Name |
---|---|---|
10 | 997,150,927 | rake |
78 | 438,470,673 | racc |
206 | 181,655,885 | rdoc |
292 | 130,894,478 | sexp_processor |
2,133 | 8,665,997 | hoe |
21,743 | 63,811 | oedipus_lex |
Owners
# | Gravatar | Handle |
---|---|---|
1 | zenspider |