[BACK]Return to yyfix.1 CVS log [TXT][DIR] Up to [local] / src / usr.bin / yacc

Annotation of src/usr.bin/yacc/yyfix.1, Revision 1.1

1.1     ! millert     1: .\"    $OpenBSD: yacc.1,v 1.4 1998/10/30 00:24:45 aaron Exp $
        !             2: .\" Copyright (c) 1990, 1991 The Regents of the University of California.
        !             3: .\" All rights reserved.
        !             4: .\"
        !             5: .\" Redistribution and use in source and binary forms, with or without
        !             6: .\" modification, are permitted provided that the following conditions
        !             7: .\" are met:
        !             8: .\" 1. Redistributions of source code must retain the above copyright
        !             9: .\"    notice, this list of conditions and the following disclaimer.
        !            10: .\" 2. Redistributions in binary form must reproduce the above copyright
        !            11: .\"    notice, this list of conditions and the following disclaimer in the
        !            12: .\"    documentation and/or other materials provided with the distribution.
        !            13: .\" 3. All advertising materials mentioning features or use of this software
        !            14: .\"    must display the following acknowledgement:
        !            15: .\"    This product includes software developed by the University of
        !            16: .\"    California, Berkeley and its contributors.
        !            17: .\" 4. Neither the name of the University nor the names of its contributors
        !            18: .\"    may be used to endorse or promote products derived from this software
        !            19: .\"    without specific prior written permission.
        !            20: .\"
        !            21: .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
        !            22: .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
        !            23: .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
        !            24: .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
        !            25: .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
        !            26: .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
        !            27: .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
        !            28: .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
        !            29: .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
        !            30: .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
        !            31: .\" SUCH DAMAGE.
        !            32: .\"
        !            33: .\"     from: @(#)yyfix.1      5.4 (Berkeley) 3/23/93
        !            34: .\"
        !            35: .Dd March 23, 1993
        !            36: .Dt YYFIX 1
        !            37: .Os BSD 4.4
        !            38: .Sh NAME
        !            39: .Nm yyfix
        !            40: .Nd extract tables from y.tab.c
        !            41: .Sh SYNOPSIS
        !            42: .Nm yyfix
        !            43: .Ar file
        !            44: .Op Ar tables
        !            45: .Sh DESCRIPTION
        !            46: Programs have historically used a script (often named ``:yyfix'') to
        !            47: extract tables from the
        !            48: .Xr yacc 1
        !            49: generated file
        !            50: .Pa y.tab.c .
        !            51: As the names of the tables generated by the current version of
        !            52: .Xr yacc
        !            53: are different from those of historical versions of
        !            54: .Xr yacc ,
        !            55: the shell script
        !            56: .Nm yyfix
        !            57: is provided to simplify the transition.
        !            58: .Pp
        !            59: The first (and required) argument to
        !            60: .Nm yyfix
        !            61: is the name of the file where the extracted tables should be stored.
        !            62: .Pp
        !            63: If further command line arguments are specified, they are taken as
        !            64: the list of tables to be extracted.
        !            65: Otherwise,
        !            66: .Nm yyfix
        !            67: attempts to determine if the
        !            68: .Pa y.tab.c
        !            69: file is from an old or new
        !            70: .Xr yacc ,
        !            71: and extracts the appropriate tables.
        !            72: .Pp
        !            73: The tables
        !            74: .Dq yyexca ,
        !            75: .Dq yyact ,
        !            76: .Dq yypact ,
        !            77: .Dq yypgo ,
        !            78: .Dq yyr1 ,
        !            79: .Dq yyr2 ,
        !            80: .Dq yychk ,
        !            81: and
        !            82: .Dq yydef
        !            83: are extracted
        !            84: from historical versions of
        !            85: .Xr yacc .
        !            86: .Pp
        !            87: The tables
        !            88: .Dq yylhs ,
        !            89: .Dq yylen ,
        !            90: .Dq yydefred ,
        !            91: .Dq yydgoto ,
        !            92: .Dq yysindex ,
        !            93: .Dq yyrindex ,
        !            94: .Dq yygindex ,
        !            95: .Dq yytable ,
        !            96: .Dq yyname ,
        !            97: .Dq yyrule ,
        !            98: and
        !            99: .Dq yycheck ,
        !           100: are extracted from the current version of
        !           101: .Xr yacc .
        !           102: .Sh FILES
        !           103: .Bl -tag -width y.tab.c
        !           104: .It Pa y.tab.c
        !           105: File from which tables are extracted.
        !           106: .El
        !           107: .Sh SEE ALSO
        !           108: .Xr yacc 1
        !           109: .Sh HISTORY
        !           110: The
        !           111: .Nm
        !           112: command first appeared in
        !           113: .Bx 4.4 .