Question: Consider the grammar given by the following productions: E -> E + E| T | b T -> T * T | a Which of

Consider the grammar given by the following productions:

E -> E + E| T | b

T -> T * T | a

Which of the following are the First and the Follow Sets for variables E and T?

1- First(E) = {a,b}; Follow(E) = {+}; First(T) = {a}; Follow(T) = {*}

2- First(E) = {a,b}; Follow(E) = {+,*}; First(T) = {a}; Follow(T) = {+, *}

3- First(E) = {a,b}; Follow(E) = {+}; First(T) = {a}; Follow(T) = {+, *}

4- First(E) = {a}; Follow(E) = {+}; First(T) = {a}; Follow(T) = {+, *}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!