1 .\" %W% %R% (Berkeley) %E%
3 .TH YACC 1 "July 15, 1990"
6 yacc \- an LALR(1) parser generator
8 .B yacc [ -dlrtv ] [ -b
16 reads the grammar specification in the file
18 and generates an LR(1) parser for it.
19 The parsers consist of a set of LALR(1) parsing tables and a driver routine
20 written in the C programming language.
22 normally writes the parse tables and the driver routine to the file
25 The following options are available:
28 \fB-b \fIfile_prefix\fR
31 option changes the prefix prepended to the output file names to
34 The default prefix is the character
38 The \fB-d\fR option causes the header file
45 option is not specified,
47 will insert #line directives in the generated code.
48 The #line directives let the C compiler relate errors in the
49 generated code to the user's original code.
50 If the \fB-l\fR option is specified,
52 will not insert the #line directives.
53 \&#line directives specified by the user will be retained.
55 \fB-p \fIsymbol_prefix\fR
58 option changes the prefix prepended to yacc-generated symbols to
61 The default prefix is the string
69 to produce separate files for code and tables. The code file
72 and the tables file is named
78 option changes the preprocessor directives generated by
80 so that debugging statements will be incorporated in the compiled code.
85 option causes a human-readable description of the generated parser to
86 be written to the file
90 If the environment variable TMPDIR is set, the string denoted by
91 TMPDIR will be used as the name of the directory where the temporary
102 .IR /tmp/yacc.aXXXXXX
104 .IR /tmp/yacc.tXXXXXX
106 .IR /tmp/yacc.uXXXXXX
108 If there are rules that are never reduced, the number of such rules is
109 reported on standard error.
110 If there are any LALR(1) conflicts, the number of conflicts is reported