Question: What is the primary purpose of lexical analysis in a compiler?
Options:
Correct Answer: To convert source code into tokens
Solution:
Lexical analysis converts the source code into tokens, which are the basic building blocks for further processing in the compiler.