in Compiler Design
857 views
0 votes
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.
in Compiler Design
857 views

4 Comments

13 states. and no conflicted states. 0 inadequate.
2
2
please provide your diagram bro
0
0

Ashwin plz verify if you still have it :p

0
0
i thinks their are 13 states and one state is inadequate. as lookahead of b->d. and c->d. is same for state 6. correct me if i am wrong
0
0

1 Answer

0 votes
0 votes

  13 states

Related questions

0 votes
0 votes
1 answer
4