PrintLogFile() private method

private PrintLogFile ( Node node ) : void
node Node
return void
Example #1
0
        public static void Main(string[] args)
        {
            Console.WriteLine("Test Began!");

            if (args.Length < 2) {
                Console.WriteLine("You must pass at least one externalizable function as the main!");
                return;
            }

            MainClass m = new MainClass();

            //string[] functions = args[0..3];
            ArrayList mainFunctions = new ArrayList();
            for (int i=1; i<args.Length; i++) {
                mainFunctions.Add(args[i]);
            }

            GLSLGenerator gen = new GLSLGenerator(mainFunctions);
            Node node = m.ParseFile(args[0], gen);

            m.PrintLogFile(node);
            for (int i=0; i<mainFunctions.Count; i++) {
                m.PrintGLSLFile(node, gen, (string)mainFunctions[i]);
            }
            //gen.PrintCallTree();

            Console.WriteLine("Test OK!");
        }
Example #2
0
        public static void Main(string[] args)
        {
            Console.WriteLine("Test Began!");

            if (args.Length < 2)
            {
                Console.WriteLine("You must pass at least one externalizable function as the main!");
            }

            MainClass m = new MainClass();

            //string[] functions = args[0..3];
            ArrayList mainFunctions = new ArrayList();

            for (int i = 1; i < args.Length; i++)
            {
                mainFunctions.Add(args[i]);
            }

            GLSLGenerator gen  = new GLSLGenerator(mainFunctions);
            Node          node = m.ParseFile(args[0], gen);

            m.PrintLogFile(node);
            for (int i = 0; i < mainFunctions.Count; i++)
            {
                m.PrintGLSLFile(node, gen, (string)mainFunctions[i]);
            }
            //gen.PrintCallTree();

            Console.WriteLine("Test OK!");
        }