Skip to content
Racc is an LALR(1) parser generator. It is written in Ruby itself, and generates ruby programs.
Branch: master
Clone or download
hsbt Merge pull request #115 from kares/kares-patch-1
use blessed ext loading on JRuby
Latest commit 1fa8592 Jul 8, 2019

README.rdoc

Racc

DESCRIPTION:

Racc is a LALR(1) parser generator.
It is written in Ruby itself, and generates Ruby programs.

NOTE: Ruby 1.8+ comes with the Racc runtime module. You
can run your parsers generated by racc 1.4.x out of the
box.

Requirements

 *  Ruby 1.8+
(*) make and C compiler.

Installation

gem install:

  $ gem install racc

Testing Racc

Racc comes with a simple calculator. To compile this at the shell:

    $ racc -o calc sample/calc.y

This process takes few seconds (or less). Then type:

    $ ruby calc

... Does it work?

For details about Racc, see the HTML documents under 'doc.en/'
and sample grammar files under 'sample/'.

License

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 Reports

Any kind of bug reports are welcome.
If you find a bug in Racc, please email me. Your grammar file,
and debug output generated by "racc -g", will be helpful.

                                                    Minero Aoki
                                            aamine@loveruby.net
                                          http://i.loveruby.net
You can’t perform that action at this time.