1 votes 1 votes Construct the LALR(1) sets of items for the grammar: S’ -> S S -> *SS | a Then, identify, in the list below, one of the LALR(1) sets of items for (A) [S -> a., $\$$] (B) [S -> a., +a] (C) [S -> *SS., $\$$ + a] (D) [S -> *SS., $\$$] Compiler Design compiler-design parsing test-series + – BOB asked Oct 13, 2018 • retagged Jul 15, 2022 by Anjana5051 BOB 1.7k views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply Mk Utkarsh commented Oct 13, 2018 reply Follow Share A and D both 0 votes 0 votes Raja Rawal commented Nov 3, 2018 reply Follow Share Correct A 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes The possible answer is A, D. In option C instead of + if it is * It is also possible.. muthu kumar answered Nov 14, 2018 muthu kumar comment Share Follow See all 2 Comments See all 2 2 Comments reply sandygate commented Nov 21, 2018 reply Follow Share why didnt you combine [s->a. $] and [s->a. a/*] 0 votes 0 votes muthu kumar commented Nov 21, 2018 reply Follow Share Yes we can combine them in LALR(1). I just solved with according to options. 0 votes 0 votes Please log in or register to add a comment.