The compiler begins by performing a lexical analysis. It collects updated source code from the language pre-processor that is written as sentences. By removing white space from the source code, the lexical analyzer converts these syntax’s into a list of tokens.