SYNTAX ANALYSIS
ROLE OF THE PARSER
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Which phase of the compiler checks the grammar of the programming?
|
Code Optimization
|
|
Semantic Analysis
|
|
Code Generation
|
|
Syntax Analysis
|
Explanation:
Detailed explanation-1: -The grammar of the programming is checked at Syntax analysis phase of the compiler.
Detailed explanation-2: -Syntax analysis is the second phase of compilation process. It takes tokens as input and generates a parse tree as output. In syntax analysis phase, the parser checks that the expression made by the tokens is syntactically correct or not.
There is 1 question to complete.