Consider the following grammar G:
The number of states in SLR parser for G is _______.
My question is since this grammar can't generate any string the number of states should be zero right as we will remove useless symbols before constructing canonical collection of LR(0) items
I think you are true.
7 states in SLR
why didn't you add the production F->.y in the state I0 ??
adding it will lead to one more state.