Recent questions tagged lr-parser

1 votes
1 answer
61
Shift reduce parsing can also be called as:Reverse of the Right Most DerivationRight Most DerivationLeft Most DerivationNone of the options
2 votes
1 answer
62
19 votes
2 answers
64
Consider the following grammar.$S \rightarrow aSB \mid d$$B \rightarrow b$The number of reduction steps taken by a bottom-up parser while accepting the string $aaadbbb$ ...
0 votes
0 answers
66
0 votes
0 answers
70
0 votes
1 answer
72
Can lookahead symbol be epsilon in LR(1) parsing?andpls give the LR(1) diagram for the following grammar?A->AB | aB->*AC | Cb | ∈C->+ABc | ∈
0 votes
1 answer
75
consider the grammar G: S->A|B A->a|c B->b|c where {S,A,B} are non-terminals,{a,b,c} are terminals.Does LR(1) can parse all strings that are generated by gr...
4 votes
2 answers
76
Suppose we have a rightmost derivation which proceeds as follows:$\begin{array}{ccc}S &\rightarrow & Aabw \\ & \rightarrow &ABw \end{array}$Which of the following is a po...
1 votes
0 answers
80
1 votes
4 answers
81
0 votes
1 answer
82
If LALR(1) parser have shift reduce conflict then CLR(1) parser must have shift reduce conflict, why?
2 votes
0 answers
83
Which one of the following is true about LALR(1) Parser ?It can resolve SR Conflict in favor of reducedIt can resolve SR Conflict in favor of ShiftIt can resolve RR Confl...
1 votes
1 answer
84
does augmented production causes conflicts
0 votes
0 answers
85
WHAT IS A VALID ITEM FOR A VIABLE PREFIX?CAM SOMEONE EXPLAIN IN EASY WAY.
0 votes
2 answers
89