Exemple #1
0
        static void Main(string[] args)
        {
            var files = FileReader.ReadGuptaFiles();

            DependencyParser parser = new DependencyParser();
            FileReader       f      = new FileReader();
            var tableNames          = f.ReadTableNames();

            parser.TableNames = tableNames;

            foreach (var file in files)
            {
                parser.ParseDocument(file.Item1, file.Item2.ToLower());
            }



            foreach (var file in files)
            {
                Console.WriteLine(file.Item1);
                if (file.Item1 == "patimp")
                {
                    Console.WriteLine("Attention");
                    parser.FindFunctionCalls(file.Item1, file.Item2.ToLower());
                }
                else
                {
                    parser.FindFunctionCalls(file.Item1, file.Item2.ToLower());
                }
            }

            List <RequestRecord> records = parser.RequestRecords;

            WriteToFile(records);

            Console.WriteLine(@"Sucessfully parsed {0} files", files.Count);
            Console.ReadLine();
        }