]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/wave/src/instantiate_defined_grammar.cpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / libs / wave / src / instantiate_defined_grammar.cpp
CommitLineData
7c673cae
FG
1/*=============================================================================
2 Boost.Wave: A Standard compliant C++ preprocessor library
3 http://www.boost.org/
4
5 Copyright (c) 2001-2012 Hartmut Kaiser. Distributed under the Boost
6 Software License, Version 1.0. (See accompanying file
7 LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8=============================================================================*/
9
10#define BOOST_WAVE_SOURCE 1
11
12// disable stupid compiler warnings
13#include <boost/config/warning_disable.hpp>
14#include <boost/wave/wave_config.hpp>
15
16#if BOOST_WAVE_SEPARATE_GRAMMAR_INSTANTIATION != 0
17
18#include <string>
19
20#include <boost/wave/cpplexer/cpp_lex_token.hpp>
21#include <boost/wave/cpplexer/cpp_lex_iterator.hpp>
22
23#include <boost/wave/grammars/cpp_defined_grammar.hpp>
24
25// this must occur after all of the includes and before any code appears
26#ifdef BOOST_HAS_ABI_HEADERS
27#include BOOST_ABI_PREFIX
28#endif
29
30///////////////////////////////////////////////////////////////////////////////
b32b8144
FG
31//
32// Explicit instantiation of the defined_grammar_gen template
33// with the correct token type. This instantiates the corresponding parse
34// function, which in turn instantiates the defined_grammar
7c673cae
FG
35// object (see wave/grammars/cpp_defined_grammar.hpp)
36//
37///////////////////////////////////////////////////////////////////////////////
38
39// if you want to use your own token type the following line must be adjusted
40typedef boost::wave::cpplexer::lex_token<> token_type;
41
42// no need to change anything below
43typedef boost::wave::cpplexer::lex_iterator<token_type> lexer_type;
92f5a8d4 44template struct BOOST_SYMBOL_VISIBLE boost::wave::grammars::defined_grammar_gen<lexer_type>;
7c673cae
FG
45
46// the suffix header occurs after all of the code
47#ifdef BOOST_HAS_ABI_HEADERS
48#include BOOST_ABI_SUFFIX
49#endif
50
51#endif // #if BOOST_WAVE_SEPARATE_GRAMMAR_INSTANTIATION != 0