I'm writing some static analysis tools and have been trying to avoid doing full-on compilation style string parsing, and that brought me to this question.
Is C# a regular language?
Why or why not?
I'm writing some static analysis tools and have been trying to avoid doing full-on compilation style string parsing, and that brought me to this question.
Is C# a regular language?
Why or why not?
No. C# is not a regular language. C# lets you nest parentheses arbitrarily deep, and a regular language cannot recognize correct bracket matching. This, by itself, means that C# is not regular.