in Compiler Design edited by
768 views
2 votes
2 votes

Which attributes in the following grammar are synthesized?

  1. A.a
  2. B.b
  3. B.x
  4. C.c
in Compiler Design edited by
768 views

4 Comments

@Sachin Mittal 1 sir, .As a child's attributes can only be dependent on inherited attributes of the parent, B.b can not be synthesized, as C.c is taking values from B.b so B.b can not be synthesized, this can also be a reason?
 

0
0
yes obviously if option D is not the answer then B also should not be the one.
0
0

1 Answer

0 votes
0 votes
Why "c" can't be an answer?

1 comment

because C.c is synthesizing by its left siblings and again it synthesizes to its parent C.x which is correct synthesized. here C.x is answer not C.c
0
0
Answer:

Related questions