Reference: lex
Author: Daniel Gilly & the Staff of O'Reilly & Associates
Date: 1998-08-06T21:53:24Z

#

| Chapter 2 UNIX Commands |

## lex

    lex [options] [files]

Generate a lexical analysis program (named lex.yy.c) based on the regular expressions and C statements contained in one or more input `files`. See also yacc and the Nutshell Handbook `lex & yacc`.

### Options

-c

  `file`'s program statements are in C (default).

-f

  Use faster compilation (limited to small programs).

-n

  Suppress the output summary.

-Q`c`

  Print version information in lex.yy.c (if `c` = y) or suppress information (if `c` = n, the default).

-t

  Write program to standard output, not lex.yy.c.

-v

  Print a summary of machine-generated statistics.

-V

  Print version information on standard error.

Reference: ldd |  | Reference: line