MCQ · 2 marks · Parsing

GATE CS 2012 CS — Q53

Statement for Linked Answer Questions 52 and 53:

For the grammar below, a partial LL(1) parsing table is also presented along with the grammar. Entries that need to be filled are indicated as E1, E2, and E3. ϵ\epsilon is the empty string, $$$ indicates end of input, and, | separates alternate right hand sides of productions.

S→aAbB∣bAaB∣ϵS \rightarrow aAbB \mid bAaB \mid \epsilon A→SA \rightarrow S B→SB \rightarrow S

| | a | b | \$$ | | --- | --- | --- | --- | | S | E1 | E2 | S \rightarrow \epsilon∣∣A∣| | A |A \rightarrow S∣|A \rightarrow S∣error∣∣B∣| error | | B |B \rightarrow S∣|B \rightarrow S$ | E3 |

The appropriate entries for E1, E2, and E3 are
Select one option