wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider the following grammar:
SFR
R S|ε
Fid

In the predictive parser table, M, of the grammar the entries M[S, id] and M[R, $] respectively

A
{SFR} and {Rε}
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
{SFR} and { }
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
{Fid} and {Rε}
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
{SFR} and {R S}
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is A {SFR} and {Rε}
Construct Predictive parser table as follows:
Non-terminal id * $
S SFR
R RS Rε
F Fid

So M[S, id]]={SFR}
and M[R, $]={Rε}

flag
Suggest Corrections
thumbs-up
1
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Evaluation of Determinants
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon