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: 295 of 183,139
Downloads: 120,803,627
Daily
Ranking: 839 of 183,127
Downloads: 21,159
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
1,040 | 34,627,543 | gettext_i18n_rails |
1,096 | 31,612,475 | html2haml |
1,244 | 26,617,070 | flay |
1,393 | 21,540,949 | flog |
1,599 | 16,586,841 | ruby2ruby |
1,717 | 13,882,187 | protocol |
1,821 | 12,033,746 | rubycritic |
2,256 | 7,411,215 | fasterer |
2,635 | 5,302,547 | hairtrigger |
3,645 | 2,460,479 | churn |
3,788 | 2,265,999 | roodi |
5,213 | 1,033,063 | debride |
5,587 | 866,768 | safemode |
5,763 | 805,042 | sourcify |
5,790 | 793,916 | i18nliner |
5,808 | 790,841 | dawnscanner |
6,783 | 545,434 | partialruby |
6,882 | 525,524 | wrong |
7,187 | 474,559 | quality |
7,692 | 408,034 | ripper_ruby_parser |
Depends on
Rank | Downloads | Name |
---|---|---|
10 | 954,857,689 | rake |
84 | 401,204,567 | racc |
210 | 168,249,756 | rdoc |
280 | 128,511,551 | sexp_processor |
2,089 | 8,575,570 | hoe |
22,028 | 61,182 | oedipus_lex |
Owners
# | Gravatar | Handle |
---|---|---|
1 | zenspider |