Recent questions tagged first-and-follow

0 votes
1 answer
31
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
32
2 votes
2 answers
33
Find First and Follow in the following grammar.$E\rightarrow E+T \mid T$$T\rightarrow TF \mid F$$F\rightarrow F^* \mid a \mid b$
0 votes
1 answer
36
Find Follow of F :$E\rightarrow E+T | T$$T\rightarrow T*F | F$$ F\rightarrow \left ( E \right ) |id$
0 votes
2 answers
37
0 votes
1 answer
40
First {a} =?First{a, b} =?First{a, b, c} =?First {a, $} =?Where a, b, c are terminals.
2 votes
1 answer
41
Compute the FOLLOW set of $S$ for the following CFG :$S\rightarrow SPQR$$P\rightarrow pPt/ \epsilon$$Q\rightarrow qQ/\epsilon$$R\rightarrow Rr/Qm/\epsilon $
2 votes
3 answers
42
Trailing symbols of EE - E + T | TT - T * F | FF - (E) | id
2 votes
2 answers
43
first and follow ofS->ABCA->0A1 / epsilonB->1B / epsilonC->1C0 / epsilon
1 votes
1 answer
44
S - AB | BABA - SA | baB - a | $\epsilon$What are the follow of S, A, B?
1 votes
1 answer
46
Q. Consider the following grammar :1. S → XYX 2. X → Yc3. X → sX 4. X → ε5. Y → eXFind the first an...
2 votes
0 answers
47
Can we find FIRST and FOLLOW for a left recursive grammar?
3 votes
3 answers
48
2 votes
2 answers
53
1 votes
2 answers
54
1 votes
1 answer
55
How to solve recursive first or follow problems as example in second question (First of A) please give detailed explanation.
1 votes
2 answers
56
0 votes
3 answers
58