public static void TestLanguage() { TestRegExp(); Console.WriteLine("taal van (baa):\n"); RegExp.PrintLanguage(expr1.GetLanguage(5)); Console.WriteLine("taal van (bb):\n"); RegExp.PrintLanguage(expr2.GetLanguage(5)); Console.WriteLine("taal van (baa | bb):\n"); RegExp.PrintLanguage(expr3.GetLanguage(5)); Console.WriteLine("taal van (a|b)*:\n"); RegExp.PrintLanguage(all.GetLanguage(5)); Console.WriteLine("taal van (baa | bb)+:\n"); RegExp.PrintLanguage(expr4.GetLanguage(5)); Console.WriteLine("taal van (baa | bb)+ (a|b)*:\n"); RegExp.PrintLanguage(expr5.GetLanguage(5)); }
public ThompsonBox(RegExp exp, string beginState, string endState) { this.Exp = exp; this.BeginState = beginState; this.EndState = endState; }