- First we make CLR(1) table and then we check for SR and RR conflicts.
- If SR or RR conflict is there then it is not CLR(1) => it is also not LALR(1).
- If we don't find any SR and RR conflict in CLR(1) then we compress the table of CLR(1) to make the LALR(1) table by merging the states which have same production and different look ahead symbols.
- Since we have already checked for SR and RR conflict in CLR(1) so there is no chance of SR conflict in LALR(1) but reduce reduce conflict may be there ( due to merging of states ).
=> In order to have a SR conflict in LALR(1) , CLR(1) should also have SR conflict.
If LALR(1) parser have shift reduce conflict then CLR(1) parser must have shift reduce conflict.