📖 Explanation
To construct the predictive parsing table M, we first determine the FIRST and FOLLOW sets:
FIRST(F)={id}, FIRST(R)={∗,ε}, and FIRST(S)=FIRST(FR)={id}.
The FOLLOW set for R is FOLLOW(R) = FOLLOW(S) = \{\}becauseRfollowsS∈theproductionS \rightarrow FR.ForM[S, id],sinceid \in FIRST(FR),theentryis{S \rightarrow FR}.ForM[R, $],sinceR \rightarrow \varepsilonisaproductionand$ \in FOLLOW(R),weincludetheproduction{R \rightarrow \varepsilon}.Thus,M[S, id] = {S \rightarrow FR}andM[R, $] = {R \rightarrow \varepsilon}$.