Lines Matching +full:lines +full:- +full:initial +full:- +full:states
16 .\" Standard for Information Technology -- Portable Operating System
18 .\" Copyright (C) 2001-2004 by the Institute of Electrical and Electronics
49 lex \- generate programs for lexical tasks
52 \fBlex\fR [\fB-cntv\fR] [\fB-e\fR | \fB-w\fR] [\fB-V\fR \fB-Q\fR [y | n]] [\fB-Y\fR \fIdirectory\fR…
61 with a non-zero exit status. See \fBEXTENDED DESCRIPTION\fR for a complete
68 \fB\fB-c\fR \fR
71 Indicates C-language action (default option).
77 \fB\fB-e\fR \fR
81 the \fB-w\fR option). \fByytext[\|]\fR is of type \fBunsigned char[\|]\fR.
87 \fB\fB-n\fR \fR
90 Suppresses the summary of statistics usually written with the \fB-v\fR option.
91 If no table sizes are specified in the \fBlex\fR source code and the \fB-v\fR
92 option is not specified, then \fB-n\fR is implied.
98 \fB\fB-t\fR \fR
107 \fB\fB-v\fR \fR
113 \fB-n\fR option is not specified, the \fB-v\fR option may be enabled.
119 \fB\fB-w\fR \fR
123 the \fB-e\fR option). Unlike the \fB-e\fR option, \fByytext[\|]\fR is of type
130 \fB\fB-V\fR \fR
139 \fB\fB\fR\fB-Q\fR\fB[y|n]\fR \fR
143 \fB-Qy\fR. The \fB-Qn\fR option does not print out version information and is
150 \fB\fB\fR\fB-Y\fR \fBdirectory\fR \fR
174 If the \fB-t\fR option is specified, the text file of C source code output of
177 If the \fB-t\fR option is specified informational, error and warning messages
182 If the \fB-t\fR option is not specified:
193 If the \fB-v\fR option is specified and the \fB-n\fR option is not
197 DESCRIPTION\fR), as long as the \fB-n\fR option is not specified.
201 the standard output if the \fB-t\fR option is present.
208 the \fB\fR\fB-l\fR\fB l\fR operand with \fBc89\fR or \fBcc\fR), the resulting
218 The input string that was matched is left in \fIyytext\fR as a null-terminated
267 lines containing only \fB%{\fR and \fB%}\fR will also be copied unchanged to
272 \fB%}\fR delimiter lines) appearing at the beginning of the \fIRules\fR section
281 blank character or within \fB%{\fR and \fB%}\fR delimiter lines appearing in
288 lines and not beginning with a blank character is assumed to define a \fBlex\fR
289 substitution string. The format of these lines is:
304 it does not appear within a bracket expression or within double-quotes.
314 after the first word, is considered to be one or more blank-character-separated
317 of regular expressions to one or more states as described in \fBRegular
329 Declare the type of \fIyytext\fR to be a null-terminated character array.
338 Declare the type of \fIyytext\fR to be a pointer to a null-terminated character
379 \fB%n\fR\fIn\fR Number of states 500
388 Programs generated by \fBlex\fR need either the \fB-e\fR or \fB-w\fR option to
395 When the \fB-e\fR option is used, \fByytext\fR is of the type \fBunsigned\fR
398 \fBunput(\fIc\fR)\fR, and \fBoutput(\fIc\fR)\fR should do a byte-based
400 variables are available with the \fB-e\fR option, \fByywtext\fR and
402 under the \fB-w\fR option.
405 When the \fB-w\fR option is used, \fByytext\fR is of the type \fBwchar_t[\|]\fR
434 The entire expression appears within double-quotes.
440 The blank characters appear within double-quotes or square brackets.
461 Any string enclosed in double-quotes will represent the characters within the
462 double-quotes as themselves, except that backslash escapes (which appear in the
463 following table) are recognized. Any backslash-escape sequence is terminated by
482 <\fIstate\fR> does not represent a metavariable, but the literal angle-bracket
498 include further trailing context or the \fB$\fR (match-end-of-line) operator;
499 \fIx\fR cannot include the \fB^\fR (match-beginning-of-line) operator, nor
503 restriction is that the trailing-context operator \fB/\fR (slash) cannot be
519 expression or within double-quotes.
548 A backslash character followed by the longest sequence of one, two or three octal-digit characters …
550 The character whose encoding is represented by the one-, two- or three-digit octal integer. Multi-b…
554 A backslash character followed by the longest sequence of hexadecimal-digit characters (01234567abc…
590 \fIcollation-related bracket symbols\fR \fB[= =] [: :] [. .]\fR
596 \fIsingle-character RE duplication\fR \fB* + ?\fR
636 The additional regular expressions trailing-context operator \fB/\fR (slash)
637 can be used as an ordinary character if presented within double-quotes,
639 expression, \fB[\|/\|]\fR. The start-condition \fB<\fR and \fB>\fR operators
671 can extend across several lines if enclosed in braces:
708 semicolon-terminated. It must be specified alone, with no other actions.
754 initial state is indicated by the digit \fB0\fR or the token \fBINITIAL\fR.
761 of \fBlex\fR, or are accessible only through the \fB\fR\fB-l\fR\fB l\fR operand
771 reached; otherwise it returns non-zero values (tokens) determined by the
792 Retains \fIn\fR initial characters in \fIyytext\fR, NUL-terminated, and treats
803 Returns the next character from the input, or zero on end-of-file. It obtains
824 the \fB\fR\fB-l\fR\fB l\fR operand; they can therefore be redefined by a
833 Called by \fByylex\fR at end-of-file; the default \fByywrap\fR always will
849 contain \fBmain\fR to perform application-specific operations, calling
864 erroneous by \fBlex\fR. This may result in compilation or run-time errors.
880 locale-specific anyway. (For example, writing an analyzer that is used for
887 rudimentary scanner for a Pascal-like syntax:
899 DIGIT [0-9]
900 ID [a-z][a-z0-9]*
919 "+"|"-"|"*"|"/" printf("An operator: %s\en", yytext);
921 "{"[^}\en]*"}" /* eat up one-line comments */
931 ++argv, --argc; /* skip over program name */