Current Version: 1.0.10
Project Name: csspp
Namespaces
lexer.cpp File Reference

Implementation of the CSS Preprocessor lexer. More...

#include "csspp/lexer.h"
#include "csspp/exceptions.h"
#include "csspp/unicode_range.h"
#include <cmath>
#include <cstdio>
#include <iostream>
Include dependency graph for lexer.cpp:

Go to the source code of this file.

Namespaces

 csspp
 The namespace of all the classes in the CSS Preprocessor.
 

Detailed Description

The CSS Preprocessor lexer is based on the CSS 3 lexer with extensions to also support the SASS syntax. For example, a lone '&' is supported by our lexer as a reference to the outter selectors in order to write an expression such as:

a {
color: #00f; // blue when not hovered
&:hover {
color: #f0f; // purple when hovered
}
}

There are a few other extensions too, such as support for C++ comments.

See Also
Lexer Rules

Definition in file lexer.cpp.

Documentation of CSS Preprocessor.

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.