retagged by
3,061 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 __________.
retagged by

1 Answer

Answer:

Related questions

2.8k
views
3 answers
1 votes
Arjun asked Feb 16
2,820 views
Consider the following two sets:Set $\text{X}$Set $\text{Y}$P. Lexical Analyzer1. Abstract Syntax TreeQ. Syntax Analyzer2. TokenR. Intermediate Code Generator3. Parse TreeS. Code ...
3.1k
views
1 answers
2 votes
Arjun asked Feb 16
3,145 views
Which of the following statements is/are FALSE?An attribute grammar is a syntax-directed definition $\text{(SDD)}$ in which the functions in the semantic ... $\text{LR(1)}$ grammar can be evaluated using a bottom-up parsing strategy
3.4k
views
1 answers
2 votes
Arjun asked Feb 16
3,389 views
Consider the following context-free grammar where the start symbol is $\text{S}$ and the set of terminals is $\{a, b, c, d\}$ ... $(2)$ $S \rightarrow A a A b$ $(3)$ blank $(4)$ blank
2.2k
views
1 answers
3 votes
Arjun asked Feb 16
2,163 views
Consider the following expression: $x[i]=(p+r) *-s[i]+u / w$ ... $=s i \quad(3)-(0)(2) \quad(6)=[ ] x i$