591 views

2 Answers

1 votes
1 votes
LR(0) parser is constructed for LP(0)  grammar in which the parse table is free from multiple entries (conflicts). as we show in the above question the grammar is

E -> E+id | id

 there are multiple entries when you construct a table
0 votes
0 votes

If a grammar is left recurcive then it never be LR(0) . Given grammar is left recurcive . Hence it is not parsed by LR(0) .