Current Version: 1.0.20
Project Name: csspp
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.


 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:

1 a {
2  color: #00f; // blue when not hovered
4  &:hover {
5  color: #f0f; // purple when hovered
6  }
7 }

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.