Multiple choice

Consider the grammar. T$\rightarrow$T*F|F F $\rightarrow$ id For a sentence id1 *id2, the handlers in the right sequential form of the reduction are

  1. id1, F, id2, T *F

  2. id1, id2, T *F

  3. id1, F, T *F

  4. id1, F, id2

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation
 
Right sequential form Handle Reduction production
$id_{1}*d_2$ $id_1$ $F \rightarrow id$
$F * d_2$ F $T \rightarrow F$
$T * d_2$ $id_2$ $F \rightarrow id$
$T * F$ $T * F$ $ E \rightarrow T * F $