Current Version: 1.0.10
Project Name: csspp
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
csspp::parser Class Reference

#include <parser.h>

Public Member Functions

 parser (lexer::pointer_t l)
 
node::pointer_t component_value ()
 
node::pointer_t component_value_list ()
 
node::pointer_t declaration_list ()
 
node::pointer_t rule ()
 
node::pointer_t rule_list ()
 
node::pointer_t stylesheet ()
 

Static Public Member Functions

static bool argify (node::pointer_t n, node_type_t const separator=node_type_t::COMMA)
 
static bool is_nested_declaration (node::pointer_t n)
 
static bool is_variable_set (node::pointer_t n, bool with_block)
 

Private Member Functions

node::pointer_t at_rule (node::pointer_t at_keyword)
 
node::pointer_t block (node::pointer_t b, node_type_t closing_token)
 
node::pointer_t block_list (node::pointer_t b)
 
node::pointer_t component_value (node::pointer_t n)
 
node::pointer_t component_value_list (node::pointer_t n, int flags)
 
node::pointer_t declaration (node::pointer_t identifier)
 
node::pointer_t declaration_list (node::pointer_t n)
 
node::pointer_t next_token ()
 
node::pointer_t qualified_rule (node::pointer_t n)
 
node::pointer_t rule (node::pointer_t n)
 
node::pointer_t rule_list (node::pointer_t n)
 
node::pointer_t stylesheet (node::pointer_t n)
 

Private Attributes

node::pointer_t f_last_token
 
lexer::pointer_t f_lexer
 

Detailed Description

Definition at line 25 of file parser.h.

Constructor & Destructor Documentation

csspp::parser::parser ( lexer::pointer_t  l)

Definition at line 64 of file parser.cpp.

References next_token().

Member Function Documentation

bool csspp::parser::argify ( node::pointer_t  n,
node_type_t const  separator = node_type_t::COMMA 
)
static
node::pointer_t csspp::parser::at_rule ( node::pointer_t  at_keyword)
private
node::pointer_t csspp::parser::block ( node::pointer_t  b,
node_type_t  closing_token 
)
private
node::pointer_t csspp::parser::block_list ( node::pointer_t  b)
private
node::pointer_t csspp::parser::component_value ( )

Definition at line 95 of file parser.cpp.

References f_last_token.

Referenced by component_value_list().

node::pointer_t csspp::parser::component_value ( node::pointer_t  n)
private
node::pointer_t csspp::parser::component_value_list ( )
node::pointer_t csspp::parser::component_value_list ( node::pointer_t  n,
int  flags 
)
private
node::pointer_t csspp::parser::declaration ( node::pointer_t  identifier)
private
node::pointer_t csspp::parser::declaration_list ( )

Definition at line 85 of file parser.cpp.

References f_last_token.

node::pointer_t csspp::parser::declaration_list ( node::pointer_t  n)
private
bool csspp::parser::is_nested_declaration ( node::pointer_t  n)
static
bool csspp::parser::is_variable_set ( node::pointer_t  n,
bool  with_block 
)
static
node::pointer_t csspp::parser::next_token ( )
private
node::pointer_t csspp::parser::qualified_rule ( node::pointer_t  n)
private
node::pointer_t csspp::parser::rule ( )

Definition at line 80 of file parser.cpp.

References f_last_token.

Referenced by rule_list().

node::pointer_t csspp::parser::rule ( node::pointer_t  n)
private
node::pointer_t csspp::parser::rule_list ( )

Definition at line 75 of file parser.cpp.

References f_last_token.

node::pointer_t csspp::parser::rule_list ( node::pointer_t  n)
private

Definition at line 159 of file parser.cpp.

References csspp::EOF_TOKEN, f_last_token, csspp::LIST, and rule().

node::pointer_t csspp::parser::stylesheet ( )
node::pointer_t csspp::parser::stylesheet ( node::pointer_t  n)
private

Member Data Documentation

node::pointer_t csspp::parser::f_last_token
private
lexer::pointer_t csspp::parser::f_lexer
private

Definition at line 56 of file parser.h.

Referenced by next_token().


The documentation for this class was generated from the following files:

Documentation of CSS Preprocessor.

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.