Imported Upstream version 1.57.0
[platform/upstream/boost.git] / libs / spirit / example / x3 / calc8 / expression.hpp
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_CALC8_EXPRESSION_HPP)
8 #define BOOST_SPIRIT_X3_CALC8_EXPRESSION_HPP
9
10 #include <boost/spirit/home/x3.hpp>
11 #include "ast.hpp"
12
13 namespace client
14 {
15     namespace x3 = boost::spirit::x3;
16     namespace parser
17     {
18         struct expression_class;
19         typedef x3::rule<expression_class, ast::expression> expression_type;
20         typedef expression_type::id expression_id;
21         BOOST_SPIRIT_DECLARE(expression_type);
22     }
23     
24     parser::expression_type const& expression();
25 }
26
27 #endif