summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-12-23 21:04:22 +0400
committerIgor Pashev <pashev.igor@gmail.com>2012-12-23 21:04:22 +0400
commitaccc613df81202f356ffa9c6a688614f00660995 (patch)
treea114a7b4a26be540dae3ca13acec026c5463b17d
parente57f1783983a7754506432b6e6641b84d641db62 (diff)
downloadillumos-packaging-accc613df81202f356ffa9c6a688614f00660995.tar.gz
Patch yacc man page
-rw-r--r--sgs-yacc/debian/patches/sgs-yacc-man.patch168
1 files changed, 168 insertions, 0 deletions
diff --git a/sgs-yacc/debian/patches/sgs-yacc-man.patch b/sgs-yacc/debian/patches/sgs-yacc-man.patch
new file mode 100644
index 0000000..99fce2f
--- /dev/null
+++ b/sgs-yacc/debian/patches/sgs-yacc-man.patch
@@ -0,0 +1,168 @@
+Index: sgs-yacc/usr/src/man/man1/sgs-yacc.1
+===================================================================
+--- sgs-yacc.orig/usr/src/man/man1/sgs-yacc.1 2012-10-08 04:25:45.000000000 +0400
++++ sgs-yacc/usr/src/man/man1/sgs-yacc.1 2012-12-23 21:03:58.261810707 +0400
+@@ -8,20 +8,20 @@
+ .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
+ .\" See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with
+ .\" the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
+-.TH YACC 1 "Aug 24, 2009"
++.TH SGS YACC 1 "Aug 24, 2009"
+ .SH NAME
+-yacc \- yet another compiler-compiler
++sgs-yacc \- yet another compiler-compiler
+ .SH SYNOPSIS
+ .LP
+ .nf
+-\fByacc\fR [\fB-dltVv\fR] [\fB-b\fR \fIfile_prefix\fR] [\fB-Q\fR [y | n]]
++\fBsgs-yacc\fR [\fB-dltVv\fR] [\fB-b\fR \fIfile_prefix\fR] [\fB-Q\fR [y | n]]
+ [\fB-P\fR \fIparser\fR] [\fB-p\fR \fIsym_prefix\fR] \fIfile\fR
+ .fi
+
+ .SH DESCRIPTION
+ .sp
+ .LP
+-The \fByacc\fR command converts a context-free grammar into a set of tables for
++The \fBsgs-yacc\fR command converts a context-free grammar into a set of tables for
+ a simple automaton that executes an LALR(1) parsing algorithm. The grammar can
+ be ambiguous. Specified precedence rules are used to break ambiguities.
+ .sp
+@@ -29,8 +29,8 @@
+ The output file, \fBy.tab.c\fR, must be compiled by the C compiler to produce a
+ function \fByyparse()\fR. This program must be loaded with the lexical analyzer
+ program, \fByylex()\fR, as well as \fBmain()\fR and \fByyerror()\fR, an error
+-handling routine. These routines must be supplied by the user. The \fBlex\fR(1)
+-command is useful for creating lexical analyzers usable by \fByacc\fR.
++handling routine. These routines must be supplied by the user. The \fBsgs-lex\fR(1)
++command is useful for creating lexical analyzers usable by \fBsgs-yacc\fR.
+ .SH OPTIONS
+ .sp
+ .LP
+@@ -56,7 +56,7 @@
+ .ad
+ .RS 18n
+ Generates the file \fBy.tab.h\fR with the \fB#define\fR statements that
+-associate the \fByacc\fR user-assigned "token codes" with the user-declared
++associate the \fBsgs-yacc\fR user-assigned "token codes" with the user-declared
+ "token names". This association allows source files other than \fBy.tab.c\fR to
+ access the token codes.
+ .RE
+@@ -79,13 +79,13 @@
+ .ad
+ .RS 18n
+ Uses \fIsym_prefix\fR instead of \fByy\fR as the prefix for all external names
+-produced by \fByacc\fR. The names affected include the functions
++produced by \fBsgs-yacc\fR. The names affected include the functions
+ \fByyparse()\fR, \fByylex()\fR and \fByyerror()\fR, and the variables
+ \fIyylval\fR, \fIyychar\fR and \fIyydebug\fR. (In the remainder of this
+ section, the six symbols cited are referenced using their default names only as
+ a notational convenience.) Local names can also be affected by the \fB-p\fR
+ option. However, the \fB-p\fR option does not affect \fB#define\fR symbols
+-generated by \fByacc\fR.
++generated by \fBsgs-yacc\fR.
+ .RE
+
+ .sp
+@@ -99,7 +99,7 @@
+ .sp
+ .in +2
+ .nf
+-example% \fByacc -P ~/myparser parser.y\fR
++example% \fBsgs-yacc -P ~/myparser parser.y\fR
+ .fi
+ .in -2
+ .sp
+@@ -113,7 +113,7 @@
+ .ad
+ .RS 18n
+ The \fB-Qy\fR option puts the version stamping information in \fBy.tab.c\fR.
+-This allows you to know what version of \fByacc\fR built the file. The
++This allows you to know what version of \fBsgs-yacc\fR built the file. The
+ \fB-Qn\fR option (the default) writes no version information.
+ .RE
+
+@@ -149,7 +149,7 @@
+ \fB\fB-V\fR\fR
+ .ad
+ .RS 18n
+-Prints on the standard error output the version information for \fByacc\fR.
++Prints on the standard error output the version information for \fBsgs-yacc\fR.
+ .RE
+
+ .SH OPERANDS
+@@ -168,11 +168,11 @@
+
+ .SH EXAMPLES
+ .LP
+-\fBExample 1 \fRAccessing the yacc Library
++\fBExample 1 \fRAccessing the sgs-yacc Library
+ .sp
+ .LP
+-Access to the \fByacc\fR library is obtained with library search operands to
+-\fBcc\fR. To use the \fByacc\fR library \fBmain\fR:
++Access to the \fBsgs-yacc\fR library is obtained with library search operands to
++\fBcc\fR. To use the \fBsgs-yacc\fR library \fBmain\fR:
+
+ .sp
+ .in +2
+@@ -184,8 +184,8 @@
+
+ .sp
+ .LP
+-Both the \fBlex\fR library and the \fByacc\fR library contain \fBmain\fR. To
+-access the \fByacc\fR \fBmain\fR:
++Both the \fBsgs-lex\fR library and the \fBsgs-yacc\fR library contain \fBmain\fR. To
++access the \fBsgs-yacc\fR \fBmain\fR:
+
+ .sp
+ .in +2
+@@ -197,12 +197,12 @@
+
+ .sp
+ .LP
+-This ensures that the \fByacc\fR library is searched first, so that its
++This ensures that the \fBsgs-yacc\fR library is searched first, so that its
+ \fBmain\fR is used.
+
+ .sp
+ .LP
+-The historical \fByacc\fR libraries have contained two simple functions that
++The historical \fBsgs-yacc\fR libraries have contained two simple functions that
+ are normally coded by the application programmer. These library functions are
+ similar to the following code:
+
+@@ -237,13 +237,13 @@
+ .sp
+ .LP
+ See \fBenviron\fR(5) for descriptions of the following environment variables
+-that affect the execution of \fByacc\fR: \fBLANG\fR, \fBLC_ALL\fR,
++that affect the execution of \fBsgs-yacc\fR: \fBLANG\fR, \fBLC_ALL\fR,
+ \fBLC_CTYPE\fR, \fBLC_MESSAGES\fR, and \fBNLSPATH\fR.
+ .sp
+ .LP
+-\fByacc\fR can handle characters from \fBEUC\fR primary and supplementary
++\fBsgs-yacc\fR can handle characters from \fBEUC\fR primary and supplementary
+ codesets as one-token symbols. \fBEUC\fR codes can only be single character
+-quoted terminal symbols. \fByacc\fR expects \fByylex()\fR to return a wide
++quoted terminal symbols. \fBsgs-yacc\fR expects \fByylex()\fR to return a wide
+ character (\fBwchar_t\fR) value for these one-token symbols.
+ .SH EXIT STATUS
+ .sp
+@@ -352,7 +352,7 @@
+ .SH SEE ALSO
+ .sp
+ .LP
+-\fBlex\fR(1), \fBattributes\fR(5), \fBenviron\fR(5), \fBstandards\fR(5)
++\fBsgs-lex\fR(1), \fBflex\fR(1), \fBbison\fR(1), \fBattributes\fR(5), \fBenviron\fR(5), \fBstandards\fR(5)
+ .SH DIAGNOSTICS
+ .sp
+ .LP
+@@ -363,7 +363,7 @@
+ .SH NOTES
+ .sp
+ .LP
+-Because file names are fixed, at most one \fByacc\fR process can be active in a
++Because file names are fixed, at most one \fBsgs-yacc\fR process can be active in a
+ given directory at a given time.
+ .sp
+ .LP