PageRenderTime 15ms CodeModel.GetById 12ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/usr.bin/yacc/yyfix.1

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