3,236 views

1 Answer

Best answer
9 votes
9 votes

S->Aa/bAc/Bc/bBa

A->d

B->d

this grammar is not LL(1) but it is CLR(1). below image will clear your doubt more-

selected by

Related questions

8 votes
8 votes
3 answers
1
Parshu gate asked Nov 13, 2017
15,424 views
Suppose we are given a grammar and asked to find the type of that grammar , what is the algorithm which needs to be followed for each of them? LL(1), OR LR(0) , OR CLR(1...
0 votes
0 votes
1 answer
2
Rahul Ranjan 1 asked Mar 19, 2018
4,954 views
Given a grammar :$E \rightarrow E + T / T$$T \rightarrow i$Can I directly say that grammar is not $LL(1)$ because $LL(1)$ can't parse Left Recursive Grammar, without dra...
0 votes
0 votes
2 answers
3
sripo asked Nov 1, 2018
2,366 views
S→(XS→E]S→E)X→E)X→E]E→ϵIs this grammar CLR(1)? The answer says it is but I find a shift reduce conflict for E- epsilon with lookup symbols ),]
1 votes
1 votes
1 answer
4