TOOLS AND TECHNIQUES FOR COMPILER DESIGN
MISCELLENOUS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
The main purpose of Lexical analyser
|
Improve the register allocation
|
|
The split whole inofrmation into small chunk
|
|
To understand syntax of the code
|
|
To undertand the meaning of code
|
Explanation:
Detailed explanation-1: -Explanation: A lexical analyzer coverts character sequences to set of tokens.
Detailed explanation-2: -Separation allows the simplification of one or the other. 2) Compiler efficiency is improved. Optimization of lexical analysis because a large amount of time is spent reading the source program and partitioning it into tokens. 3) Compiler portability is enhanced.
Detailed explanation-3: -The main task of lexical analysis is to read input characters in the code and produce tokens. “Get next token” is a command which is sent from the parser to the lexical analyzer. On receiving this command, the lexical analyzer scans the input until it finds the next token.
There is 1 question to complete.