The Gateway to Computer Science Excellence
0 votes
182 views
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 by Active (3.1k points) | 182 views
+2
13 states. and no conflicted states. 0 inadequate.
0
please provide your diagram bro
0

Ashwin plz verify if you still have it :p

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

Please log in or register to answer this question.

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,654 questions
56,169 answers
193,876 comments
94,298 users