Syntax Analysis29

0. 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

  • Option : A
  • Explanation :
     FirstFollow
    id$
    Rid, E$
    Fidid, $
    So table Entries are as follows
    M [S, id] = {S → FR}
    M[R, $] = {R → ε}
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *