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 in Chap. 5: page 77
Links:
man7.org:
lex(1p) — Linux manual page
Wikipedia:
Lex (software)