+1 vote
103 views
Consider the following grammar G shown Below :

S → abS | ScS | d | c

The number of terminals in follow set of non-terminal S is ___________________

Is “$” symbol considered terminal? edited | 103 views 0 it is a special terminal which is not belongs to the given input alphabet ! Due to that reason only " we append it at end of input string in input Buffer " and making Follow(start Terminal) consists '$'.
0
So the answer should be 1 or 2? Do we have to take into account the special terminal?
0
i am not sure to count it or not
0
Yes If you look at the LL(1) parsing table, it is considered as a terminal symbol
0
I am not convinced, because questions some time mention terminal and non terminal explicitly but they never mention dollar as a terminal symbol. I have never seen it anywhere.
+1
A terminal is a symbol that concludes a string expansion.
Whereas a non terminal is a variable that will be replaced by some terminal subsequently.
by (195 points)

+1 vote