Recent questions tagged lr-parser

6 votes
7 answers
211
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
1 votes
2 answers
212
0 votes
1 answer
213
Could someone please help me check the conflicts in LALR parser. I never understand the difference between these CLR and LALR. and because of this i even forget the SLR p...
1 votes
3 answers
214
Here what will be the lookahead for first state?Here is given answer:
0 votes
1 answer
215
0 votes
1 answer
217
0 votes
1 answer
218
0 votes
1 answer
219
0 votes
1 answer
220
Consider the following grammar. S $\rightarrow$ (S)S | ∊How many conflicts occur in LR (0) parser for the above grammar?
2 votes
1 answer
221
S->aAb/aBc/bAd/bBeA->gB->gHow many states in slr(1)
2 votes
1 answer
222
If lalr(1) has no conflict then clr(1) never contain any conflictIt is true or falseIf it is false explain
0 votes
1 answer
223
0 votes
1 answer
225
Can a grammar which is not LL can be SLR?where will you fit LL in sequence below:LR(0) = SLR = LALR = LR * = stands for implies
0 votes
1 answer
226
Can anybody enumerate the similarities and dissimilarities between LL, SLR, LALR and LR parsers.
0 votes
1 answer
227
Which of the following set could result SR conflict in LALR(1)?a) A→ a.b, {b} B→ a. , {a}b) A→ a.a , {a} B→ a. , {b}c) A→ b.a , {b} B→ b.,{a}d) A→ b...
1 votes
2 answers
228
Consider the following grammerS→ bAd /bBeA→aB→aThe above grammer is ________________1) SLR(1)2) LALR(1) but not SLR(1)3) CLR(1) but not LALR(1)d) Not LR(1)
1 votes
3 answers
229
Which of the following could result in Shift-Reduce conflict in LR(0) parser?1){ A→ b.c ,B→b. }2){A→a.b,B→b. }3) {A→∊. , B→.a}4)All of these
0 votes
2 answers
230
S'→SS→A/BA→fAi/nB→fBii/dFor the above augmented grammer , the number of states in LR(1) parser are_______________
0 votes
1 answer
231
Ques:- Check whether the following grammar is clr(1) grammar or not or lalr grammar or not.S - (S)S - aProblem-The work( for checking the given grammar is LR(1) or not) d...