/// <summary> /// Returns a BxlDocument from parsing the text representation of a BXL file that has been already decoded. /// </summary> /// <param name="text">Text representation of the BXL contents.</param> /// <param name="referenceFileName">Used for error reporting purposes.</param> /// <param name="logs">Information gathered during the parsing process, including errors.</param> /// <param name="progress">Allows reporting progress for large files.</param> public static BxlDocument ReadFromText(string text, string referenceFileName, out Logs logs, IProgress <int> progress = null) { var parser = new BxlParser(text, referenceFileName); var document = parser.Execute(progress); logs = new Logs(parser.Logs); return(document); }