13 states. and no conflicted states. 0 inadequate.

The Gateway to Computer Science Excellence

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.

52,215 questions

60,016 answers

201,243 comments

94,703 users