xref: /386bsd/usr/share/man/cat1/yyfix.0 (revision a2142627)
1YYFIX(1)                    386BSD Reference Manual                   YYFIX(1)
2
3NNAAMMEE
4     yyyyffiixx - extract tables from y.tab.c
5
6SSYYNNOOPPSSIISS
7     yyyyffiixx _f_i_l_e [_t_a_b_l_e_s]
8
9DDEESSCCRRIIPPTTIIOONN
10     Programs have historically used a script (often named ``:yyfix'') to
11     extract tables from the yacc(1) generated file _y._t_a_b._c. As the names of
12     the tables generated by the current version of yacc are different from
13     those of historical versions of yacc,  the shell script yyyyffiixx is provided
14     to simplify the transition.
15
16     The first (and required) argument to yyyyffiixx is the name of the file where
17     the extracted tables should be stored.
18
19     If further command line arguments are specified, they are taken as the
20     list of tables to be extracted.  Otherwise, yyyyffiixx attempts to determine
21     if the _y._t_a_b._c file is from an old or new yacc,  and extracts the
22     appropriate tables.
23
24     The tables ``yyexca'', ``yyact'', ``yypact'', ``yypgo'', ``yyr1'',
25     ``yyr2'', ``yychk'', and ``yydef'' are extracted from historical versions
26     of yacc.
27
28     The tables ``yylhs'', ``yylen'', ``yydefred'', ``yydgoto'', ``yysindex'',
29     ``yyrindex'', ``yygindex'', ``yytable'', ``yyname'', ``yyrule'', and
30     ``yycheck'', are extracted from the current version of yacc.
31
32FFIILLEESS
33     y.tab.c  File from which tables are extracted.
34
35SSEEEE AALLSSOO
36     yacc(1)
37
38HHIISSTTOORRYY
39     The yyyyffiixx command is currently under development.
40
41BSD Experimental                April 24, 1991                               1
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67