Recent questions tagged parsing

1 votes
1 answer
331
S- L=R|RL->*R|idR->Lcan someone draw the states with lookaheads?i am always getting confused on what should be the lookahead along with the grammarand how to find if ther...
0 votes
2 answers
332
2 votes
1 answer
333
1 votes
1 answer
335
3 votes
1 answer
336
consider the following statements:S1:SLR parsing table have more number of state then LALR parsing tableS2:it is economical to construct SLR and LALR table than CLR parsi...
2 votes
2 answers
337
what is the output produced for the input "abdbdc" using bottom up and top down parsing ?
1 votes
0 answers
338
1 votes
1 answer
340
consider a state having thisL' - L. {$}L - L.b {$,B}does this state have SR coonflict
2 votes
3 answers
341
Trailing symbols of EE - E + T | TT - T * F | FF - (E) | id
1 votes
1 answer
342
S->SAS | aA->AA | bis the grammara) LR(0)b)SLR(1)c)LALR(1)d)none
2 votes
2 answers
343
first and follow ofS->ABCA->0A1 / epsilonB->1B / epsilonC->1C0 / epsilon
2 votes
2 answers
344
Eliminate left recurrsion from $S\rightarrow S0S1S | 01$
0 votes
2 answers
345
The productionsE - E+E | E-E | E*E | ida:) generates inherently ambiguous languagesb:) generates and ambiguous languagec:) is an ambiguous grammerd) none of these
1 votes
2 answers
346
How many derivation trees are there to derive string"te" from below grammer:-G->ATE | g | $\epsilon$A->TE | a | $\epsilon$T- t | $\epsilon$E- e | $\epsilon$
2 votes
0 answers
347
0 votes
0 answers
348
Consider the following augmented grammar G which is used to build LR (0) parsing table.E' __ EE __ E+T/TT __ T*F/FF >(E)/idHow many rows are there in the parsing rable ?...
2 votes
1 answer
349
IS IT NECESSARY TO REMOVE LEFT RECURSION FOR FINDING FIRST AND FOLLOW ??
2 votes
1 answer
350
What are the differences between strong LL(k) parsing and LL(k) parsing?
2 votes
1 answer
351
How to check in the grammar that which parsing method works more efficient for it?For eg in the following grammar -S- Aa/bS->aOptions -a) Top - Downb) Bottom - upc) Bothd...
1 votes
0 answers
352
can anyone tell me the difference between LL(k) and LR(K) Grammers and can we use k look aheads at once ?? in CLR(1) Parser which is most powerful we use just one lookahe...
0 votes
1 answer
355
0 votes
0 answers
356
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
357
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
1 votes
2 answers
358
S >AaAb /BbBaA >epsilonB ->epsiloncheck whether grammar is LL(1),LR(0) OR SLR(1)