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

Consider the grammar shown below:
Si E t S S'|αS' e S | εE b
In the predictive parse table M, of this grammar, the entries M[S', e] and M[S', $] respectively are

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

The correct option is A {Se S, Sε} and {Sε}
The grammar is
Si E t S S'|αS' e S | εE b
The predictive parser table M is


So M[S'. e]={S' ε, S'eS}
M[S'.$]=Sε

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