| manpages.info - online man pages | ![]() |
|||
|
yacc (1) Table of Contents
Nameyacc - an LALR(1) parser generator
Synopsisyacc [-dlrtv] [-b prefix] [-o outputfile] [-p symbol_prefix] filename
Descriptionyacc 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. yacc normally writes the parse tables and the driver routine to the file y.tab.c.
The following options are available:
EnvironmentThe following environment variable is referenced by :
TMPDIR If the environment variable TMPDIR is set, the string denoted by TMPDIR will be used as the name of the directory where the temporary files are created.
TablesThe names of the tables generated by this version of yacc are ``yylhs'', ``yylen'', ``yydefred'', ``yydgoto'', ``yysindex'', ``yyrindex'', ``yygindex'', ``yytable'', and ``yycheck''. Two additional tables, ``yyname'' and ``yyrule'', are created if YYDEBUG is defined and nonzero.
Files
y.code.c
DiagnosticsIf there are rules that are never reduced, the number of such rules is written to the standard error. If there are any LALR(1) conflicts, the number of conflicts is also written to the standard error.
StandardsThe yacc utility conforms to IEEE Std 1003.2 (``POSIX.2'').
|