MCQ · 2 marks · Parsing

GATE CS 2021 CS-1 — Q31

Consider the following context-free grammar where the set of terminals is {a,b,c,d,f}\{a, b, c, d, f\}.
S→daT∣RfS \to daT \mid Rf
T→aS∣baT∣ϵT \to aS \mid baT \mid \epsilon
R→caTR∣ϵR \to caTR \mid \epsilon
The following is a partially-filled LL(1) parsing table.
aabbccddff$\$
S(1)S→daTS \to daT(2)
TT→aST \to aST→baTT \to baT(3)T→ϵT \to \epsilon(4)
RR→caTRR \to caTRR→ϵR \to \epsilon
Which one of the following choices represents the correct combination for the numbered cells in the parsing table ("blank" denotes that the corresponding cell is empty)?
Select one option