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.




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.

Travis Gockel (

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