1,784 views
Consider the augmented grammar with $\{ +, {\ast}, (,),\text{id} \}$ as the set of terminals.

$S’ \rightarrow S$

$S \rightarrow S + R\; |\; R$

$R \rightarrow R {\ast} P \;| \;P$

$P \rightarrow (S)\; |\; \text{id}$

If $I_{0}$ is the set of two $\textit{LR}(0)$ items $\{ [S’ \rightarrow S.], [S \rightarrow S. + R] \}$, then $\textit{goto(closure}(I_{0}), +)$ contains exactly ______________ items.

So Goto$(closure(I_{0}),+)$ contains exactly $5$ items.

Closure of $I_0$ is same as $I_0$, we can find goto($I_0$) easily -

This answer is of different question sir.

The productions of $R$ and $P$ are added because of dot $(.)$ before $R$ and $P$ non-terminals. So $goto(closure(I0, +))$ contains exactly $5$ items.