13 states. and no conflicted states. 0 inadequate.

0 votes

Consider the below given grammar:

S→(A

S→B]

S→C)

A→B)

A→C]

B→D

C→D

D→ϵ

The number of states in LALR(1) canonical item set are _______ and number of inadequate states (if any) in LALR(1) canonical item set is/are ____________respectively.

S→(A

S→B]

S→C)

A→B)

A→C]

B→D

C→D

D→ϵ

The number of states in LALR(1) canonical item set are _______ and number of inadequate states (if any) in LALR(1) canonical item set is/are ____________respectively.