CD-2M-TT14/16-Find First(T) and Follow(F) from the following

Find First(T) and Follow(F) from the following grammar.
E → E + T | T
T → T * F | F
F → (E) | a | b

(A) First(T) = {(, a, b} Follow(F) = {*, +, $, )}
(B) First(T) = {(, a, b} Follow(F) = {*, $, )}
(C) First(T) = {a, b} Follow(F) = {*, +, $, )}
(D) First(T) = {(, a, b} Follow(F) = {*, +, $}

A

B

C

D

0Comment