Example #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;
 }
Example #2
0
        public void ParseFile(string file)
        {
            CppStructuralOutput output = new CppStructuralOutput();
            CppFileParser       parser = new CppFileParser(output, file);

            editMain.Lines  = output.GetStrings();
            editOutput.Text = parser.Message;
        }
Example #3
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);
 }
Example #4
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);
        }
Example #5
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;
                }
            }
        }