retagged by
302 views

1 Answer

0 votes
0 votes
  • No. of states in CLR(1) is greater than or equal to LALR(1) parser.
  • If grammar is CLR(1), it may or may not be LALR(1), because conflict may arise when you will merge the states for constructing LALR(1) table.
  • If grammar is not CLR(1), it will not be LALR(1), because already conflict happened in CLR(1) so the conflict will always present in LALR(1).
  • If there is no SR conflict in CLR(1), there will be no SR conflict in LALR(1).
  • If there is no RR conflict in CLR(1), we can't say about RR conflict in LALR(1) because there is a chance that when we merge the states, RR conflict may arise.

Related questions

0 votes
0 votes
1 answer
2
manisha11 asked Oct 21, 2018
416 views
Can we comment/compare the number of GOTO moves inLALR and CLRCLR and SLR?
0 votes
0 votes
2 answers
3
eyeamgj asked May 16, 2018
306 views
it is confirmed that every LL(1) is LR(1) i.e CLR(1),but i want to know that is every LL(1) grammar is also LALR????? becz LALR is subset of CLR(1).
0 votes
0 votes
1 answer
4
shivanisrivarshini asked Mar 10, 2018
577 views
Can we have a grammar $G$ which is $LL(1)$ but not $SLR(1)$ ,If so given example grammar