Ejemplo n.º 1
0
        /// Opens the file with the specified name for parsing.
        public void OpenStream(TextReader stream)
        {
            Reset();

            m_source = new LookAheadReader(stream);

            PrepareToParse();
        }
Ejemplo n.º 2
0
        /// Closes the file opened with <c>OpenFile</c>.
        public void CloseFile()
        {
            if (m_source != null)
            {
                m_source.Close();
            }

            m_source = null;
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 4
0
		/// Closes the file opened with <c>OpenFile</c>.
		public void CloseFile()
		{
			if (m_source != null)
				m_source.Close(); 
			
			m_source = null;
		}
Ejemplo n.º 5
0
		/// Opens the file with the specified name for parsing.
		public void OpenStream(TextReader stream)
		{
			Reset();
			
			m_source = new LookAheadReader(stream);
			
			PrepareToParse();
		}
Ejemplo n.º 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();
		}