MCQ · 2 marks · Parsing
GATE CS 2012 CS — Q52
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. is the empty string, $$$ indicates end of input, and, | separates alternate right hand sides of productions.
| | a | b | \$$ | | --- | --- | --- | --- | | S | E1 | E2 | S \rightarrow \epsilonA \rightarrow SA \rightarrow SB \rightarrow SB \rightarrow S$ | E3 |
The FIRST and FOLLOW sets for the non-terminals A and B are