ast.hpp 932 B

12345678910111213141516171819202122232425262728293031
  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_AST_HPP)
  7. #define BOOST_SPIRIT_X3_MINIMAL_AST_HPP
  8. #include <boost/fusion/include/io.hpp>
  9. #include <iostream>
  10. #include <string>
  11. namespace client { namespace ast
  12. {
  13. ///////////////////////////////////////////////////////////////////////////
  14. // Our employee AST struct
  15. ///////////////////////////////////////////////////////////////////////////
  16. struct employee
  17. {
  18. int age;
  19. std::string forename;
  20. std::string surname;
  21. double salary;
  22. };
  23. using boost::fusion::operator<<;
  24. }}
  25. #endif