#include <assembler.h>
Public Member Functions | |
assembler (std::ostream &out) | |
void | output (node::pointer_t n, output_mode_t mode) |
Private Member Functions | |
std::string | escape_id (std::string const &id) |
void | output (node::pointer_t n) |
void | output_at_keyword (node::pointer_t n) |
void | output_comment (node::pointer_t n) |
void | output_component_value (node::pointer_t n) |
void | output_parenthesis (node::pointer_t n, int flags) |
void | output_string (std::string const &str) |
void | output_url (std::string const &str) |
Private Attributes | |
std::shared_ptr< assembler_impl > | f_impl = std::shared_ptr<assembler_impl>() |
std::ostream & | f_out |
node::pointer_t | f_root = node::pointer_t() |
Definition at line 36 of file assembler.h.
csspp::assembler::assembler | ( | std::ostream & | out | ) |
Definition at line 258 of file assembler.cpp.
|
private |
Definition at line 263 of file assembler.cpp.
References csspp::lexer::is_identifier(), csspp::lexer::is_start_identifier(), and csspp::lexer::mbtowc().
Referenced by output(), and output_component_value().
|
private |
Definition at line 370 of file assembler.cpp.
References csspp::ADD, csspp::AN_PLUS_B, csspp::AND, csspp::ARG, csspp::ARRAY, csspp::ASSIGNMENT, csspp::AT_KEYWORD, csspp::BOOLEAN, csspp::CDC, csspp::CDO, csspp::CLOSE_CURLYBRACKET, csspp::CLOSE_PARENTHESIS, csspp::CLOSE_SQUAREBRACKET, csspp::COLON, csspp::COLOR, csspp::COLUMN, csspp::COMMA, csspp::COMMENT, csspp::COMPONENT_VALUE, csspp::CONDITIONAL, csspp::DASH_MATCH, csspp::DECIMAL_NUMBER, csspp::decimal_number_to_string(), csspp::DECLARATION, csspp::DIVIDE, csspp::DOLLAR, csspp::EOF_TOKEN, csspp::EQUAL, escape_id(), csspp::EXCLAMATION, f_impl, f_out, csspp::FONT_METRICS, csspp::FRAME, csspp::FUNCTION, csspp::GREATER_EQUAL, csspp::GREATER_THAN, csspp::HASH, csspp::IDENTIFIER, csspp::INCLUDE_MATCH, csspp::INTEGER, csspp::LESS_EQUAL, csspp::LESS_THAN, csspp::LIST, csspp::MAP, csspp::max_type, csspp::MODULO, csspp::MULTIPLY, csspp::NOT_EQUAL, csspp::NULL_TOKEN, csspp::OPEN_CURLYBRACKET, csspp::OPEN_PARENTHESIS, csspp::OPEN_SQUAREBRACKET, output(), output_at_keyword(), output_comment(), output_component_value(), output_parenthesis(), output_string(), output_url(), csspp::PERCENT, csspp::PERIOD, csspp::PLACEHOLDER, csspp::POWER, csspp::PRECEDED, csspp::PREFIX_MATCH, csspp::REFERENCE, csspp::SCOPE, csspp::SEMICOLON, csspp::STRING, csspp::SUBSTRING_MATCH, csspp::SUBTRACT, csspp::SUFFIX_MATCH, csspp::color::to_string(), csspp::nth_child::to_string(), csspp::unicode_range_t::to_string(), csspp::UNICODE_RANGE, csspp::UNKNOWN, csspp::URL, csspp::VARIABLE, csspp::VARIABLE_FUNCTION, and csspp::WHITESPACE.
void csspp::assembler::output | ( | node::pointer_t | n, |
output_mode_t | mode | ||
) |
Definition at line 338 of file assembler.cpp.
References csspp::COMPACT, csspp::COMPRESSED, csspp::EXPANDED, f_impl, f_out, f_root, output(), and csspp::TIDY.
Referenced by anonymous_namespace{csspp.cpp}::pp::compile(), output(), output(), output_at_keyword(), output_component_value(), and output_parenthesis().
|
private |
Definition at line 810 of file assembler.cpp.
References csspp::ARG, f_impl, f_out, csspp::OPEN_CURLYBRACKET, and output().
Referenced by output().
|
private |
|
private |
Definition at line 726 of file assembler.cpp.
References csspp::ARG, escape_id(), f_impl, csspp::IDENTIFIER, csspp::OPEN_CURLYBRACKET, output(), and csspp::PLACEHOLDER.
Referenced by output().
|
private |
Definition at line 777 of file assembler.cpp.
References f_impl, f_out, csspp::OPEN_PARENTHESIS, output(), and output_parenthesis().
Referenced by output(), and output_parenthesis().
|
private |
Definition at line 952 of file assembler.cpp.
References f_out.
Referenced by output(), and output_url().
|
private |
Definition at line 1006 of file assembler.cpp.
References f_impl, f_out, csspp::lexer::is_non_printable(), and output_string().
Referenced by output().
|
private |
Definition at line 54 of file assembler.h.
Referenced by output(), output(), output_at_keyword(), output_comment(), output_component_value(), output_parenthesis(), and output_url().
|
private |
Definition at line 55 of file assembler.h.
Referenced by output(), output(), output_at_keyword(), output_comment(), output_parenthesis(), output_string(), and output_url().
|
private |
Definition at line 56 of file assembler.h.
Referenced by output().
Documentation of CSS Preprocessor.
This document is part of the Snap! Websites Project.
Copyright by Made to Order Software Corp.