1 votes 1 votes Consider the following grammar S --> Ka|bKc|dc|bda K ---> d The grammar is not LALR(1) SLR(1) LR(1) none of the above Compiler Design compiler-design first-and-follow + – rahuljai asked Dec 13, 2018 retagged Mar 11, 2019 by Naveen Kumar 3 rahuljai 957 views answer comment Share Follow See all 5 Comments See all 5 5 Comments reply Show 2 previous comments kumar.dilip commented Dec 13, 2018 reply Follow Share I think D is the right option. 0 votes 0 votes rahuljai commented Dec 14, 2018 reply Follow Share @Hemanth_13 @ @kumar.dilip No the official answer is SLR(1). 0 votes 0 votes srestha commented Jan 7, 2019 reply Follow Share yes it is SLR as there is a Shift reduce conflict in $S\rightarrow bd.a$ $K\rightarrow d.$ And it can be resolved with follow set of d 0 votes 0 votes Please log in or register to add a comment.
1 votes 1 votes $(D)$None of the above Lakshman Bhaiya answered Jan 7, 2019 edited Jan 7, 2019 by Lakshman Bhaiya Lakshman Bhaiya comment Share Follow See all 2 Comments See all 2 2 Comments reply srestha commented Jan 7, 2019 reply Follow Share ur table is not correct chk this https://gateoverflow.in/73629/find-if-grammar-is-slr-1 0 votes 0 votes Lakshman Bhaiya commented Jan 7, 2019 reply Follow Share ohh sorry, I can correct now. 0 votes 0 votes Please log in or register to add a comment.