Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Starting tokenizer...");
            Tokenizer.Tokenizer tokenizer = new Tokenizer.Tokenizer("C:\\testScript.txt");
            Console.WriteLine("Finished tokenizer...\n");

            Console.WriteLine("Starting compiler...");
            Compiler.Compiler compiler       = new Compiler.Compiler();
            NodeLinkedList    nodeLinkedList = compiler.compile(tokenizer.tokens);

            Console.WriteLine("Finished compiler...\n");

            Console.WriteLine("Starting virtual machine...");
            Virtualmachine.VirtualMachine.getInstance().Run(nodeLinkedList);
            Console.WriteLine("Finished virtual machine...\n");

            Console.WriteLine("Press any key to exit.");
            System.Console.ReadKey();
        }