Recent questions tagged grammar

10 votes
2 answers
362
8 votes
3 answers
363
6 votes
7 answers
368
Consider the grammar given belowS⟶ SS | a | ∈The number of inadequate states in the DFA of LR(1) items is(a) 1 (b) 2 (c) 3 (d) 4
2 votes
1 answer
371
4 votes
4 answers
374
1 votes
1 answer
375
In the explanation, it is mentioned as followsNow , my question is how First(B) is a here. Can you please explain it ?
2 votes
1 answer
377
S->aAb/aBc/bAd/bBeA->gB->gHow many states in slr(1)
1 votes
1 answer
378
1 votes
1 answer
379
The given answer to the problem is 1 ('a'). But I think that strings 'a+a' & 'a*a' can also be derived from the grammar. Please correct me if I am wrong.
0 votes
1 answer
380
0 votes
1 answer
381
Given answer: DSolution to this problems says that the grammar is same as dangling else problem. Please explain me how.
1 votes
1 answer
382
1 votes
1 answer
384
1 votes
1 answer
386