COMPILER DESIGN

SYNTAX ANALYSIS

ROLE OF THE PARSER

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
When is type checking usually done?
A
Code Generation
B
Lexical Analysis
C
Syntax Directed Translation
D
Syntax Analysis
Explanation: 

Detailed explanation-1: -Type checking is done during all the phases especially in syntax analysis phase.

Detailed explanation-2: -Type checking performs at the semantic analysis phase, and parsing performs at the syntax analysis phase.

Detailed explanation-3: -Explanation: Type checking is done during syntax-directed translation.

There is 1 question to complete.