The first phase of a compiler is:

Explanation:

Lexical analysis is the first phase, breaking source code into tokens.

Explore more in Computer Science: