We have already seen that a compiler has the following phases:
A compiler generates intermediate files between these phases, to communicate output of one phase as input to the next (see Fig. 1.14).
We now discuss each phase of a compiler in some details.
Fig. 1.14 Phases of a compiler and intermediate outputs
Does lexical analysis, by doing the following: ...