For the grammar below, a partial LL(1) parsing table is also presented along…
GATE · 2012 · CS · Computer Science & IT
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.
S a A b B | b A a B |
A S
B S

The appropriate entries for E1, E2, and E3 are
- A.
E1: S
aAbB, ASE2: S
bAaB, BSE3: B
S - B.
E1: S
aAbB, SE2: S
bAaB, SE3: S
- C.
E1: S
aAbB, SE2: S
bAaB, SE3: B
S - D.
E1: A
S, SE2: B
S, SE3: B
S
Attempted by 178 students.
Sign up free to check your answer
Sign up freeLoading lesson…