A C++ program that lexically analyzes any text file. Based on a hand-coded DFA (deterministic finite automata), the program prints out the legal lexemes and errors found in the provided text file.