This document provides an overview of Lex, a lexical analyzer generator tool. It discusses installing and running Lex on Windows and Linux systems, and provides an example Decaf programming language lexical analyzer code. The code is run on sample input to generate a tokenized output file. The document contains sections on what Lex is, the structure of Lex programs, predefined Lex variables and library routines, setting up and running Lex on different platforms, and an example Decaf program with its output.