Can set of terminal be empty in a grammar?
As per Ullman,
Terminal is a finite set of symbols that forms the string of the language being defined.
for a language, L = { }, terminal set will be empty.
Is epsilon (null string) counted as a terminal symbol?
The null string is not a terminal symbol. A terminal symbol is an element of the alphabet, but the empty string is not an element of the alphabet. Alphabet contain atomic symbols of length 1, but epsilon is of length 0.
64.3k questions
77.9k answers
244k comments
80.0k users