The Gateway to Computer Science Excellence
+1 vote
126 views
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 (6.9k points)
edited by | 126 views
0
Sdd with synthesized attributes can be evaluated by using a post order traversal of abstract syntax tree . Correct me if I am wrong
0
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)
0
@Dharmendra

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.
0
Yes its a silly mistake its TRUE thanks.
0
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,647 questions
56,477 answers
195,396 comments
100,384 users