Web::CSS::Builder
A CSS tree structure builder
DESCRIPTION
The Web::CSS::Builder
class,
which is a subclass of the Web::CSS::Tokenizer,
parses text in the CSS-based syntax and construct tree data structure,
which then can be used as input to the rule grammer aware parsing stage (e.g.
Web::CSS::Parser).
This module is intended to be used by a CSS-based language parser as its base class. It does not intended for applications directly invoking methods or accessing data structure of the module.
CONSTANTS
By use
ing the module,
a number of construct type constants,
as well as token type constants of Web::CSS::Tokenizer,
are exported to your package.
DATA STRUCTURES
See the comment in the module for the data structure of constructs emitted by the module's methods, and the comment in Web::CSS::Tokenizer module for the data structure of tokens.
Constructs emitted by the module also have line
and column
fields.
Any other field should not be directly accessed by the application.
See Web::CSS::Tokenizer documentation for more information.
SPECIFICATION
CSS Syntax <http://dev.w3.org/csswg/css-syntax/>
.
SEE ALSO
Web::CSS::Parser, Web::CSS::Selectors::Parser, Web::CSS::MediaQueries::Parser.
AUTHOR
Wakaba <wakaba@suikawiki.org>.
LICENSE
Copyright 2013 Wakaba <wakaba@suikawiki.org>.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.