nginxconfig
C++libraryforparsingandprintingnginx.conf
nginxconfig/parse.cpp File Reference
#include <nginxconfig/config.hpp>
#include <nginxconfig/ast.hpp>
#include <nginxconfig/parse.hpp>
#include <nginxconfig/parse_types.hpp>
#include <algorithm>
#include <cassert>
#include <fstream>
#include <sstream>
#include <regex>

Go to the source code of this file.

Defines

#define NGINXCONFIG_DEBUG   0
#define NGINXCONFIG_USE_BOOST_REGEX   0
#define NGINXCONFIG_CHECK_REGEX_IMPLEMENTATION   1
#define NGINXCONFIG_DEBUG_PRINT(x)

Functions

ast_entry::attribute_list nginxconfig::parser::split_attributes (const std::string &attrs)
bool nginxconfig::parser::parse_generic (context &cxt, ast_entry &owner)
ast_entry nginxconfig::parse (std::istream &input)
ast_entry nginxconfig::parse_file (const std::string &filename)

Detailed Description

Copyright (c) 2014 by Travis Gockel. All rights reserved.

This program is free software: you can redistribute it and/or modify it under the terms of the Apache License as published by the Apache Software Foundation, either version 2 of the License, or (at your option) any later version.

Author:
Travis Gockel (travis@gockelhut.com)

Definition in file parse.cpp.


Define Documentation

Should we check the regex implementation? If set to 1 (default), this file will fail to compile if it does not believe your standard library implementation has a working regular expression engine. Set this value to 0 to disable this check if you know your standard library implementation works fine.

Definition at line 32 of file parse.cpp.

Should the parser use the regex implementation from Boost instead of the C++ Standard Library? GCC versions below 4.8 will happy compile regular expressions, but will fail at runtime, so this must be set if you are using GCC under 4.9!

Definition at line 23 of file parse.cpp.

 All Classes Files Functions Variables Friends Defines