]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/wave/samples/list_includes/instantiate_lexertl_lexer.cpp
1 /*=============================================================================
2 Boost.Wave: A Standard compliant C++ preprocessor library
6 Copyright (c) 2001-2010 Hartmut Kaiser. Distributed under the Boost
7 Software License, Version 1.0. (See accompanying file
8 LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9 =============================================================================*/
11 #include "list_includes.hpp" // config data
13 #if BOOST_WAVE_SEPARATE_LEXER_INSTANTIATION != 0
17 #include <boost/wave/token_ids.hpp>
18 #include <boost/wave/cpplexer/cpp_lex_token.hpp>
20 #include "lexertl_iterator.hpp"
22 ///////////////////////////////////////////////////////////////////////////////
23 // The following file needs to be included only once throughout the whole
25 #include "lexertl/lexertl_lexer.hpp"
27 ///////////////////////////////////////////////////////////////////////////////
29 // This instantiates the correct 'new_lexer' function, which generates the
30 // C++ lexer used in this sample.
32 // This is moved into a separate compilation unit to decouple the compilation
33 // of the C++ lexer from the compilation of the other modules, which helps to
34 // reduce compilation time.
36 // The template parameter(s) supplied should be identical to the parameters
37 // supplied while instantiating the context<> template.
39 ///////////////////////////////////////////////////////////////////////////////
41 template struct boost::wave::cpplexer::lexertl::new_lexer_gen
<
42 std::string::iterator
>;
44 #endif // BOOST_WAVE_SEPARATE_LEXER_INSTANTIATION != 0