in Compiler Design edited by
583 views
1 vote
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 edited by
by
583 views

2 Comments

Sdd with synthesized attributes can be evaluated by using a post order traversal of abstract syntax tree . Correct me if I am wrong
0
0
only option A  is correct
0
0

1 Answer

1 vote
1 vote
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.

3 Comments

@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
0
Yes its a silly mistake its TRUE thanks.
0
0
Symbol table used in both synthesis and analysis phase
0
0

Related questions