The only difference between
LR(
0) and
SLR(1) is this extra ability to help decide what action to take when there are conflicts. Because of this, any grammar that can be parsed by an
LR(
0) parser can be parsed by an
SLR(1) parser. However,
SLR(1) parsers can parse a larger number of grammars than
LR(
0).
read more >>