search
Log In
Welcome to GATE CSE Doubts, where you can ask questions and receive answers from other members of the community.
Top Users Sep 2019
  1. Satbir

    567 Points

  2. Bikram

    566 Points

  3. GAITONDE

    348 Points

  4. Vimal Patel

    87 Points

  5. Shaik Masthan

    38 Points

  6. BLACK_CLOUD

    14 Points

  7. sekhar_1621

    13 Points

  8. OgbeborBeatrice

    13 Points

  9. RAMYA.F

    9 Points

  10. vkw1111

    9 Points

0 votes
17 views

This is what I got:

First(S)={b}

First(A)={b}

First(B)={b,e}

First(C)={b,e,epsilon}

Follow(S)={$,d}

Follow(A)={a,b,e}

Follow(B)={a,b,d,e,$}

Follow(C)={a,b,e,$}

in Compiler Design 132 points 17 views

1 Answer

2 votes
 
Best answer

Follow of B must contain a, as we can see that Follow(B) = Follow(C), which in turn results to FOLLOW(A) and FOLLOW(A) should contain a. As no other options has a in their follow set, we can go with option d.

So yes, u are right. 

PS →   LAST YEAR ACE MADE GUINNESS BOOK WORLD RECORD BY PROVIDING MOST WRONG ANSWERS IN A TEST SERIES.


If found helpful, UPVOTE and mark ans as the BEST ANSWER (by clicking the blue tick on the left side of the ans). This motivates me to ANSWER YOUR QUESTIONS IN FUTURE

567 points
selected by
1
Thanks Nobi. :D Upvoted and marked as best.
0
cheers..  :)
0
given answer is correct.. Note that follow(B) = first(C)
1
@shaik

see the last production

C→ BB

here Follow(B) =Follow(C)
1
ya, it's my mistake !
...