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.
মোঃ আরিফুল ইসলাম
Feb 20, 2025