annotate DEPENDENCIES/generic/include/boost/wave/cpplexer/cpp_lex_interface.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1 /*=============================================================================
Chris@16 2 Boost.Wave: A Standard compliant C++ preprocessor library
Chris@16 3
Chris@16 4 Definition of the abstract lexer interface
Chris@16 5
Chris@16 6 http://www.boost.org/
Chris@16 7
Chris@16 8 Copyright (c) 2001-2012 Hartmut Kaiser. Distributed under the Boost
Chris@16 9 Software License, Version 1.0. (See accompanying file
Chris@16 10 LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 11 =============================================================================*/
Chris@16 12
Chris@16 13 #if !defined(CPP_LEX_INTERFACE_HPP_E83F52A4_90AC_4FBE_A9A7_B65F7F94C497_INCLUDED)
Chris@16 14 #define CPP_LEX_INTERFACE_HPP_E83F52A4_90AC_4FBE_A9A7_B65F7F94C497_INCLUDED
Chris@16 15
Chris@16 16 #include <boost/wave/wave_config.hpp>
Chris@16 17 #include <boost/wave/util/file_position.hpp>
Chris@16 18 #include <boost/wave/language_support.hpp>
Chris@16 19
Chris@16 20 // this must occur after all of the includes and before any code appears
Chris@16 21 #ifdef BOOST_HAS_ABI_HEADERS
Chris@16 22 #include BOOST_ABI_PREFIX
Chris@16 23 #endif
Chris@16 24
Chris@16 25 // suppress warnings about dependent classes not being exported from the dll
Chris@16 26 #ifdef BOOST_MSVC
Chris@16 27 #pragma warning(push)
Chris@16 28 #pragma warning(disable : 4251 4231 4660)
Chris@16 29 #endif
Chris@16 30
Chris@16 31 ///////////////////////////////////////////////////////////////////////////////
Chris@16 32 namespace boost {
Chris@16 33 namespace wave {
Chris@16 34 namespace cpplexer {
Chris@16 35
Chris@16 36 ///////////////////////////////////////////////////////////////////////////////
Chris@16 37 //
Chris@16 38 // The lex_input_interface decouples the lex_iterator_shim from the actual
Chris@16 39 // lexer. This is done to allow compile time reduction.
Chris@16 40 // Thanks to JCAB for having this idea.
Chris@16 41 //
Chris@16 42 ///////////////////////////////////////////////////////////////////////////////
Chris@16 43
Chris@16 44 template <typename TokenT>
Chris@16 45 struct lex_input_interface
Chris@16 46 {
Chris@16 47 typedef typename TokenT::position_type position_type;
Chris@16 48
Chris@16 49 lex_input_interface() {}
Chris@16 50 virtual ~lex_input_interface() {}
Chris@16 51
Chris@16 52 virtual TokenT& get(TokenT&) = 0;
Chris@16 53 virtual void set_position(position_type const &pos) = 0;
Chris@16 54 #if BOOST_WAVE_SUPPORT_PRAGMA_ONCE != 0
Chris@16 55 virtual bool has_include_guards(std::string& guard_name) const = 0;
Chris@16 56 #endif
Chris@16 57 };
Chris@16 58
Chris@16 59 ///////////////////////////////////////////////////////////////////////////////
Chris@16 60 } // namespace cpplexer
Chris@16 61 } // namespace wave
Chris@16 62 } // namespace boost
Chris@16 63
Chris@16 64 #ifdef BOOST_MSVC
Chris@16 65 #pragma warning(pop)
Chris@16 66 #endif
Chris@16 67
Chris@16 68 // the suffix header occurs after all of the code
Chris@16 69 #ifdef BOOST_HAS_ABI_HEADERS
Chris@16 70 #include BOOST_ABI_SUFFIX
Chris@16 71 #endif
Chris@16 72
Chris@16 73 #endif // !defined(CPP_LEX_INTERFACE_HPP_E83F52A4_90AC_4FBE_A9A7_B65F7F94C497_INCLUDED)