Recent questions tagged grammar

0 votes
1 answer
1
S - A BA - f S fA - b b B dB - ƐB - cFirst(S) =First(A) =First(B) =Follow(S) =Follow(A) =Follow(B) =
0 votes
0 answers
3
0 votes
0 answers
4
how many handles are detected by bottom up parser for string a+a*a?grammar isE->E+T|TT->T*F|FF->aplease draw the whole procedure and explain how bottom up parser does ri...
2 votes
1 answer
7
I don’t get the explanation, How do you categorize grammer on the basis of production?
0 votes
0 answers
9
Consider the grammer $\mathrm{S} \rightarrow \mathrm{SbS} \mid \mathrm{a}$.Consider the following statements:The string abababa has(A) two parse trees(B) two left most de...
2 votes
2 answers
12
Is the following grammar LL(1) ?S→ aABbCD | ϵA→ ASd | ϵB→ Sac| hC | ϵC→ Sf |CgD→ aBD | ϵDraw the LL(1) parsing table for the given grammar.
0 votes
1 answer
13
13 votes
2 answers
16
Consider the following context-free grammar where the set of terminals is $\{a,b,c,d,f\}$. $$\begin{array}{lll} \text{S} & \rightarrow & d \: a \: \text{T} \mid \text{R} ...
2 votes
1 answer
19
0 votes
2 answers
21