-
Consider the following grammar:
S → FR
R → *S|ε
F → id
In the predictive parser table, M, of the grammar the entries M [S, id] and M[R, $] respectively.
-
- {S → FR} and {R → ε ]
- {S → FR} and { }
- {S → FR} and {R → *S}
- {F → id} and {R → ε }
- {S → FR} and {R → ε ]
Correct Option: A
The predictive parser table is given as.
So at M [S, id] = {S " FR}
M [R,$] = {R"!}