Пример #1
0
        /// Opens the file with the specified name for parsing.
        public void OpenStream(TextReader stream)
        {
            Reset();

            m_source = new LookAheadReader(stream);

            PrepareToParse();
        }
Пример #2
0
        /// Closes the file opened with <c>OpenFile</c>.
        public void CloseFile()
        {
            if (m_source != null)
            {
                m_source.Close();
            }

            m_source = null;
        }
Пример #3
0
        /// Opens the file with the specified name for parsing.
        public void OpenFile(String p_filename)
        {
            Reset();

            m_source = new LookAheadReader(
                new StreamReader(new FileStream(p_filename, FileMode.Open)));

            PrepareToParse();
        }
Пример #4
0
		/// Closes the file opened with <c>OpenFile</c>.
		public void CloseFile()
		{
			if (m_source != null)
				m_source.Close(); 
			
			m_source = null;
		}
Пример #5
0
		/// Opens the file with the specified name for parsing.
		public void OpenStream(TextReader stream)
		{
			Reset();
			
			m_source = new LookAheadReader(stream);
			
			PrepareToParse();
		}
Пример #6
0
		/// Opens the file with the specified name for parsing.
		public void OpenFile(String p_filename)
		{
			Reset();
			
			m_source = new LookAheadReader(
				new StreamReader(new FileStream(p_filename, FileMode.Open)));
			
			PrepareToParse();
		}