3 votes 3 votes A) SDD is L attributed. B) SDD is not L attributed because of Rule 1. C) SDD is L attributed because of Rule 2. D) SDD is L attributed because of both Rule1 and Rule2. Compiler Design made-easy-test-series compiler-design syntax-directed-translation + – Nymeria asked Jan 27, 2018 • edited Mar 4, 2019 by ajaysoni1924 Nymeria 821 views answer comment Share Follow See all 6 Comments See all 6 6 Comments reply Show 3 previous comments Nymeria commented Jan 28, 2018 reply Follow Share Yes given answer is b only. My doubt is: In rule 2, R is deriving its value from synthesized attribute of its parent. I read somewhere (don't remember the source now) that it can use only the inherited attributes. 0 votes 0 votes sumit chakraborty commented Jan 28, 2018 reply Follow Share L-attributed definitions use both synthesized attributes and inherited attributed. S-attributed ones use only synthesized attributes. 0 votes 0 votes hs_yadav commented Jan 28, 2018 reply Follow Share L-attributed definitions use both synthesized attributes and inherited attributed. S-attributed ones use only synthesized attributes. and one point to note here is this that.... L-attributed definition uses modified inhereted attributes... Inherited attribute:- According this attribute value can be derived from parent as well as from sibling ... but according L-atributed defination....in inherited attribute ..attributes r allowed to derived only form parent and left sibling... 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes If A takes value from R or Q then it is S-attributed if Q takes value from A or R takes value from A or Q ( from the left side only) then it is L-attributed here Q is taking value from right side R hence neither S nor L attributed Answer is B OO7 answered Jul 12, 2018 OO7 comment Share Follow See 1 comment See all 1 1 comment reply anonymous commented Oct 9, 2018 reply Follow Share @007 answer might be the C just R is taking value from A which is inherited and which supported by only L attributed . 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes Option b is right abhishekmehta4u answered Mar 4, 2019 abhishekmehta4u comment Share Follow See all 0 reply Please log in or register to add a comment.