Esempio n. 1
0
 public void ParseFile(string file)
 {
     CppStructuralOutput output = new CppStructuralOutput();
     CppFileParser parser = new CppFileParser(output, file);
     editMain.Lines = output.GetStrings();
     editOutput.Text = parser.Message;
 }
Esempio n. 2
0
 public CppFileSetParser(IAstPrinter printer, string sDir)
 {
     di = new DirectoryInfo(sDir);
     foreach (FileInfo fi in di.GetFiles("*.c;*.cpp;*.h;*.hpp;"))
     {
         CppFileParser fp = new CppFileParser(printer, fi.Name);
     }
 }
Esempio n. 3
0
        public void ParseFile(string file)
        {
            CppStructuralOutput output = new CppStructuralOutput();
            CppFileParser       parser = new CppFileParser(output, file);

            editMain.Lines  = output.GetStrings();
            editOutput.Text = parser.Message;
        }
Esempio n. 4
0
 public CppFileSetParser(IAstPrinter printer, string sDir)
 {
     di = new DirectoryInfo(sDir);
     foreach (FileInfo fi in di.GetFiles("*.c;*.cpp;*.h;*.hpp;"))
     {
         CppFileParser fp = new CppFileParser(printer, fi.Name);
     }
 }
Esempio n. 5
0
 public void ParseFile(string file)
 {
     CppStructuralOutput output = new CppStructuralOutput();
     CppFileParser parser = new CppFileParser(output, file);
     string[] strings = output.GetStrings();
     foreach (string s in strings)
         WriteLine(s);
     WriteLine(parser.Message);
 }
Esempio n. 6
0
        public void ParseFile(string file)
        {
            CppStructuralOutput output = new CppStructuralOutput();
            CppFileParser       parser = new CppFileParser(output, file);

            string[] strings = output.GetStrings();
            foreach (string s in strings)
            {
                WriteLine(s);
            }
            WriteLine(parser.Message);
        }
Esempio n. 7
0
        private void parseFile()
        {
            string fileName = sourceFileTexBox.Text;

            if (File.Exists(fileName))
            {
                CppStructuralOutput output = new CppStructuralOutput();
                CppFileParser parser = new CppFileParser(output, fileName);

                List<FunctionDefine> funList = output.getFunctionList();

                foreach (FunctionDefine item in funList)
                {
                    funcListBox.Items.Add(item.FunctionName);

                }

                if (!parser.Message.Equals("Successfully parsed file"))
                {
                    MessageBox.Show(parser.Message);
                }

                for (int i = 0; i < funcListBox.Items.Count; i++)
                {
                    funcListBox.SelectedIndex = i;
                }
            }
        }