Commit | Line | Data |
---|---|---|
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 | .\" |
b2a7c0f3 | 6 | .\" @(#)yyfix.1 5.3 (Berkeley) %G% |
7aca28b0 | 7 | .\" |
b2a7c0f3 CL |
8 | .Dd |
9 | .Dt YYFIX 1 | |
10 | .Os | |
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 |
19 | Programs have historically used a script (often named ``:yyfix'') to |
20 | extract tables from the | |
b2a7c0f3 CL |
21 | .Xr yacc 1 |
22 | generated file | |
23 | .Pa y.tab.c . | |
7aca28b0 | 24 | As the names of the tables generated by the current version of |
b2a7c0f3 | 25 | .Xr yacc |
7aca28b0 | 26 | are different from those of historical versions of |
b2a7c0f3 | 27 | .Xr yacc , |
7aca28b0 | 28 | the shell script |
b2a7c0f3 | 29 | .Nm yyfix |
7aca28b0 | 30 | is provided to simplify the transition. |
b2a7c0f3 CL |
31 | .Pp |
32 | The first (and required) argument to | |
33 | .Nm yyfix | |
7aca28b0 | 34 | is the name of the file where the extracted tables should be stored. |
b2a7c0f3 | 35 | .Pp |
7aca28b0 KB |
36 | If further command line arguments are specified, they are taken as |
37 | the list of tables to be extracted. | |
38 | Otherwise, | |
b2a7c0f3 CL |
39 | .Nm yyfix |
40 | attempts to determine if the | |
41 | .Pa y.tab.c | |
42 | file is from an old or new | |
43 | .Xr yacc , | |
7aca28b0 | 44 | and extracts the appropriate tables. |
b2a7c0f3 CL |
45 | .Pp |
46 | The tables | |
47 | .Dq yyexca , | |
48 | .Dq yyact , | |
49 | .Dq yypact , | |
50 | .Dq yypgo , | |
51 | .Dq yyr1 , | |
52 | .Dq yyr2 , | |
53 | .Dq yychk , | |
54 | and | |
55 | .Dq yydef | |
56 | are extracted | |
7aca28b0 | 57 | from historical versions of |
b2a7c0f3 CL |
58 | .Xr yacc . |
59 | .Pp | |
60 | The 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 , | |
71 | and | |
72 | .Dq yycheck , | |
73 | are 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 | |
78 | File from which tables are extracted. | |
79 | .El | |
80 | .Sh SEE ALSO | |
81 | .Xr yacc 1 | |
82 | .Sh HISTORY | |
83 | The | |
84 | .Nm | |
85 | command is | |
86 | .Ud . |