This project implements a lexical analyzer as a critical component of a compiler. It tokenizes input source code into meaningful tokens like keywords, identifiers, and constants, while detecting lexical errors. The project includes a user-friendly GUI built using Python and Tkinter to simplify interaction and demonstrate results.