The Grammer is given:
S ---> id=E;
E ---> E+T | E-T | T
T ---> T*F | T/F | F
F ---> P^F | P
P ---> -P | L
L ---> (E) | id | num
--------------------------------
I've fond the following FIRST and FOLLOW:
FIRST:
S = { id }
P=E=T=F= { -, (, id, num }
L = { (, id, num }
FOLLOW:
S = { $ }
E = { ;, +, -, ) }
T=F= {;, *, /, +, -, ) }
P =L= {;, ^, *, /, +, -, ) }
I think this answer is wrong. If so, Pls solve this.... pls....
Thanks...
Rizu.