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: 330 of 186,947
Downloads: 129,704,328
Daily
Ranking: 804 of 186,938
Downloads: 16,480
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
1,021 | 43,246,873 | gettext_i18n_rails |
1,259 | 33,197,947 | html2haml |
1,346 | 29,309,199 | flay |
1,502 | 23,926,869 | flog |
1,688 | 18,187,696 | ruby2ruby |
1,842 | 14,661,372 | protocol |
1,893 | 13,918,097 | rubycritic |
2,297 | 8,743,172 | fasterer |
2,655 | 6,481,846 | hairtrigger |
3,795 | 2,681,130 | churn |
3,998 | 2,341,681 | roodi |
5,176 | 1,256,686 | debride |
5,931 | 890,219 | safemode |
6,046 | 848,075 | sourcify |
6,047 | 847,475 | dawnscanner |
6,061 | 842,977 | i18nliner |
7,150 | 571,503 | wrong |
7,202 | 562,372 | partialruby |
7,792 | 490,053 | quality |
8,350 | 416,091 | ripper_ruby_parser |
Depends on
Rank | Downloads | Name |
---|---|---|
10 | 1,139,345,512 | rake |
65 | 560,193,268 | racc |
188 | 236,480,412 | rdoc |
312 | 137,997,192 | sexp_processor |
2,270 | 8,918,680 | hoe |
21,291 | 70,266 | oedipus_lex |
Owners
# | Gravatar | Handle |
---|---|---|
1 | zenspider |