Current Version: 1.0.10
Project Name: csspp
Namespaces | Variables
parser.cpp File Reference

Implementation of the CSS Preprocessor parser. More...

#include "csspp/parser.h"
#include "csspp/exceptions.h"
#include <iostream>
Include dependency graph for parser.cpp:

Go to the source code of this file.


 The namespace of all the classes in the CSS Preprocessor.


int const csspp::anonymous_namespace{parser.cpp}::g_component_value_flag_return_on_semi_colon = 0x0001
int const csspp::anonymous_namespace{parser.cpp}::g_component_value_flag_return_on_variable = 0x0004

Detailed Description

The CSS Preprocessor parser follows the CSS 3 grammar which allows for the syntax we seek to support: a syntax similar to SASS which allows for selectors, blocks with fields, and embedded blocks.

For example, we can write

div {
color: #000;
a {
color: #00f;

and the CSS Preprocessor transforms that data in:

div a{color:#00f}
See Also
Parser Rules

Definition in file parser.cpp.

Documentation of CSS Preprocessor.

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.