.TH LEX 1 "7 February 1983"
lex \- generator of lexical analysis programs
generates programs to be used in simple lexical analyis of text.
(standard input default) contain regular expressions
to be searched for, and actions written in C to be executed when
A C source program, 'lex.yy.c' is generated, to be compiled thus:
This program, when run, copies unrecognized portions of
the input to the output, and executes the associated
C action for each regular expression that is recognized.
The options have the following meanings.
Place the result on the standard output instead of in file "lex.yy.c".
Print a one-line summary of statistics of the generated analyzer.
"Faster" compilation: don't bother to pack
the resulting tables; limited to small programs.
instructions from the file
[A\-Z] putchar(yytext[0]+\'a\'\-\'A\');
program that would be put into a
command file. This program converts upper case to lower,
removes blanks at the end of lines,
and replaces multiple blanks by single blanks.
M. E. Lesk and E. Schmidt,
.I LEX \- Lexical Analyzer Generator