1 .\" %W% %R% (Berkeley) %E%
3 .TH YACC 1 "July\ 15,\ 1990"
6 Yacc \- an LALR(1) parser generator
8 .B yacc [ -dlrtv ] [ -b
14 reads the grammar specification in the file
16 and generates an LR(1) parser for it.
17 The parsers consist of a set of LALR(1) parsing tables and a driver routine
18 written in the C programming language.
20 normally writes the parse tables and the driver routine to the file
23 The following options are available:
29 option changes the prefix prepended to the output file names to
32 The default prefix is the character
36 The \fB-d\fR option causes the header file
43 option is not specified,
45 will insert \#line directives in the generated code.
46 The \#line directives let the C compiler relate errors in the
47 generated code to the user's original code.
48 If the \fB-l\fR option is specified,
50 will not insert the \#line directives.
51 \&\#line directives specified by the user will be retained.
58 to produce separate files for code and tables. The code file
61 and the tables file is named
67 option changes the preprocessor directives generated by
69 so that debugging statements will be incorporated in the compiled code.
74 option causes a human-readable description of the generated parser to
75 be written to the file
79 If the environment variable TMPDIR is set, the string denoted by
80 TMPDIR will be used as the name of the directory where the temporary
97 If there are rules that are never reduced, the number of such rules is
98 reported on standard error.
99 If there are any LALR(1) conflicts, the number of conflicts is reported