1 '\" te
2 .\" Copyright (c) 1992, X/Open Company Limited All Rights Reserved Portions Copyright (c) 1997, Sun Microsystems, Inc. All Rights Reserved
3 .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
4 .\" http://www.opengroup.org/bookstore/.
5 .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html.
6 .\" This notice shall appear on any product containing this material.
7 .\" 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.
8 .\" 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.
9 .\" 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]
10 .TH LEX 1 "Aug 22, 1997"
11 .SH NAME
12 lex \- generate programs for lexical tasks
13 .SH SYNOPSIS
14 .LP
15 .nf
16 \fBlex\fR [\fB-cntv\fR] [\fB-e\fR | \fB-w\fR] [\fB-V\fR \fB-Q\fR [y | n]] [\fIfile\fR]...
17 .fi
18
19 .SH DESCRIPTION
20 .sp
21 .LP
22 The \fBlex\fR utility generates C programs to be used in lexical processing of
23 character input, and that can be used as an interface to \fByacc\fR. The C
24 programs are generated from \fBlex\fR source code and conform to the ISO C
25 standard. Usually, the \fBlex\fR utility writes the program it generates to the
26 file \fBlex.yy.c\fR. The state of this file is unspecified if \fBlex\fR exits
27 with a non-zero exit status. See \fBEXTENDED DESCRIPTION\fR for a complete
28 description of the \fBlex\fR input language.
29 .SH OPTIONS
30 .sp
31 .LP
32 The following options are supported:
33 .sp
34 .ne 2
35 .na
36 \fB\fB-c\fR \fR
95 .sp
96 .ne 2
97 .na
98 \fB\fB-V\fR \fR
99 .ad
100 .RS 12n
101 Prints out version information on standard error.
102 .RE
103
104 .sp
105 .ne 2
106 .na
107 \fB\fB\fR\fB-Q\fR\fB[y|n]\fR \fR
108 .ad
109 .RS 12n
110 Prints out version information to output file \fBlex.yy.c\fR by using
111 \fB-Qy\fR. The \fB-Qn\fR option does not print out version information and is
112 the default.
113 .RE
114
115 .SH OPERANDS
116 .sp
117 .LP
118 The following operand is supported:
119 .sp
120 .ne 2
121 .na
122 \fB\fIfile\fR \fR
123 .ad
124 .RS 9n
125 A pathname of an input file. If more than one such \fIfile\fR is specified, all
126 files will be concatenated to produce a single \fBlex\fR program. If no
127 \fIfile\fR operands are specified, or if a \fIfile\fR operand is \fB\(mi\fR,
128 the standard input will be used.
129 .RE
130
131 .SH OUTPUT
132 .sp
133 .LP
134 The \fBlex\fR output files are described below.
|
1 '\" te
2 .\" Copyright (c) 2014 Gary Mills
3 .\" Copyright (c) 1992, X/Open Company Limited All Rights Reserved Portions Copyright (c) 1997, Sun Microsystems, Inc. All Rights Reserved
4 .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
5 .\" http://www.opengroup.org/bookstore/.
6 .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html.
7 .\" This notice shall appear on any product containing this material.
8 .\" 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.
9 .\" 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.
10 .\" 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]
11 .TH LEX 1 "Jan 1, 2014"
12 .SH NAME
13 lex \- generate programs for lexical tasks
14 .SH SYNOPSIS
15 .LP
16 .nf
17 \fBlex\fR [\fB-cntv\fR] [\fB-e\fR | \fB-w\fR] [\fB-V\fR \fB-Q\fR [y | n]] [\fB-Y\fR \fIdirectory\fR]] [\fIfile\fR]...
18 .fi
19
20 .SH DESCRIPTION
21 .sp
22 .LP
23 The \fBlex\fR utility generates C programs to be used in lexical processing of
24 character input, and that can be used as an interface to \fByacc\fR. The C
25 programs are generated from \fBlex\fR source code and conform to the ISO C
26 standard. Usually, the \fBlex\fR utility writes the program it generates to the
27 file \fBlex.yy.c\fR. The state of this file is unspecified if \fBlex\fR exits
28 with a non-zero exit status. See \fBEXTENDED DESCRIPTION\fR for a complete
29 description of the \fBlex\fR input language.
30 .SH OPTIONS
31 .sp
32 .LP
33 The following options are supported:
34 .sp
35 .ne 2
36 .na
37 \fB\fB-c\fR \fR
96 .sp
97 .ne 2
98 .na
99 \fB\fB-V\fR \fR
100 .ad
101 .RS 12n
102 Prints out version information on standard error.
103 .RE
104
105 .sp
106 .ne 2
107 .na
108 \fB\fB\fR\fB-Q\fR\fB[y|n]\fR \fR
109 .ad
110 .RS 12n
111 Prints out version information to output file \fBlex.yy.c\fR by using
112 \fB-Qy\fR. The \fB-Qn\fR option does not print out version information and is
113 the default.
114 .RE
115
116 .sp
117 .ne 2
118 .na
119 \fB\fB\fR\fB-Y\fR \fBdirectory\fR \fR
120 .ad
121 .RS 12n
122 Designates an alternate directory that contains the driver files
123 used by \fBlex\fR.
124 .RE
125
126 .SH OPERANDS
127 .sp
128 .LP
129 The following operand is supported:
130 .sp
131 .ne 2
132 .na
133 \fB\fIfile\fR \fR
134 .ad
135 .RS 9n
136 A pathname of an input file. If more than one such \fIfile\fR is specified, all
137 files will be concatenated to produce a single \fBlex\fR program. If no
138 \fIfile\fR operands are specified, or if a \fIfile\fR operand is \fB\(mi\fR,
139 the standard input will be used.
140 .RE
141
142 .SH OUTPUT
143 .sp
144 .LP
145 The \fBlex\fR output files are described below.
|