Skip to content
/ racc Public

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

License

Notifications You must be signed in to change notification settings

ruby/racc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2d89b0d · Jan 8, 2025
Jan 5, 2025
May 17, 2024
Jan 2, 2025
Jul 30, 2024
Jul 30, 2024
Nov 2, 2023
Apr 30, 2024
Jul 29, 2024
Dec 22, 2008
Jan 5, 2025
Jun 6, 2024
Jun 6, 2024
Nov 21, 2023
Jan 2, 2025
Apr 30, 2024
Jun 6, 2024
Jan 5, 2025
Oct 30, 2023
Jan 7, 2025

Repository files navigation

Racc

DESCRIPTION:

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

Requirement

*  Ruby 2.5 or later.

Installation

gem install:

  $ gem install racc

Testing 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/'.

Release flow

  • Update VERSION number of these files

    • RACC_VERSION in “ext/racc/com/headius/racc/Cparse.java”

    • VERSION in “lib/racc/info.rb”

  • Release as a gem by rake release with CRuby and JRuby because Racc gem provides 2 packages

  • Create new release on GitHub

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 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