0 votes 0 votes Compiler Design compiler-design syntax-directed-translation + – Srinivas_Reddy_Kotla asked Nov 27, 2018 • edited Mar 14, 2019 by adeebafatima1 Srinivas_Reddy_Kotla 811 views answer comment Share Follow See all 6 Comments See all 6 6 Comments reply Priyanka Agarwal commented Nov 27, 2018 reply Follow Share Ans is a 0 votes 0 votes arya_stark commented Nov 27, 2018 reply Follow Share $A) *+$ E / + \ T F | / * \ (1st) id G id (3rd) | (2nd) id NOW go top to down :Scan start with E then reach 1st "id" then go to $+$ and then F then G then $*$ then "id" when you again reach at F then See PRODUCTION of F : its say when this production complete then print $*$ so it first print star .. now finally we reach at E then See PRODUCTION of E it sat print $+$. So output will be $*+$ 2 votes 2 votes Gupta731 commented Dec 9, 2018 reply Follow Share $A$ should be the answer. 0 votes 0 votes newdreamz a1-z0 commented Dec 9, 2018 reply Follow Share they must have given wrong ans.(GIVEN ANS IN TEST SERIES IS B) 0 votes 0 votes Hira Thakur commented Dec 9, 2018 reply Follow Share using the TD approach/BU approach result will be the same or different?? 0 votes 0 votes newdreamz a1-z0 commented Dec 9, 2018 reply Follow Share it depends on the position of definitions(i.e semantic actions inside curly braces) . it is not always the case that TD and BU Sdd compute the same thing 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes *+ for sure Psy Duck answered Sep 23, 2022 Psy Duck comment Share Follow See all 0 reply Please log in or register to add a comment.