public FileParser(Project p, string f)
{
_project = p;
this.filename = f;
this.fullFilename = Project.BaseDirectory + f;
log.Info("Began parsing \"" + Filename + "\".");
// Made-up label for the start of the file
Label l = new Label(this, Basename + "_start");
l.Fake = true;
InsertComponentAfter(null, l);
string[] lines = File.ReadAllLines(FullFilename);
for (int i=0; i<lines.Length; i++) {
ParseLine(lines[i], i, fileStructure, fileStructureComments);
}
context = "";
Modified = false;
log.Info("Finished parsing \"" + Filename + "\".");
}