In compiler, which of the following reads input characters to identify tokens?

In compiler, which of the following reads input characters to identify tokens? Correct Answer <span style="font-family:arial">Lexical analyzer</span>

The lexical analyzer is the first phase of a compiler. Its main task is to read the input characters and produce as an output a sequence of tokens. This can be implemented by making the lexical analyzer be a subroutine or a coroutine of the parser. Upon receiving the “get next token” command from the parser, the lexical analyzer reads input characters until it can identify the next token.

Related Questions

Consider the following schedule S of transactions T1, T2, T3, T4: T1 T2 T3 T4   Reads(X)         Writes(X) Commit   Writes(X)  Commit         Writes(Y) Reads(Z) Commit           Reads(X) Reads(Y) Commit   Which one of the following statements is CORRECT?
Characters are grouped into tokens in which of the following phase of the compiler design?