Example #1
0
 /// <summary>
 /// Libera a instancia.
 /// </summary>
 /// <param name="disposing"></param>
 protected virtual void Dispose(bool disposing)
 {
     if (_source != null)
     {
         _source.Dispose();
         _source = null;
     }
 }
Example #2
0
 /// <summary>
 /// Fecha o arquivo do origem.
 /// </summary>
 public void CloseFile()
 {
     if (_source != null)
     {
         _source.Close();
     }
     _source = null;
 }
Example #3
0
 /// <summary>
 /// Abre o leitor onde serĂ¡ executado o parser.
 /// </summary>
 /// <param name="stream"></param>
 public void OpenStream(TextReader stream)
 {
     Reset();
     _source = new LookAheadReader(stream);
     PrepareToParse();
 }
Example #4
0
 public void OpenFile(string filename)
 {
     Reset();
     _source = new LookAheadReader(new StreamReader(new FileStream(filename, FileMode.Open)));
     PrepareToParse();
 }