Coder Social home page Coder Social logo

headius / racc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ruby/racc

1.0 3.0 1.0 1.47 MB

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

License: BSD 2-Clause "Simplified" License

Ruby 18.71% C 2.57% Shell 0.09% Java 3.37% HTML 2.21% Yacc 73.05%

racc's Introduction

Racc

DESCRIPTION:

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

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

Requirement

 *  Ruby 1.8.x or later.
(*) make and C compiler.

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 works?
For details of Racc, see HTML documents placed under 'doc.en/'
and sample grammer 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 of Racc, please email me. Your grammer file,
debug output genereted by "racc -g", are helpful.

                                                    Minero Aoki
                                            [email protected]
                                          http://i.loveruby.net

racc's People

Contributors

tenderlove avatar hsbt avatar alexdowad avatar headius avatar nobu avatar zenspider avatar drbrain avatar eregon avatar yui-knk avatar shyouhei avatar stomar avatar nurse avatar marcandre avatar k-tsj avatar matzbot avatar amatsuda avatar mame avatar hanachin avatar znz avatar

Stargazers

 avatar

Watchers

 avatar Chad Lancour avatar  avatar

Forkers

thoughtchad

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.