1 votes 1 votes A -> AA+ A -> a I think it's both clr and lalr . Can someone draw the diagram and answer it please because I want to verify the lookaheads of some states. Compiler Design compiler-design parsing + – Rajesh R asked Dec 3, 2017 Rajesh R 1.3k views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply joshi_nitish commented Dec 4, 2017 reply Follow Share given grammer is unambigous, and its DFA is, there is no SR and RR conflicts implying that grammar is CLR(1) and merging states with same lookaheads will also create no RR conflict implying that grammar is also LALR(1) 2 votes 2 votes Rajesh R commented Dec 4, 2017 reply Follow Share Thanks a lot bro . 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes it is neither CLR(1) nor LALR(1) , because the given G is not LL(1) if a G is not LL(1), then it is not CLR(1), if G is not CLR(1) then it is not LALR(1) suryaprakash answered Jun 13, 2018 suryaprakash comment Share Follow See all 0 reply Please log in or register to add a comment.