BSD 4_3_Reno development
[unix-history] / usr / share / man / cat1 / yyfix.0
YYFIX(1) 1990 YYFIX(1)
N\bNA\bAM\bME\bE
yyfix - extract tables from y.tab.c
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
yyfix file [ tables ]
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
Programs have historically used a script (often named
``:yyfix'') to extract tables from the _\by_\ba_\bc_\bc generated file
``y.tab.c''. As the names of the tables generated by the
current version of _\by_\ba_\bc_\bc are different from those of histori-
cal versions of _\by_\ba_\bc_\bc, the shell script _\by_\by_\bf_\bi_\bx is provided to
simplify the transition.
The first, required, argument to _\by_\by_\bf_\bi_\bx is the name of the
file where the extracted tables should be stored.
If further command line arguments are specified, they are
taken as the list of tables to be extracted. Otherwise,
_\by_\by_\bf_\bi_\bx attempts to determine if the ``y.tab.c'' file is from
an old or new _\by_\ba_\bc_\bc, and extracts the appropriate tables.
The tables ``yyexca'', ``yyact'', ``yypact'', ``yypgo'',
``yyr1'', ``yyr2'', ``yychk'', and ``yydef'' are extracted
from historical versions of _\by_\ba_\bc_\bc.
The tables ``yylhs'', ``yylen'', ``yydefred'', ``yydgoto'',
``yysindex'', ``yyrindex'', ``yygindex'', ``yytable'',
``yyname'', ``yyrule'' and ``yycheck'' are extracted from
the current version of _\by_\ba_\bc_\bc.
F\bFI\bIL\bLE\bES\bS
y.tab.c File from which tables are extracted.
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
yacc(1)
D\bDI\bIA\bAG\bGN\bNO\bOS\bST\bTI\bIC\bCS\bS
B\bBU\bUG\bGS\bS
Printed 7/27/90 May 1