public void ParseFile(string file) { CppStructuralOutput output = new CppStructuralOutput(); CppFileParser parser = new CppFileParser(output, file); editMain.Lines = output.GetStrings(); editOutput.Text = parser.Message; }
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); } }
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); }
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); }
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; } } }