3
4
Racc is a LALR(1) parser generator.
4
It is written in Ruby and outputs Ruby script.
8
* ruby version 1.4.x or later. Latest 1.6 is best.
15
$ ruby install.rb config
16
$ ruby install.rb setup
17
# ruby install.rb install (maybe by root)
19
You can install Racc into your favorite directory by using
20
install.rb options. For details, try "ruby install.rb --help".
5
It is written in Ruby itself, and generates Ruby program.
7
NOTE: Ruby 1.8.x comes with Racc runtime module. You
8
can run your parsers generated by racc 1.4.x out of the
15
* ruby version 1.6.x or later.
16
(*) make and C compiler.
22
Type this in the top directory of the extracted archive:
24
$ ruby setup.rb config
27
# ruby setup.rb install
29
You can install Racc into your favorite directory by giving
30
options to setup.rb. e.g.
32
$ ruby setup.rb config --prefix=/usr
34
For details, try "ruby setup.rb --help".
37
If you don't have C Compiler
38
----------------------------
40
You can install Racc without C compilers. Type following
41
command in config phase.
43
$ ruby setup.rb config --without-ext
24
49
Racc comes with simple calculator. To compile this, on shell:
26
$ racc -e ruby -o calc calc.y
28
This process costs few seconds (or less). Then type
33
For Racc details, see HTML documents placed under 'doc.en/'
53
This process costs few seconds (or less). Then type:
58
For details of Racc, see HTML documents placed under 'doc.en/'
34
59
and sample grammer files under 'sample/'.
38
65
Racc is distributed under the terms of the GNU Lesser General
39
Public License version 2. But ruby script file generated
40
by Racc is not. You can treat those files as you like.
44
Bug report is welcome.
45
If you find a bug of Racc, please e-mail me. Your grammer file,
66
Public License version 2. Note that you do NOT need to follow
67
LGPL for your own parser (racc outputs). You can provide those
68
files under any licenses you want.
74
Any kind of bug reports are welcome.
75
If you find a bug of Racc, please email me. Your grammer file,
46
76
debug output genereted by "racc -g", are helpful.
50
80
aamine@loveruby.net
51
http://www.loveruby.net