Racc
¶ ↑
描述:¶ ↑
Racc is an LALR(1) parser generator. It is written in Ruby itself, and generates Ruby program.
要求¶ ↑
* Ruby 2.5 or later.
安装¶ ↑
gem install: $ gem install racc
测试 Racc
¶ ↑
Racc comes with simple calculator. To compile this, on shell: $ racc -o calc calc.y This process costs few seconds (or less). Then type: $ ruby calc ... Does it work? For details of Racc, see HTML documents placed under 'doc/en/' and sample grammar files under 'sample/'.
发布流程¶ ↑
-
更新这些文件的 VERSION 号码
-
“ext/racc/com/headius/racc/Cparse.java” 中的
RACC_VERSION
-
“lib/racc/info.rb” 中的
VERSION
-
-
通过使用 CRuby 和 JRuby 的
rake release
发布 gem,因为Racc
gem 提供了 2 个软件包 -
在 GitHub 上创建新的发布版本
许可证¶ ↑
Racc is distributed under the same terms of ruby. (see the file COPYING). Note that you do NOT need to follow ruby license for your own parser (racc outputs). You can distribute those files under any licenses you want.
Bug 报告¶ ↑
Any kind of bug report is welcome. If you find a bug of Racc, please report an issue at https://github.com/ruby/racc/issues. Your grammar file, debug output generated by "racc -g", are helpful. Minero Aoki [email protected] http://i.loveruby.net