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: 296 of 183,487
Downloads: 121,596,376
Daily
Ranking: 853 of 183,477
Downloads: 15,558
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
1,038 | 35,491,498 | gettext_i18n_rails |
1,115 | 31,758,645 | html2haml |
1,255 | 26,823,881 | flay |
1,401 | 21,726,080 | flog |
1,606 | 16,717,156 | ruby2ruby |
1,737 | 14,011,323 | protocol |
1,832 | 12,170,301 | rubycritic |
2,268 | 7,515,093 | fasterer |
2,636 | 5,398,460 | hairtrigger |
3,666 | 2,479,465 | churn |
3,813 | 2,271,594 | roodi |
5,214 | 1,047,414 | debride |
5,607 | 870,111 | safemode |
5,792 | 808,196 | sourcify |
5,819 | 798,356 | i18nliner |
5,829 | 796,148 | dawnscanner |
6,809 | 547,630 | partialruby |
6,905 | 528,743 | wrong |
7,227 | 475,958 | quality |
7,893 | 408,736 | ripper_ruby_parser |
Depends on
Rank | Downloads | Name |
---|---|---|
10 | 969,414,103 | rake |
83 | 413,805,015 | racc |
210 | 172,618,531 | rdoc |
282 | 129,368,851 | sexp_processor |
2,105 | 8,605,313 | hoe |
21,860 | 62,324 | oedipus_lex |
Owners
# | Gravatar | Handle |
---|---|---|
1 | zenspider |