retagged by
345 views
0 votes
0 votes
X-->Ya|f

Y-->bY|d

Z-->cZ|e

FOLLOW(Z)???
retagged by

1 Answer

0 votes
0 votes
First of all Z is unreachable variable...that is .....no production is able to reach upto Z....

now follow of Z (which is in R.H.S) is follow is Z (which is in L.H.S)...

but there is no occurence of Z in any production in RHS side ...

so here follow of Z is { }....PHI......

(actually we never get follow of any variable as PHI...but as variable is UNREACHABLE...we say it as PHI...)

Related questions

0 votes
0 votes
1 answer
1
Ana_101 asked 4 days ago
32 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
2
srestha asked Dec 24, 2017
356 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
3
aaru14 asked Nov 22, 2017
286 views
E >TE/aT >ET/bfirst set of E and T??