wave_lexertl_config.hpp 1.7 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*=============================================================================
  2. Boost.Wave: A Standard compliant C++ preprocessor library
  3. http://www.boost.org/
  4. Copyright (c) 2001-2010 Hartmut Kaiser. Distributed under the Boost
  5. Software License, Version 1.0. (See accompanying file
  6. LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. =============================================================================*/
  8. #if !defined(BOOST_WAVE_WAVE_LEXERTL_CONFIG_HPP_INCLUDED)
  9. #define BOOST_WAVE_WAVE_LEXERTL_CONFIG_HPP_INCLUDED
  10. ///////////////////////////////////////////////////////////////////////////////
  11. // If the BOOST_WAVE_LEXERTL_USE_STATIC_TABLES constant is defined to be not
  12. // equal to zero, the lexer will use static pre-compiled dfa tables (as
  13. // included in the file: wave_lexertl_tables.hpp). Enabling the static tables
  14. // makes the code compilable even without having the lexertl library
  15. // available.
  16. #if !defined(BOOST_WAVE_LEXERTL_USE_STATIC_TABLES)
  17. #define BOOST_WAVE_LEXERTL_USE_STATIC_TABLES 0
  18. #endif
  19. ///////////////////////////////////////////////////////////////////////////////
  20. // If the dfa tables have to be generated at runtime, and the constant
  21. // BOOST_WAVE_LEXERTL_GENERATE_CPP_CODE is defined to be not equal to zero,
  22. // the lexer will write C++ code for static DFA tables. This is useful for
  23. // generating the static tables required for the
  24. // BOOST_WAVE_LEXERTL_USE_STATIC_TABLES as described above.
  25. #if BOOST_WAVE_LEXERTL_USE_STATIC_TABLES != 0
  26. #if !defined(BOOST_WAVE_LEXERTL_GENERATE_CPP_CODE)
  27. #define BOOST_WAVE_LEXERTL_GENERATE_CPP_CODE 0
  28. #endif
  29. #endif
  30. #endif // !BOOST_WAVE_WAVE_LEXERTL_CONFIG_HPP_INCLUDED