static void Main() { var expression = new RegexParser("a(b|c)*d").Parse(); foreach (var item in expression.Generate()) { Console.WriteLine(item); } }