SYNTAX ANALYSIS
ROLE OF THE PARSER
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Which of the following is a stage of compiler design?
|
Semantic analysis
|
|
Intermediate code generator
|
|
Code generator
|
|
All of the mentioned 2.Which of the following is a stage of compiler design? c) Code generator b) Intermediate code generato d) All of the mentioned a) Semantic analysis
|
Explanation:
Detailed explanation-1: -Explanation: A compiler is a system program that converts instructions in form of code to machine understandable language.
Detailed explanation-2: -Explanation: The phase of the compiler next to the lexical analysis phase is also known as Parser. Syntax analysis or parser accepts the tokens produced by the lexical analysis and gives the parse tree in the output.
There is 1 question to complete.