lex — Generate Programs for Lexical Tasks

Synopsis

/usr/ccs/bin/lex [-cntv][-e | -w][-V -Q [y | n]][file]... 

Description

The lex command generates C programs to be used in lexical processing of character input that can also be used as an interface to yacc. The C programs are generated from lex source code and conform to the ISO C standard. Usually, the lex command writes the program it generates to the file lex.yy.c; the state of this file is unspecified if lex exits with a non-zero exit status.

Options

-c Indicate C-language action (default option).
-e Generate a program that can handle EUC characters (cannot be used with the -w option). yytext[] is of type unsigned char[].
-n Suppress the summary of statistics usually written with the ...

Get Solaris™ 7 Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.