Lex is a notation and Unix command-line programme to generate lexical analysers. It uses regular expressions to match valid tokens, such as an variable name or number. It is usualy used as a pre-processor before syntax analysis.
Used on Chap. 5: page 103
Links:
man7.org: lex(1p) — Linux manual page
Wikipedia: Lex (software)