What is lexical analysis
Lexical analysis is the first phase of a compiler or interpreter, where the input source code is processed to produce a sequence of tokens. This phase is crucial for understanding and translating source code into a form that can be further analyzed and executed.