3 lex \- generator of lexical analysis programs
14 generates programs to be used in simple lexical analysis of text.
17 (standard input default)
18 contain regular expressions
19 to be searched for and actions written in C to be executed when
20 expressions are found.
25 This program, when run, copies unrecognized portions of
26 the input to the output,
27 and executes the associated
28 C action for each regular expression that is recognized.
30 The options have the following meanings.
33 Place the result on the standard output instead of in file
37 Print a one-line summary of statistics of the generated analyzer.
46 Adds code to be able to compile through the native C compilers.
48 This program converts upper case to lower,
49 removes blanks at the end of lines,
50 and replaces multiple blanks by single blanks.
54 [A-Z] putchar(yytext[0]+\'a\'-\'A\');
59 .TF /sys/lib/lex/ncform
64 .B /sys/lib/lex/ncform
70 M. E. Lesk and E. Schmidt,
71 `LEX\(emLexical Analyzer Generator',
73 Unix Research System Programmer's Manual,
74 Tenth Edition, Volume 2.
81 The asteroid to kill this dinosaur is still in orbit.