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,402
Downloads: 109,122,627
Daily
Ranking: 352 of 180,392
Downloads: 72,370
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
1,028 | 30,396,857 | html2haml |
1,089 | 27,347,787 | gettext_i18n_rails |
1,159 | 25,041,366 | flay |
1,336 | 20,065,185 | flog |
1,515 | 15,522,873 | ruby2ruby |
1,749 | 10,992,891 | rubycritic |
2,056 | 7,595,990 | protocol |
2,209 | 6,634,733 | fasterer |
2,662 | 4,552,156 | hairtrigger |
3,575 | 2,274,049 | churn |
3,607 | 2,218,251 | roodi |
5,155 | 922,873 | debride |
5,341 | 846,251 | safemode |
5,529 | 777,451 | sourcify |
5,569 | 764,122 | i18nliner |
5,648 | 740,759 | dawnscanner |
6,589 | 521,721 | partialruby |
6,721 | 495,688 | wrong |
6,920 | 462,031 | quality |
7,367 | 400,550 | ripper_ruby_parser |
Depends on
Rank | Downloads | Name |
---|---|---|
16 | 851,212,111 | rake |
101 | 311,423,506 | racc |
214 | 146,124,327 | rdoc |
269 | 116,191,684 | sexp_processor |
1,952 | 8,404,214 | hoe |
22,806 | 54,523 | oedipus_lex |
Owners
# | Gravatar | Handle |
---|---|---|
1 | zenspider |