1 votes 1 votes Compiler Design made-easy-test-series compiler-design parsing + – vaishali jhalani asked Feb 2, 2017 edited Mar 4, 2019 by adeebafatima1 vaishali jhalani 507 views answer comment Share Follow See 1 comment See all 1 1 comment reply aeros commented Feb 2, 2017 reply Follow Share refer this answer.... https://gateoverflow.in/87037/gate2005-83b u will get a rough idea... 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes Precedence will be same... Now,left associative -- (((3+2)*5)+7) =32 Right associative-- (3+(2*(5+7)))=27 This can also be derived from the parse Tree... Hence b is the answer Aditya Tewari answered Feb 2, 2017 Aditya Tewari comment Share Follow See all 4 Comments See all 4 4 Comments reply vaishali jhalani commented Feb 2, 2017 reply Follow Share Why you took operators right associative 0 votes 0 votes Aditya Tewari commented Feb 2, 2017 reply Follow Share The options asks for values when operators are taken either left or right associative... So I evaluated for both the cases. 0 votes 0 votes Lucky sunda commented Feb 2, 2017 reply Follow Share What if both the answers by left and right associativity were correct? 0 votes 0 votes Aditya Tewari commented Feb 2, 2017 reply Follow Share Then there should've been an option as "both a and b "..:p 0 votes 0 votes Please log in or register to add a comment.