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: 329 of 187,224
Downloads: 130,316,618
Daily
Ranking: 662 of 187,196
Downloads: 35,914
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
1,263 | 33,314,425 | html2haml |
1,348 | 29,551,773 | flay |
1,500 | 24,146,522 | flog |
1,690 | 18,298,198 | ruby2ruby |
1,871 | 14,695,022 | protocol |
1,911 | 14,119,582 | rubycritic |
2,302 | 8,827,461 | fasterer |
2,650 | 6,563,492 | hairtrigger |
3,807 | 2,692,853 | churn |
4,014 | 2,348,508 | roodi |
5,168 | 1,276,075 | debride |
5,944 | 893,177 | safemode |
6,061 | 851,834 | dawnscanner |
6,065 | 850,464 | sourcify |
6,068 | 848,763 | i18nliner |
7,169 | 574,305 | wrong |
7,232 | 563,541 | partialruby |
7,814 | 491,918 | quality |
8,385 | 417,598 | ripper_ruby_parser |
9,036 | 353,916 | brakeman-min |
Depends on
Rank | Downloads | Name |
---|---|---|
10 | 1,151,463,039 | rake |
64 | 571,436,643 | racc |
185 | 241,656,823 | rdoc |
315 | 138,695,654 | sexp_processor |
2,285 | 8,953,144 | hoe |
21,202 | 71,400 | oedipus_lex |
Owners
# | Gravatar | Handle |
---|---|---|
1 | zenspider |