Recent questions tagged parsing

0 votes
0 answers
211
Can LALR have more reduce entries than SLR ?As per my understanding, the lookaheads used in LALR are subsets of Follow sets in SLR, so reduce entries in LALR can be less ...
0 votes
0 answers
212
What is relation between CGF, Regular grammar, CSG, LL(1), LL(k), LR(0), SLR(1), LALR(1), CLR(1).What is the meaning of expressive power? I know thatLR(0)<SLR(1)<LALR(1)<...
0 votes
2 answers
213
S->AaA->BDB->b | ɛD->d | ɛwhat is FIRST(S)?
0 votes
1 answer
214
Do every LR(1) grammar have DPDA?
0 votes
1 answer
215
0 votes
1 answer
216
Bottom up parser uses right hand derivation or left hand derivation????
4 votes
0 answers
217
Consider the following grammar which is not LL(1) because LL(1) table contain multiple entry for same production.The number of entries have multiple productions in LL(1) ...
0 votes
2 answers
220
S- ABAA- Bc|dA|€B- eA How many entries have multiple production in LL (1) table
0 votes
2 answers
221
0 votes
1 answer
222
Does bottom up parsers give postfix expression?
1 votes
1 answer
224
$A→ b.a , \left \{ b \right \}$ $B→ b.,\left \{ a \right \}$It is a SR conflict in LALR(1). Now how reduce state operated on $a$ for non terminal $B$(and not $b$) ?...
1 votes
1 answer
225
0 votes
0 answers
227
0 votes
1 answer
228
How to make a parse tree for the expression$a+b*c/b*c*f?$
0 votes
1 answer
229
Compute follow of the following grammar?$E \rightarrow TE'$$E' \rightarrow +TE'/\epsilon$$T \rightarrow FT'$$T' \rightarrow ^*FT'/\epsilon$$F \rightarrow (E)/id$
0 votes
1 answer
230
Consider the following grammar$S \rightarrow SS/Sa/aS/a$Construct Parse Tree for $w=aaaa$ as many as possible? How many parse trees are possible?
0 votes
1 answer
232
0 votes
2 answers
234
2 votes
3 answers
240
If a grammar( $CFG$ ) has more than one Right most derivation, Can it be called ambiguous ?Or we say a grammar is ambiguous only when it has more than one left most deriv...