in Compiler Design edited by
2,297 views
2 votes
2 votes
Consider the following augmented grammar, which is to be parsed with a $\text{SLR}$ parser. The set of terminals is $\{a, b, c, d, \#, @\}$
\[
\begin{array}{l}
S^{\prime} \rightarrow S \\
S \rightarrow S S|A a| b A c|B c| b B a \\
A \rightarrow d \# \\
B \rightarrow @
\end{array}
\]

Let $I_{0}=\operatorname{CLOSURE}\left(\left\{S^{\prime} \rightarrow \bullet S\right\}\right)$. The number of items in the set $\operatorname{GOTO}\left(I_{0}, S\right)$ is __________.
in Compiler Design edited by
by
2.3k views

1 comment

GOTO(I0,S) will have 9 items.
0
0

1 Answer

1 vote
1 vote

From above DFA we can see that Goto$\text{(closure}(I_{0}),S)$ contains  $9$ items.

Similar types of questions are asked in the following:

Answer:

Related questions