Which of the following tasks could be attained using syntax trees in compiler design ?
(A) Type Checking
(B) Code Generation
(C) Code Optimization
(D) Error Handling
Choose the correct answer from the options given below :
Syntax trees (Abstract Syntax Tree – AST) are used in later compiler phases.
(A) Type Checking → Done using syntax tree ✔
(B) Code Generation → Uses syntax tree ✔
(C) Code Optimization → Uses syntax tree representation ✔
(D) Error Handling → Mainly done during lexical / syntax analysis ✘
Thus correct tasks:
(A), (B), (C)
Online Test Series, Information About Examination,
Syllabus, Notification
and More.
Online Test Series, Information About Examination,
Syllabus, Notification
and More.