2 votes 2 votes Which attributes in the following grammar are synthesized?A.aB.bB.xC.c Compiler Design goclasses2024-mockgate-14 compiler-design syntax-directed-translation multiple-selects 1-mark + – GO Classes asked Feb 5 • edited Feb 5 by Lakshman Bhaiya GO Classes 896 views answer comment Share Follow See all 6 Comments See all 6 6 Comments reply Show 3 previous comments Dknights commented Feb 6 reply Follow Share @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 votes 0 votes Priyotosh2001 commented Feb 7 reply Follow Share yes obviously if option D is not the answer then B also should not be the one. 0 votes 0 votes krishnajsw commented Feb 8 reply Follow Share https://www.youtube.com/live/CFoJsU6nvq4?si=vAk95XKOwKBGf8b-&t=3243 check solution 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes Why "c" can't be an answer? Chaitanya Sai answered Feb 6 Chaitanya Sai comment Share Follow See 1 comment See all 1 1 comment reply Priyotosh2001 commented Feb 7 reply Follow Share 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 votes 0 votes Please log in or register to add a comment.