consider the following grammerE-> T E'E'-> + F

consider the following grammer

E-> T E'

E'-> + F | LAMBDA

T-> F T'

T'-> T | LAMBDA

F-> P F'

F->* F' | LAMBDA

P-> ( E ) | a | b | eP

what is the FOLLOW(P) ?

 

3Comments
Sameer Dubey @sameerz567 2 Dec 2014 12:35 am

This grammar has a flaw, please check if the 6th production is correct

lucky @luckysunda 16 Nov 2015 06:05 am

There should be a production for F|

 

Parimal Andhalkar @parimal_andhalkar 16 Nov 2015 08:12 pm

Let 6th profuction is F'   .....  what is LAMBDA ...

if LAMBDA is terminal  then

Follow(P) = {*, LAMBDA}