break out special local mail processing (e.g., mapping to the
[unix-history] / usr / src / usr.bin / yacc / yyfix.1
CommitLineData
b2a7c0f3 1.\" Copyright (c) 1990, 1991 The Regents of the University of California.
7aca28b0
KB
2.\" All rights reserved.
3.\"
b2a7c0f3 4.\" %sccs.include.redist.roff%
7aca28b0 5.\"
3839a0e1 6.\" @(#)yyfix.1 5.4 (Berkeley) %G%
7aca28b0 7.\"
b2a7c0f3
CL
8.Dd
9.Dt YYFIX 1
3839a0e1 10.Os BSD 4.4
b2a7c0f3
CL
11.Sh NAME
12.Nm yyfix
13.Nd extract tables from y.tab.c
14.Sh SYNOPSIS
15.Nm yyfix
16.Ar file
17.Op Ar tables
18.Sh DESCRIPTION
7aca28b0
KB
19Programs have historically used a script (often named ``:yyfix'') to
20extract tables from the
b2a7c0f3
CL
21.Xr yacc 1
22generated file
23.Pa y.tab.c .
7aca28b0 24As the names of the tables generated by the current version of
b2a7c0f3 25.Xr yacc
7aca28b0 26are different from those of historical versions of
b2a7c0f3 27.Xr yacc ,
7aca28b0 28the shell script
b2a7c0f3 29.Nm yyfix
7aca28b0 30is provided to simplify the transition.
b2a7c0f3
CL
31.Pp
32The first (and required) argument to
33.Nm yyfix
7aca28b0 34is the name of the file where the extracted tables should be stored.
b2a7c0f3 35.Pp
7aca28b0
KB
36If further command line arguments are specified, they are taken as
37the list of tables to be extracted.
38Otherwise,
b2a7c0f3
CL
39.Nm yyfix
40attempts to determine if the
41.Pa y.tab.c
42file is from an old or new
43.Xr yacc ,
7aca28b0 44and extracts the appropriate tables.
b2a7c0f3
CL
45.Pp
46The tables
47.Dq yyexca ,
48.Dq yyact ,
49.Dq yypact ,
50.Dq yypgo ,
51.Dq yyr1 ,
52.Dq yyr2 ,
53.Dq yychk ,
54and
55.Dq yydef
56are extracted
7aca28b0 57from historical versions of
b2a7c0f3
CL
58.Xr yacc .
59.Pp
60The tables
61.Dq yylhs ,
62.Dq yylen ,
63.Dq yydefred ,
64.Dq yydgoto ,
65.Dq yysindex ,
66.Dq yyrindex ,
67.Dq yygindex ,
68.Dq yytable ,
69.Dq yyname ,
70.Dq yyrule ,
71and
72.Dq yycheck ,
73are extracted from the current version of
74.Xr yacc .
75.Sh FILES
76.Bl -tag -width y.tab.c
77.It Pa y.tab.c
78File from which tables are extracted.
79.El
80.Sh SEE ALSO
81.Xr yacc 1
82.Sh HISTORY
83The
84.Nm
3839a0e1
CL
85command appears in
86.Bx 4.4 .