retagged by
3,788 views
2 votes
2 votes

is it correct please tell me its urgent!

retagged by

2 Answers

2 votes
2 votes

yes...correct

given grammar is not LR(0).....due to RR conflict....

and u need not to go to other state.....A->.eps  can be also be written as A->.  

means in the  beginning conflict occurs....

0 votes
0 votes
Given grammer is not LR(0). Clearly mentioned that grammar has  reduce reduce conflict for the rule

A--> epsilon and B---> epsilon

Related questions

0 votes
0 votes
1 answer
1
abc1 asked Jan 26, 2019
4,037 views
consider the grammar G: S->A|B A->a|c B->b|c where {S,A,B} are non-terminals,{a,b,c} are terminals.Does LR(1) can parse all strings that are generated by gr...
8 votes
8 votes
3 answers
2
Parshu gate asked Nov 13, 2017
15,451 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...
1 votes
1 votes
2 answers
4
Nishu asked Mar 3, 2016
9,425 views
Consider the following grammer:S- aAb | ScA- d | Sd | SThe above grammer is:a) SLR(1)b) LL(1)c) LR(0)d) none of the above