1 .\" Copyright (c) 1989, 1990 The Regents of the University of California.
2 .\" All rights reserved.
4 .\" This code is derived from software contributed to Berkeley by
5 .\" Robert Paul Corbett.
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
10 .\" 1. Redistributions of source code must retain the above copyright
11 .\" notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\" notice, this list of conditions and the following disclaimer in the
14 .\" documentation and/or other materials provided with the distribution.
15 .\" 3. All advertising materials mentioning features or use of this software
16 .\" must display the following acknowledgement:
17 .\" This product includes software developed by the University of
18 .\" California, Berkeley and its contributors.
19 .\" 4. Neither the name of the University nor the names of its contributors
20 .\" may be used to endorse or promote products derived from this software
21 .\" without specific prior written permission.
23 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 .\" @(#)yacc.1 5.8 (Berkeley) 5/24/93
37 .TH JAY 1 "May 24, 1993 / July 8, 1998"
40 jay \- an LALR(1) parser generator for Java and C#
42 .B jay [ -tv ] [ -c ] [ -p ] [ -b
52 reads the grammar specification in the file
54 and generates an LR(1) parser for it.
55 The parsers consist of a set of LALR(1) parsing tables and a driver routine
58 written in the Java programming language.
60 writes the parse tables and the driver routine to standard output.
62 The following options are available:
65 \fB-b \fIfile_prefix\fR
68 option changes the prefix prepended to the output file names to
71 The default prefix is the character
77 option makes jay generate C# code instead of the default Java.
83 debugging information to be incorporated in the compiled code.
88 option causes a human-readable description of the generated parser to
89 be written to the file
97 to print the directory in which its sample skeleton files are
98 installed. If a project wants to use the default skeleton file
99 included with \fIjay\fR, it can use this option in a makefile to
104 file included with the jay distribution.
107 If the environment variable TMPDIR is set, the string denoted by
108 TMPDIR will be used as the name of the directory where the temporary
115 .IR /tmp/yacc.aXXXXXX
117 .IR /tmp/yacc.tXXXXXX
119 .IR /tmp/yacc.uXXXXXX
121 If there are rules that are never reduced, the number of such rules is
122 reported on standard error.
123 If there are any LALR(1) conflicts, the number of conflicts is reported
127 is derived from Berkeley
129 Input conventions closely follow those of
134 file and the commented example included with the sources.