ParseFile() приватный Метод

private ParseFile ( String file, HlslAnalyzer analyzer ) : Node
file String
analyzer HlslAnalyzer
Результат Node
Пример #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!");
        }
Пример #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!");
        }