Skip to content
/ racc Public
forked from ruby/racc

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

nurse/racc

This branch is 140 commits behind ruby/racc:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8a1b5a9 · Jun 20, 2023
Apr 8, 2023
Sep 28, 2020
May 24, 2023
Dec 23, 2022
Jun 20, 2023
May 26, 2023
Jun 20, 2023
Dec 22, 2008
Feb 27, 2020
May 13, 2019
Feb 20, 2007
Jun 9, 2023
Apr 27, 2021
Nov 15, 2022
Jun 9, 2023
Oct 12, 2003
Nov 15, 2022

Repository files navigation

Racc

DESCRIPTION:

Racc is a 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

setup.rb install:

Type this in the top directory of the extracted archive:

  $ ruby setup.rb config
  $ ruby setup.rb setup
 ($ su)
  # ruby setup.rb install

You can install Racc into your favorite directory by giving
options to setup.rb. e.g.

  $ ruby setup.rb config --prefix=/usr

For details, try "ruby setup.rb --help".

If you don't have C Compiler
----------------------------

You can install Racc without C compilers. Type following
command in config phase.

  $ ruby setup.rb config --without-ext

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

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
                                            aamine@loveruby.net
                                          http://i.loveruby.net

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Yacc 79.7%
  • Ruby 14.3%
  • Java 3.6%
  • C 2.4%