| 1 | /*============================================================================= |
|---|---|
| 2 | Copyright (c) 2001-2014 Joel de Guzman |
| 3 | |
| 4 | Distributed under the Boost Software License, Version 1.0. (See accompanying |
| 5 | file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
| 6 | =============================================================================*/ |
| 7 | #if !defined(BOOST_SPIRIT_X3_CALC9_CONFIG_HPP) |
| 8 | #define BOOST_SPIRIT_X3_CALC9_CONFIG_HPP |
| 9 | |
| 10 | #include <boost/spirit/home/x3.hpp> |
| 11 | #include "error_handler.hpp" |
| 12 | |
| 13 | namespace client { namespace parser |
| 14 | { |
| 15 | typedef std::string::const_iterator iterator_type; |
| 16 | typedef x3::phrase_parse_context<x3::ascii::space_type>::type phrase_context_type; |
| 17 | typedef error_handler<iterator_type> error_handler_type; |
| 18 | |
| 19 | typedef x3::context< |
| 20 | error_handler_tag |
| 21 | , std::reference_wrapper<error_handler_type> |
| 22 | , phrase_context_type> |
| 23 | context_type; |
| 24 | }} |
| 25 | |
| 26 | #endif |
| 27 |
