LEX(1)LEX(1)
NAME
lex – generator of lexical analysis programs
SYNOPSIS
DESCRIPTION
A C source program,
The options have the following meanings.
Place the result on the standard output instead of in file
Print a one-line summary of statistics of the generated analyzer.
Opposite of
Adds code to be able to compile through the native C compilers.
EXAMPLES
This program converts upper case to lower, removes blanks at the end of lines, and replaces multiple blanks by single blanks.
%% [A-Z] putchar(yytext[0]+\'a\'-\'A\'); [ ]+$ [ ]+ putchar(\' \');
FILES
output
template
SEE ALSO
M. E. Lesk and E. Schmidt,
‘LEXLexical Analyzer Generator’,
Unix Research System Programmer’s Manual,
Tenth Edition, Volume 2.
SOURCE
BUGS
Cannot handle
The asteroid to kill this dinosaur is still in orbit.