cpp_re.hpp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*=============================================================================
  2. Boost.Wave: A Standard compliant C++ preprocessor library
  3. Re2C based C++ lexer
  4. http://www.boost.org/
  5. Copyright (c) 2001-2012 Hartmut Kaiser. Distributed under the Boost
  6. Software License, Version 1.0. (See accompanying file
  7. LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  8. =============================================================================*/
  9. #if !defined(CPP_RE_HPP_B76C4F5E_63E9_4B8A_9975_EC32FA6BF027_INCLUDED)
  10. #define CPP_RE_HPP_B76C4F5E_63E9_4B8A_9975_EC32FA6BF027_INCLUDED
  11. #include <boost/wave/wave_config.hpp>
  12. #include <boost/wave/token_ids.hpp>
  13. // this must occur after all of the includes and before any code appears
  14. #ifdef BOOST_HAS_ABI_HEADERS
  15. #include BOOST_ABI_PREFIX
  16. #endif
  17. // suppress warnings about dependent classes not being exported from the dll
  18. #ifdef BOOST_MSVC
  19. #pragma warning(push)
  20. #pragma warning(disable : 4251 4231 4660)
  21. #endif
  22. ///////////////////////////////////////////////////////////////////////////////
  23. namespace boost {
  24. namespace wave {
  25. namespace cpplexer {
  26. namespace re2clex {
  27. struct Scanner;
  28. ///////////////////////////////////////////////////////////////////////////////
  29. // The scanner function to call whenever a new token is requested
  30. BOOST_WAVE_DECL boost::wave::token_id scan(Scanner *s);
  31. ///////////////////////////////////////////////////////////////////////////////
  32. } // namespace re2clex
  33. } // namespace cpplexer
  34. } // namespace wave
  35. } // namespace boost
  36. #ifdef BOOST_MSVC
  37. #pragma warning(pop)
  38. #endif
  39. // the suffix header occurs after all of the code
  40. #ifdef BOOST_HAS_ABI_HEADERS
  41. #include BOOST_ABI_SUFFIX
  42. #endif
  43. #endif // !defined(CPP_RE_HPP_B76C4F5E_63E9_4B8A_9975_EC32FA6BF027_INCLUDED)