]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/wave/samples/waveidl/instantiate_re2c_lexer_str.cpp
1 /*=============================================================================
2 Boost.Wave: A Standard compliant C++ preprocessor library
4 Sample: IDL oriented preprocessor
5 Explicit instantiation of the lex_functor generation function
9 Copyright (c) 2001-2010 Hartmut Kaiser. Distributed under the Boost
10 Software License, Version 1.0. (See accompanying file
11 LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
12 =============================================================================*/
16 #if BOOST_WAVE_SEPARATE_LEXER_INSTANTIATION != 0
20 #include <boost/wave/token_ids.hpp>
21 #include <boost/wave/cpplexer/cpp_lex_token.hpp>
23 #include "idllexer/idl_lex_iterator.hpp"
25 ///////////////////////////////////////////////////////////////////////////////
26 // The following file needs to be included only once throughout the whole
28 #include "idllexer/idl_re2c_lexer.hpp"
30 ///////////////////////////////////////////////////////////////////////////////
32 // If you've used another iterator type as std::string::iterator, you have to
33 // instantiate the new_lexer_gen<> template for this iterator type too.
34 // The reason is, that the library internally uses the new_lexer_gen<>
35 // template with a std::string::iterator. (You just have to undefine the
38 // This is moved into a separate compilation unit to decouple the compilation
39 // of the C++ lexer from the compilation of the other modules, which helps to
40 // reduce compilation time.
42 // The template parameter(s) supplied should be identical to the first
43 // parameter supplied while instantiating the boost::wave::context<> template
44 // (see the file cpp.cpp).
46 ///////////////////////////////////////////////////////////////////////////////
48 template struct boost::wave::idllexer::new_lexer_gen
<std::string::iterator
>;
50 #endif // BOOST_WAVE_SEPARATE_LEXER_INSTANTIATION != 0