1 /*=============================================================================
2     Copyright (c) 2001-2015 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_REPR_CONFIG_HPP)
8 #define BOOST_SPIRIT_X3_REPR_CONFIG_HPP
9 
10 #include "error_handler.hpp"
11 
12 #include <boost/spirit/home/x3.hpp>
13 
14 namespace rexpr { namespace parser
15 {
16     // Our Iterator Type
17     typedef std::string::const_iterator iterator_type;
18 
19     // The Phrase Parse Context
20     typedef
21         x3::phrase_parse_context<x3::ascii::space_type>::type
22     phrase_context_type;
23 
24     // Our Error Handler
25     typedef error_handler<iterator_type> error_handler_type;
26 
27     // Combined Error Handler and Phrase Parse Context
28     typedef x3::context<
29         error_handler_tag
30       , std::reference_wrapper<error_handler_type>
31       , phrase_context_type>
32     context_type;
33 }}
34 
35 #endif
36