Computer Sciences > GATE 2024 Set-2 > Parsing
Consider the following augmented grammar, which is to be parsed with a SLR parser. The set of terminals is {a,b,c,d,#,&}.
S' β S
S β SS | Aa | bAc | Bc | bBa
π΄ β π#
π΅ β @
Let I0 = CLOSURE({S' β β’S}) The number of items in the set GOTO(I0, S) is
S' β S
S β SS | Aa | bAc | Bc | bBa
π΄ β π#
π΅ β @
Let I0 = CLOSURE({S' β β’S}) The number of items in the set GOTO(I0, S) is
Correct : 4
Similar Questions
Which one of the following is True at any valid state in shift-reduce parsing?
Which of the following statements about the parser is/are correct?
I. Canonical LR is more powerful than SLR.
II. SLR is more powerful than LALR.
III. SLR is...
Consider the augmented grammar given below:
Sβ² β S
S β βid
L β L, SβS
Let I0= CLOSURE ({[Sβ² β S]}).
The number of items in the set GOTO (I0,
Total Unique Visitors
Loading......