public static Section ParseToDom(TextReader reader)
        {
            LineClassifier classifier = new LineClassifier(reader);
            Parser parser = new Parser(classifier);

            return parser.Parse();
        }
        public void Parse(TextReader reader)
        {
            if (_topSection != null)
            {
                throw new InvalidOperationException(AdornedTextStrings.AdornedProcessorAlreadyParsed);
            }

            LineClassifier classifier = new LineClassifier(reader);
            Parser parser = new Parser(classifier);

            try
            {
                _topSection = parser.Parse();
            }
            catch (AdornedTextParsingException ex)
            {
                _topSection = GenerateErrorDocument(ex, classifier);
            }
        }