コード例 #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>
		public PageTextHtmlLexer(string html)
		{
			// token queue
			tokens = new List<string>();

			// read the file contents
			reader = new CharReader(html);
		}
コード例 #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>
		public Lexer(TextReader source)
		{
			// token queue
			tokens = new TokenList();

			// read the file contents
			reader = new CharReader(source);
		}
コード例 #3
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>
 public PageTextHtmlCmdLexer(string htmlcmd)
 {
     // read the file contents
     reader = new CharReader(htmlcmd);
 }
コード例 #4
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>
		public PageTextHtmlCmdLexer(string htmlcmd)
		{
			// read the file contents
			reader = new CharReader(htmlcmd);
		}