0 votes 0 votes Compiler Design compiler-design syntax-directed-translation virtual-gate-test-series + – Akanksha Kesarwani asked Dec 20, 2015 • retagged Jul 16, 2022 by Anjana5051 Akanksha Kesarwani 1.1k views answer comment Share Follow See 1 comment See all 1 1 comment reply Prateek kumar commented Sep 2, 2016 reply Follow Share answer should be (c) although LL(1) is left most derivation 1st time:- we are assing id to left them E*E right side // it doesn't mean we are skiping left side, somthing is assing then moving right side so it's valid abc*| 2nd time :- we are assing E*E left side then id directly to right // both are correct ab|c* 0 votes 0 votes Please log in or register to add a comment.
Best answer 3 votes 3 votes LL(1) uses left most derivation E -> E * E -> E ↑ E * E -> id ↑ E * E -> id ↑ id * E -> id ↑ id * id pramod answered Dec 21, 2015 • selected Jan 3, 2017 by Akanksha Kesarwani pramod comment Share Follow See all 0 reply Please log in or register to add a comment.
2 votes 2 votes Should be c.. Depends on which production is used at starting E->E*E or E->E^E Pooja Palod answered Dec 25, 2015 Pooja Palod comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes Answer is B. E E ↑ E id E * E a id id b c at first print a,then b,then c ,now for b*c reduction print * and finally a↑b*c reduction print ↑ so answer abc*↑ resuscitate answered Dec 20, 2015 resuscitate comment Share Follow See all 3 Comments See all 3 3 Comments reply Akanksha Kesarwani commented Dec 20, 2015 reply Follow Share Ans given is A 0 votes 0 votes pramod commented Dec 21, 2015 reply Follow Share LL(1) uses left most derivation . construct tree using left most derivation and then do post order traversal @sayantan whateve tree you constructed is using right most derivation. 0 votes 0 votes Akanksha Kesarwani commented Dec 21, 2015 reply Follow Share Explain it 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes answer is C bcz this is a ambiguous grammar pritambiswas000007 answered Jun 9, 2020 pritambiswas000007 comment Share Follow See all 0 reply Please log in or register to add a comment.