Public Member Functions | |
void | add_path (std::string const &path) |
void | clear_paths () |
bool | empty_parents () const |
virtual node::pointer_t | execute_user_function (node::pointer_t func) |
std::string | find_file (std::string const &script_name) |
bool | get_empty_on_undefined_variable () const |
node::pointer_t | get_previous_parent () const |
node::pointer_t | get_root () const |
virtual node::pointer_t | get_variable (std::string const &variable_name, bool global_only=false) const |
void | pop_parent () |
void | push_parent (node::pointer_t parent) |
void | set_empty_on_undefined_variable (bool const empty_on_undefined_variable) |
void | set_paths (compiler_state_t const &state) |
void | set_root (node::pointer_t root) |
void | set_variable (node::pointer_t variable, node::pointer_t value, bool global) const |
Private Attributes | |
bool | f_empty_on_undefined_variable = false |
node_vector_t | f_parents = node_vector_t() |
string_vector_t | f_paths = string_vector_t() |
node::pointer_t | f_root = node::pointer_t() |
Definition at line 53 of file compiler.h.
void csspp::compiler::compiler_state_t::add_path | ( | std::string const & | path | ) |
Definition at line 118 of file compiler.cpp.
Referenced by csspp::compiler::compiler(), and csspp::compiler::add_path().
void csspp::compiler::compiler_state_t::clear_paths | ( | ) |
Definition at line 113 of file compiler.cpp.
Referenced by csspp::compiler::clear_paths().
bool csspp::compiler::compiler_state_t::empty_parents | ( | ) | const |
Definition at line 139 of file compiler.cpp.
Referenced by csspp::compiler::compile().
|
virtual |
Implements csspp::expression_variables_interface.
Definition at line 217 of file compiler.cpp.
References csspp::ARG, csspp::compiler::compile(), csspp::ERROR_ERROR, f_empty_on_undefined_variable, f_paths, csspp::compiler::f_state, csspp::FUNCTION, csspp::compiler::get_result(), csspp::error::instance(), csspp::LIST, csspp::OPEN_CURLYBRACKET, csspp::compiler::set_root(), and csspp::VARIABLE.
std::string csspp::compiler::compiler_state_t::find_file | ( | std::string const & | script_name | ) |
Definition at line 373 of file compiler.cpp.
Referenced by csspp::compiler::find_file().
bool csspp::compiler::compiler_state_t::get_empty_on_undefined_variable | ( | ) | const |
Definition at line 368 of file compiler.cpp.
Referenced by csspp::compiler::replace_variable(), and csspp::compiler::replace_variables_in_comment().
node::pointer_t csspp::compiler::compiler_state_t::get_previous_parent | ( | ) | const |
Definition at line 144 of file compiler.cpp.
Referenced by csspp::compiler::compile_at_keyword(), csspp::compiler::compile_component_value(), csspp::compiler::compile_declaration(), csspp::compiler::expand_nested_components(), csspp::compiler::expand_nested_declarations(), csspp::compiler::expand_nested_rules(), csspp::compiler::remove_empty_rules(), csspp::compiler::replace_variables(), and csspp::compiler::set_variable().
node::pointer_t csspp::compiler::compiler_state_t::get_root | ( | ) | const |
Definition at line 108 of file compiler.cpp.
Referenced by csspp::compiler::add_header_and_footer(), csspp::compiler::compile(), and csspp::compiler::get_root().
|
virtual |
Implements csspp::expression_variables_interface.
Definition at line 185 of file compiler.cpp.
References csspp::OPEN_CURLYBRACKET.
Referenced by csspp::compiler::replace_variable(), csspp::compiler::replace_variables_in_comment(), and csspp::compiler::set_variable().
void csspp::compiler::compiler_state_t::pop_parent | ( | ) |
Definition at line 134 of file compiler.cpp.
Referenced by csspp::safe_parents_t::~safe_parents_t().
void csspp::compiler::compiler_state_t::push_parent | ( | node::pointer_t | parent | ) |
Definition at line 129 of file compiler.cpp.
Referenced by csspp::safe_parents_t::safe_parents_t().
void csspp::compiler::compiler_state_t::set_empty_on_undefined_variable | ( | bool const | empty_on_undefined_variable | ) |
Definition at line 363 of file compiler.cpp.
Referenced by csspp::compiler::replace_variable(), and csspp::compiler::set_empty_on_undefined_variable().
void csspp::compiler::compiler_state_t::set_paths | ( | compiler_state_t const & | state | ) |
Definition at line 123 of file compiler.cpp.
References f_paths.
Referenced by csspp::compiler::replace_variable().
void csspp::compiler::compiler_state_t::set_root | ( | node::pointer_t | root | ) |
Definition at line 102 of file compiler.cpp.
References f_parents, and f_root.
Referenced by csspp::compiler::run_validation(), and csspp::compiler::set_root().
void csspp::compiler::compiler_state_t::set_variable | ( | node::pointer_t | variable, |
node::pointer_t | value, | ||
bool | global | ||
) | const |
Definition at line 155 of file compiler.cpp.
References csspp::LIST, and csspp::OPEN_CURLYBRACKET.
Referenced by csspp::compiler::add_header_and_footer(), csspp::compiler::handle_mixin(), csspp::compiler::set_date_time_variables(), and csspp::compiler::set_variable().
|
private |
Definition at line 80 of file compiler.h.
Referenced by execute_user_function().
|
private |
Definition at line 82 of file compiler.h.
Referenced by set_root().
|
private |
Definition at line 79 of file compiler.h.
Referenced by execute_user_function(), and set_paths().
|
private |
Definition at line 81 of file compiler.h.
Referenced by set_root().
Documentation of CSS Preprocessor.
This document is part of the Snap! Websites Project.
Copyright by Made to Order Software Corp.