Consider the below given grammar:
A→AA+
A→a
Consider the below given statements:
S1: The grammar is not LL(1).
S2: The grammar is CLR(1) but not LALR(1).
S3: The grammar is ambiguous.
S4: The grammar is LALR(1) as well as CLR(1).
Choose the correct option:( Marks: 0.00 )
- Only S3 is correct.
- Only S1 is correct.
- Only S1 and S4 are correct.
Explanation:
As LALR(1) table has no conflict, hence the given grammar is LALR(1). mber of states in LALR(1) is 5.
- Only S1 and S2 are correct.
Answer given is option (3).
But I cant understand why S3 is incorrect.