Exemplo n.º 1
0
 public void Parse(TextReader reader, IParserContext context)
 {
     var line = reader.ReadLine();
     while (line != null)
     {
         var text = line.Trim();
         if (text.StartsWith(_lineStart))
         {
             var directive = text.Remove(0, _lineStart.Length);
             context.AddDirective(directive);
         }
         else
         {
             context.FilteredContent.WriteLine(line);
         }
         line = reader.ReadLine();
     }
 }