Consider the grammar shown below: S→iEtSS'|αS'→eS|εE→b
In the predictive parse table M, of this grammar, the entries M[S', e] and M[S', $] respectively are
A
{S′→eS,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
{S′→eS}and{S′→ε}
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
{S′→eS}and{}
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is A{S′→eS,S′→ε}and{S′→ε} The grammar is S→iEtSS'|αS'→eS|εE→b
The predictive parser table M is