The Gateway to Computer Science Excellence
+1 vote
Which of the Following is True ?

A. Symbol table Construction is during the analysis part of the Compiler.

B. Type checking is Done during Syntax Analysis phase

C. SDD with only synthesized attribute have an order of evaluation

D. Both A and C

Please Explain the C part only rest are easy :)
in Compiler Design by Loyal (7k points)
edited by | 143 views
Sdd with synthesized attributes can be evaluated by using a post order traversal of abstract syntax tree . Correct me if I am wrong
only option A  is correct

1 Answer

0 votes
SDD means Syntax Directed Definition.

It is representation of tree which doesn't carry the information of variables/attributes. It called as abstract tree representation.

They are mentioning about the synthesized attribute(Parent takes the values from its children) which have the order of evaluation is BUP.

But C option is False because Inherited attribute also have the order of evaluation is TDP.

A. False

C. False.
by Active (1.7k points)

Option A is correct symbol table is constructed in lexical and syntax analysis phase and used in semantic analysis and code generation phase. So option A is true.
Yes its a silly mistake its TRUE thanks.
Symbol table used in both synthesis and analysis phase

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,737 questions
57,397 answers
105,454 users