コード例 #1
0
ファイル: Lexer.cs プロジェクト: bittercoder/reportingcloud
        /// <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 TokenList();

            // read the file contents
            reader = new CharReader(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 PageTextHtmlLexer(string html)
        {
            // token queue
            tokens = new List<string>();

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