1/*=============================================================================
2 Copyright (c) 2002-2018 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_MINIMAL_EMPLOYEE_HPP)
8#define BOOST_SPIRIT_X3_MINIMAL_EMPLOYEE_HPP
9
10#include <boost/spirit/home/x3.hpp>
11
12#include "ast.hpp"
13
14namespace client
15{
16 ///////////////////////////////////////////////////////////////////////////////
17 // Our employee parser declaration
18 ///////////////////////////////////////////////////////////////////////////////
19 namespace parser
20 {
21 namespace x3 = boost::spirit::x3;
22 using employee_type = x3::rule<class employee, ast::employee>;
23 BOOST_SPIRIT_DECLARE(employee_type);
24 }
25
26 parser::employee_type employee();
27}
28
29#endif
30

source code of boost/libs/spirit/example/x3/minimal/employee.hpp