internal Lexer(StylesheetReader source)
        {
            _buffer           = new StringBuilder();
            _stylesheetReader = source;

            ErrorHandler = (err, msg) => { };
        }
Beispiel #2
0
        internal Lexer(StylesheetReader source)
        {
            _buffer = new StringBuilder();
            _stylesheetReader = source;

            ErrorHandler = (err, msg) => { };
        }
Beispiel #3
0
        /// <summary>
        /// Creates a new CSS parser instance parser with the specified stylesheet
        /// based on the given source manager.
        /// </summary>
        /// <param name="stylesheet">The stylesheet to be constructed.</param>
        /// <param name="source">The source to use.</param>
        internal CssParser(StylesheetReader reader)
        {
            selector       = Pool.NewSelectorConstructor();
            sync           = new Object();
            skipExceptions = true;
            tokenizer      = new Lexer(reader);

            started  = false;
            function = new Stack <FunctionBuffer>();
            sheet    = stylesheet;
            open     = new Stack <CSSRule>();
            SwitchTo(CssState.Data);
        }