NAT · 2 marks · Parsing

GATE CS 2021 CS-2 — Q51

Consider the following augmented grammar with {#,@,<,>,a,b,c}\{\#, @, <, >, a, b, c\} as the set of terminals.

<br>S′→S<br>S→S#cS<br>S→SS<br>S→S@<br>S→<S><br>S→a<br>S→b<br>S→c<br>\begin{aligned}<br>S' & \to S \\<br>S & \to S \# c S \\<br>S & \to S S \\<br>S & \to S @ \\<br>S & \to < S > \\<br>S & \to a \\<br>S & \to b \\<br>S & \to c<br>\end{aligned}

Let I0=CLOSURE({S′→∙S})I_0 = \text{CLOSURE}(\{S' \to \bullet S\}). The number of items in the set GOTO(GOTO(I0,<),<)\text{GOTO}(\text{GOTO}(I_0, <), <) is ____________.