语言 L 不是上下文无关语言。
但是 L* 可以是上下文无关的语言吗?
Yes, this is possible. As an example, consider the alphabet Σ = {1} and let L be the language { 1p | p is a prime number }. You can prove that this language is not context-free by using the pumping lemma.
However, the language L* is the set of all strings except for 1. The reason for this is that
This language is indeed context-free, and you can prove that by writing a grammar for it.
Hope this helps!