| 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_EXPRESSION_HPP) |
| 8 | #define BOOST_SPIRIT_X3_CALC9_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 | BOOST_SPIRIT_DECLARE(expression_type); |
| 21 | } |
| 22 | |
| 23 | parser::expression_type const& expression(); |
| 24 | } |
| 25 | |
| 26 | #endif |
| 27 | |