employee.hpp 1.0 KB

123456789101112131415161718192021222324252627282930
  1. /*=============================================================================
  2. Copyright (c) 2002-2018 Joel de Guzman
  3. Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. =============================================================================*/
  6. #if !defined(BOOST_SPIRIT_X3_MINIMAL_EMPLOYEE_HPP)
  7. #define BOOST_SPIRIT_X3_MINIMAL_EMPLOYEE_HPP
  8. #include <boost/config/warning_disable.hpp>
  9. #include <boost/spirit/home/x3.hpp>
  10. #include "ast.hpp"
  11. namespace client
  12. {
  13. ///////////////////////////////////////////////////////////////////////////////
  14. // Our employee parser declaration
  15. ///////////////////////////////////////////////////////////////////////////////
  16. namespace parser
  17. {
  18. namespace x3 = boost::spirit::x3;
  19. using employee_type = x3::rule<class employee, ast::employee>;
  20. BOOST_SPIRIT_DECLARE(employee_type);
  21. }
  22. parser::employee_type employee();
  23. }
  24. #endif