Recent questions tagged lr-parser

1 votes
1 answer
151
consider a state having thisL' - L. {$}L - L.b {$,B}does this state have SR coonflict
1 votes
1 answer
152
S->SAS | aA->AA | bis the grammara) LR(0)b)SLR(1)c)LALR(1)d)none
2 votes
0 answers
153
0 votes
0 answers
154
Let G be a grammar with the following productions.If LR(1) Parser is used to construct the DFA using the above productions, then how many look-a-heads are present for an ...
0 votes
1 answer
155
S - AaA - AbA - cWhich of the following item is present in LR(1) item with S' - .S, $\$$ ?A) A - .Ab, $\$$B) A - .c, $\$$C) A - .Ab, a/bD) None
2 votes
2 answers
157
Q if any Grammar is LL(1) definitely LALR(1) ?It is true or falsePlease ans explain in detail.
0 votes
1 answer
158
Which of the following is not LR(1)?a. S->Uab|VacU->dV->db. S->Uab|Vab|VacU->dV->dc.S->ABA->aB->bd. A->AbA->a|cPlease Explain.
1 votes
0 answers
160
In bottom up parsing , if the same entry has both SR or RR moves then what is the problem? Why is it called a confict ? Why cant we just leave it like that? and Why is it...
2 votes
1 answer
161
Is this grammar ambiguous?S >SxA|AA >AyB|BB >zB|(S)|m|nI cant prove it ambiguos.As this grammar is not in LR(1) it may or may not be ambiguous.
2 votes
2 answers
162
1 votes
1 answer
164
is this given diagram correct or incorrect if incorrect then please correct it .
0 votes
1 answer
166
the G isS- while(E)S/aE- afor nested while statementa.is not LR(1)b.is not SLR(1)c.is not LALR(1)d.is LR(0)
0 votes
1 answer
167
Where is reduce-reduce conflict here?Plz explainS→SS→SS∣a∣ϵ
0 votes
2 answers
168
1 votes
0 answers
170
If in the state table of a LR parser, in some row, we have more than one SR or RR conflict, then is it considered a single conflict?Reference:- https://gateoverflow.in/11...
0 votes
1 answer
171
in case of shift-reduce and R-R conflict, which is favored by YACC?
0 votes
1 answer
172
G : GrammarS1 : Every LALR(1) G is LR(1).S2 : Every LR(1) G is LALR(1).S3: Some LL(1) is Regular.A. TFF B.TFT C. TTF D. FTT E. NONE
1 votes
1 answer
173
IS EVERY LL(1) GRAMMAR LALR(1)?? I DONT KNOW WHETHER ITS TRUE OR NOT?CAN SOMEONE EXPLAIN??
0 votes
1 answer
174
Why in this I6 and I7 are not in same state??
1 votes
2 answers
176
State True/False : "LR(0)⊂SLR(1)⊂LALR(1)⊂LR(1)".
0 votes
1 answer
177
0 votes
1 answer
178
0 votes
1 answer
179
0 votes
1 answer
180