4.3BSD-Reno/src/pgrm/yacc/yyfix.1

Compare this file to the similar file:
Show the results in this format:

.\" Copyright (c) 1990 The Regents of the University of California.
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms are permitted
.\" provided that: (1) source distributions retain this entire copyright
.\" notice and comment, and (2) distributions including binaries display
.\" the following acknowledgement:  ``This product includes software
.\" developed by the University of California, Berkeley and its contributors''
.\" in the documentation or other materials provided with the distribution
.\" and in all advertising materials mentioning features or use of this
.\" software. Neither the name of the University nor the names of its
.\" contributors may be used to endorse or promote products derived
.\" from this software without specific prior written permission.
.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.\"
.\"	@(#)yyfix.1	5.2 (Berkeley) 5/12/90
.\"
.TH YYFIX 1 "May 12, 1990"
.UC 7
.SH NAME
yyfix \- extract tables from y.tab.c
.SH SYNOPSIS
yyfix file [ tables ]
.SH DESCRIPTION
Programs have historically used a script (often named ``:yyfix'') to
extract tables from the
.I yacc
generated file ``y.tab.c''.
As the names of the tables generated by the current version of
.I yacc
are different from those of historical versions of
.IR yacc ,
the shell script
.I yyfix
is provided to simplify the transition.
.PP
The first, required, argument to
.I yyfix
is the name of the file where the extracted tables should be stored.
.PP
If further command line arguments are specified, they are taken as
the list of tables to be extracted.
Otherwise,
.I yyfix
attempts to determine if the ``y.tab.c'' file is from an old or new
.IR yacc ,
and extracts the appropriate tables.
.PP
The tables ``yyexca'', ``yyact'', ``yypact'', ``yypgo'',
``yyr1'', ``yyr2'', ``yychk'', and ``yydef'' are extracted
from historical versions of
.IR yacc .
.PP
The tables ``yylhs'', ``yylen'', ``yydefred'', ``yydgoto'', ``yysindex'',
``yyrindex'', ``yygindex'', ``yytable'', ``yyname'', ``yyrule'' and
``yycheck'' are extracted from the current version of
.IR yacc .
.SH FILES
y.tab.c		File from which tables are extracted.
.SH SEE ALSO
yacc(1)
.SH DIAGNOSTICS
.SH BUGS