Berkeley Yacc is distributed with no warranty whatever. The code is certain to contain errors. Neither the author nor any contributor takes responsibility for any consequences of its use.
Berkeley Yacc is in the public domain. The data structures and algorithms used in Berkeley Yacc are all either taken from documents available to the general public or are inventions of the author. Anyone may freely distribute source or binary forms of Berkeley Yacc whether unchanged or modified. Distributers may charge whatever fees they can obtain for Berkeley Yacc. Programs generated by Berkeley Yacc may be distributed freely.
Please report bugs to
[email protected]
Include a small example if possible. Please include the banner string from `skeleton.c' with the bug report. Do not expect rapid responses.
byacc [ -dlrtv ] [ -b prefix ] [ -Qy ] filename
bYacc reads the grammar specification in the file filename and generates an LR(1) parser for it. The parsers consist of a set of LALR(1) parsing tables and a driver routine written in the C programming language. bYacc normally writes the parse tables and the driver routine to the file `y.tab.c'.
The following options are available:
-b prefix
-d
-l
#line
directives in the generated
code. The #line
directives let the C compiler relate errors in
the generated code to your original code. Any #line
directives
you specify explicitly are retained.
-Qy
#ident
statement of the form
#ident "byacc: Berkeley Yacc (Cygnus)"
-Qn
#ident
statement should be included;
this is the default.
-r
-t
-V
-v
bYacc can produce these output files (shown with the default prefix `y', which you can change with the `-b' option):
y.tab.c
y.code.c
y.tab.h
y.output
If the environment variable TMPDIR
is set, its value is used as
the name of the directory where these temporary files are created (by
default `/tmp'):
/tmp/yacc.axxxxxx /tmp/yacc.txxxxxx /tmp/yacc.uXXXXXX
bYacc writes two sorts of diagnostic messages to standard error:
This document was generated on 7 September 2001 using texi2html 1.56k.