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: 325 of 186,698
Downloads: 129,100,348
Daily
Ranking: 1,122 of 186,685
Downloads: 7,099
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
1,019 | 43,155,205 | gettext_i18n_rails |
1,251 | 33,075,681 | html2haml |
1,346 | 29,091,876 | flay |
1,500 | 23,732,900 | flog |
1,682 | 18,076,849 | ruby2ruby |
1,838 | 14,619,974 | protocol |
1,884 | 13,746,018 | rubycritic |
2,292 | 8,662,196 | fasterer |
2,650 | 6,400,071 | hairtrigger |
3,785 | 2,670,260 | churn |
3,985 | 2,335,464 | roodi |
5,177 | 1,239,287 | debride |
5,906 | 887,682 | safemode |
6,028 | 844,861 | sourcify |
6,032 | 842,749 | dawnscanner |
6,042 | 838,416 | i18nliner |
7,135 | 567,574 | wrong |
7,170 | 561,185 | partialruby |
7,768 | 487,825 | quality |
8,324 | 414,455 | ripper_ruby_parser |
Depends on
Rank | Downloads | Name |
---|---|---|
10 | 1,125,994,016 | rake |
67 | 548,154,633 | racc |
190 | 230,670,698 | rdoc |
309 | 137,287,509 | sexp_processor |
2,255 | 8,886,031 | hoe |
21,396 | 69,027 | oedipus_lex |
Owners
# | Gravatar | Handle |
---|---|---|
1 | zenspider |