Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TdfParser"/> class.
 /// </summary>
 /// <param name="reader">The reader to read from.</param>
 /// <param name="adapter">The object to pass parsed data to.</param>
 public TdfParser(TextReader reader, ITdfNodeAdapter adapter)
 {
     this.reader  = new TdfLexingReader(reader);
     this.adapter = adapter;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TdfParser"/> class.
 /// </summary>
 /// <param name="s">The stream to read from.</param>
 /// <param name="adapter">The object to pass parsed data to.</param>
 public TdfParser(Stream s, ITdfNodeAdapter adapter)
     : this(new StreamReader(s), adapter)
 {
 }