diff options
Diffstat (limited to 'usr/src/man/man1/yacc.1')
| -rw-r--r-- | usr/src/man/man1/yacc.1 | 55 |
1 files changed, 8 insertions, 47 deletions
diff --git a/usr/src/man/man1/yacc.1 b/usr/src/man/man1/yacc.1 index 3d7ce7d18e..9d2d8ca16b 100644 --- a/usr/src/man/man1/yacc.1 +++ b/usr/src/man/man1/yacc.1 @@ -8,13 +8,13 @@ .\" 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 "24 Aug 2009" "SunOS 5.11" "User Commands" +.TH YACC 1 "Aug 24, 2009" .SH NAME 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]] +\fByacc\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 @@ -37,12 +37,10 @@ command is useful for creating lexical analyzers usable by \fByacc\fR. The following options are supported: .sp .ne 2 -.mk .na \fB\fB-b\fR \fIfile_prefix\fR\fR .ad .RS 18n -.rt Uses \fIfile_prefix\fR instead of \fBy\fR as the prefix for all output files. The code file \fBy.tab.c\fR, the header file \fBy.tab.h\fR (created when \fB-d\fR is specified), and the description file \fBy.output\fR (created when @@ -53,12 +51,10 @@ respectively. .sp .ne 2 -.mk .na \fB\fB-d\fR\fR .ad .RS 18n -.rt 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 "token names". This association allows source files other than \fBy.tab.c\fR to @@ -67,12 +63,10 @@ access the token codes. .sp .ne 2 -.mk .na \fB\fB-l\fR\fR .ad .RS 18n -.rt Specifies that the code produced in \fBy.tab.c\fR does not contain any \fB#line\fR constructs. This option should only be used after the grammar and the associated actions are fully debugged. @@ -80,12 +74,10 @@ the associated actions are fully debugged. .sp .ne 2 -.mk .na \fB\fB-p\fR \fIsym_prefix\fR\fR .ad .RS 18n -.rt 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 \fByyparse()\fR, \fByylex()\fR and \fByyerror()\fR, and the variables @@ -98,12 +90,10 @@ generated by \fByacc\fR. .sp .ne 2 -.mk .na \fB\fB-P\fR \fIparser\fR\fR .ad .RS 18n -.rt Allows you to specify the parser of your choice instead of \fB/usr/share/lib/ccs/yaccpar\fR. For example, you can specify: .sp @@ -118,12 +108,10 @@ example% \fByacc -P ~/myparser parser.y\fR .sp .ne 2 -.mk .na \fB\fB-Q\fR[\fBy\fR|\fBn\fR]\fR .ad .RS 18n -.rt 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 \fB-Qn\fR option (the default) writes no version information. @@ -131,12 +119,10 @@ This allows you to know what version of \fByacc\fR built the file. The .sp .ne 2 -.mk .na \fB\fB-t\fR\fR .ad .RS 18n -.rt Compiles runtime debugging code by default. Runtime debugging code is always generated in \fBy.tab.c\fR under conditional compilation control. By default, this code is not included when \fBy.tab.c\fR is compiled. Whether or not the @@ -149,24 +135,20 @@ runtime debugging code is smaller and slightly faster. .sp .ne 2 -.mk .na \fB\fB-v\fR\fR .ad .RS 18n -.rt Prepares the file \fBy.output\fR, which contains a description of the parsing tables and a report on conflicts generated by ambiguities in the grammar. .RE .sp .ne 2 -.mk .na \fB\fB-V\fR\fR .ad .RS 18n -.rt Prints on the standard error output the version information for \fByacc\fR. .RE @@ -176,12 +158,10 @@ Prints on the standard error output the version information for \fByacc\fR. The following operand is required: .sp .ne 2 -.mk .na \fB\fIfile\fR\fR .ad .RS 8n -.rt A path name of a file containing instructions for which a parser is to be created. .RE @@ -271,101 +251,83 @@ character (\fBwchar_t\fR) value for these one-token symbols. The following exit values are returned: .sp .ne 2 -.mk .na \fB\fB0\fR\fR .ad .RS 6n -.rt Successful completion. .RE .sp .ne 2 -.mk .na \fB\fB>0\fR\fR .ad .RS 6n -.rt An error occurred. .RE .SH FILES .sp .ne 2 -.mk .na \fB\fBy.output\fR\fR .ad .RS 14n -.rt state transitions of the generated parser .RE .sp .ne 2 -.mk .na \fB\fBy.tab.c\fR\fR .ad .RS 14n -.rt source code of the generated parser .RE .sp .ne 2 -.mk .na \fB\fBy.tab.h\fR\fR .ad .RS 14n -.rt header file for the generated parser .RE .sp .ne 2 -.mk .na \fB\fByacc.acts\fR\fR .ad .RS 14n -.rt temporary file .RE .sp .ne 2 -.mk .na \fB\fByacc.debug\fR\fR .ad .RS 14n -.rt temporary file .RE .sp .ne 2 -.mk .na \fB\fByacc.tmp\fR\fR .ad .RS 14n -.rt temporary file .RE .sp .ne 2 -.mk .na \fB\fByaccpar\fR\fR .ad .RS 14n -.rt parser prototype for C programs .RE @@ -377,15 +339,14 @@ See \fBattributes\fR(5) for descriptions of the following attributes: .sp .TS -tab() box; -cw(2.75i) |cw(2.75i) -lw(2.75i) |lw(2.75i) -. -ATTRIBUTE TYPEATTRIBUTE VALUE +box; +c | c +l | l . +ATTRIBUTE TYPE ATTRIBUTE VALUE _ -Interface StabilityCommitted +Interface Stability Committed _ -StandardSee \fBstandards\fR(5). +Standard See \fBstandards\fR(5). .TE .SH SEE ALSO |
