Stanford University: Keith Schwarz's "Lexical Analysis Notes"

Read through slide 45.