Which of the following statement(s) is/are true about LALR(1) parsers?

S1: LALR(1) parsers have the same number of states as SLR(1) parsers (core LR(0) items are the same).

S2: LALR(1) derived from LR(1) with no shift-reduce conflict will also have no shift-reduce conflict.

S3: LALR(1) may create reduce - reduce conflict which was not in LR(1) from which LALR(1) is derived.

1
S1 and S2
2
S1 and S3
3
S2 and S3
4
S1, S2 and S3

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation