]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/wave/samples/real_positions/instantiate_defined_grammar.cpp
1 /*=============================================================================
2 Boost.Wave: A Standard compliant C++ preprocessor library
3 Example: real_positions
7 Copyright (c) 2001-2010 Hartmut Kaiser. Distributed under the Boost
8 Software License, Version 1.0. (See accompanying file
9 LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
10 =============================================================================*/
12 #include <boost/wave/wave_config.hpp>
14 #if BOOST_WAVE_SEPARATE_GRAMMAR_INSTANTIATION != 0
18 #include <boost/wave/token_ids.hpp>
20 #include "real_position_token.hpp" // token class
21 #include <boost/wave/cpplexer/cpp_lex_iterator.hpp> // lexer type
23 #include <boost/wave/grammars/cpp_defined_grammar.hpp>
25 ///////////////////////////////////////////////////////////////////////////////
27 // Explicit instantiation of the defined_grammar_gen template
28 // with the correct token type. This instantiates the corresponding parse
29 // function, which in turn instantiates the defined_grammar
30 // object (see wave/grammars/cpp_defined_grammar.hpp)
32 ///////////////////////////////////////////////////////////////////////////////
34 typedef boost::wave::cpplexer::lex_iterator
<lex_token
<> > lexer_type
;
36 template struct boost::wave::grammars::defined_grammar_gen
<lexer_type
>;
38 #endif // #if BOOST_WAVE_SEPARATE_GRAMMAR_INSTANTIATION != 0