Beispiel #1
0
        static void Main(string[] args)
        {
            NFA nfa= new NFA("(A*B|AC)D");

            Console.Write("Write string to recognize: ");
            Console.WriteLine("Recognized : {0}",nfa.recognizes(Console.ReadLine()));

            Console.ReadKey();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            NFA nfa = new NFA("(A*B|AC)D");

            Console.Write("Write string to recognize: ");
            Console.WriteLine("Recognized : {0}", nfa.recognizes(Console.ReadLine()));

            Console.ReadKey();
        }