]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/wave/samples/list_includes/instantiate_lexertl_lexer.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / wave / samples / list_includes / instantiate_lexertl_lexer.cpp
1 /*=============================================================================
2 Boost.Wave: A Standard compliant C++ preprocessor library
3
4 http://www.boost.org/
5
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 =============================================================================*/
10
11 #include "list_includes.hpp" // config data
12
13 #if BOOST_WAVE_SEPARATE_LEXER_INSTANTIATION != 0
14
15 #include <string>
16
17 #include <boost/wave/token_ids.hpp>
18 #include <boost/wave/cpplexer/cpp_lex_token.hpp>
19
20 #include "lexertl_iterator.hpp"
21
22 ///////////////////////////////////////////////////////////////////////////////
23 // The following file needs to be included only once throughout the whole
24 // program.
25 #include "lexertl/lexertl_lexer.hpp"
26
27 ///////////////////////////////////////////////////////////////////////////////
28 //
29 // This instantiates the correct 'new_lexer' function, which generates the
30 // C++ lexer used in this sample.
31 //
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.
35 //
36 // The template parameter(s) supplied should be identical to the parameters
37 // supplied while instantiating the context<> template.
38 //
39 ///////////////////////////////////////////////////////////////////////////////
40
41 template struct boost::wave::cpplexer::lexertl::new_lexer_gen<
42 BOOST_WAVE_STRINGTYPE::iterator>;
43
44 #endif // BOOST_WAVE_SEPARATE_LEXER_INSTANTIATION != 0