retagged by
408 views
1 votes
1 votes

Q.  Consider the following grammar :
1. S → XYX                             2. X → Yc
3. X → sX                                4. X → ε
5. Y → eX
Find the first and follow

retagged by

1 Answer

0 votes
0 votes
  First follow
S e,s $
X e,s,€ $,e,c,s
Y e $,e,c,s
edited by

Related questions

1 votes
1 votes
2 answers
1
0 votes
0 votes
1 answer
2
Ana_101 asked 5 days ago
42 views
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 votes
1 answer
3
srestha asked Dec 24, 2017
357 views
Find Follow of F :$E\rightarrow E+T | T$$T\rightarrow T*F | F$$ F\rightarrow \left ( E \right ) |id$
0 votes
0 votes
2 answers
4
aaru14 asked Nov 22, 2017
286 views
E >TE/aT >ET/bfirst set of E and T??