예제 #1
0
        /// <summary>
        /// Initializes a new instance of the Lexer class with the specified
        /// TextReader to lex.
        /// </summary>
        /// <param name="source">A TextReader to lex.</param>
        internal Lexer(TextReader source)
        {
            // token queue
            tokens = new LexTokenList();

            // read the file contents
            reader = new LexCharReader(source);
        }
예제 #2
0
		/// <summary>
		/// Initializes a new instance of the Lexer class with the specified
		/// TextReader to lex.
		/// </summary>
		/// <param name="source">A TextReader to lex.</param>
		internal Lexer(TextReader source)
		{
			// token queue
			tokens = new LexTokenList();

			// read the file contents
			reader = new LexCharReader(source);
		}