#if !defined(BOOST_SPIRIT_CONJURE_EXPRESSION_HPP)
#define BOOST_SPIRIT_CONJURE_EXPRESSION_HPP
#define BOOST_SPIRIT_NO_PREDEFINED_TERMINALS
#include <boost/spirit/include/qi.hpp>
#include "ast.hpp"
#include "error_handler.hpp"
#include <vector>
namespace client { namespace parser
{
namespace qi = boost::spirit::qi;
namespace ascii = boost::spirit::ascii;
template <typename Iterator, typename Lexer>
struct expression : qi::grammar<Iterator, ast::expression()>
{
typedef error_handler<typename Lexer::base_iterator_type, Iterator>
error_handler_type;
expression(error_handler_type& error_handler, Lexer const& l);
Lexer const& lexer;
qi::rule<Iterator, ast::expression()> expr;
qi::rule<Iterator, ast::operand()> unary_expr, postfix_expr;
qi::rule<Iterator, ast::function_call()> function_call;
qi::rule<Iterator, std::list<ast::expression>()> argument_list;
qi::rule<Iterator, std::string()> identifier;
qi::rule<Iterator, ast::primary_expr()> primary_expr;
};
}}
#endif