1
/*=============================================================================
2
Boost.Wave: A Standard compliant C++ preprocessor library
5
Copyright (c) 2001-2011 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
=============================================================================*/
10
#define BOOST_WAVE_SOURCE 1
12
// disable stupid compiler warnings
13
#include <boost/config/warning_disable.hpp>
14
#include <boost/wave/wave_config.hpp>
16
#if BOOST_WAVE_SEPARATE_GRAMMAR_INSTANTIATION != 0
21
#include <boost/wave/cpplexer/cpp_lex_token.hpp>
22
#include <boost/wave/cpplexer/cpp_lex_iterator.hpp>
24
#include <boost/wave/grammars/cpp_grammar.hpp>
26
// this must occur after all of the includes and before any code appears
27
#ifdef BOOST_HAS_ABI_HEADERS
28
#include BOOST_ABI_PREFIX
31
///////////////////////////////////////////////////////////////////////////////
33
// Explicit instantiation of the cpp_grammar_gen template with the correct
34
// token type. This instantiates the corresponding pt_parse function, which
35
// in turn instantiates the cpp_grammar object
36
// (see wave/grammars/cpp_grammar.hpp)
38
///////////////////////////////////////////////////////////////////////////////
40
// if you want to use your own token type the following line must be adjusted
41
typedef boost::wave::cpplexer::lex_token<> token_type;
43
// no need to change anything below
44
typedef boost::wave::cpplexer::lex_iterator<token_type> lexer_type;
45
typedef std::list<token_type, boost::fast_pool_allocator<token_type> >
48
template struct boost::wave::grammars::cpp_grammar_gen<lexer_type, token_sequence_type>;
50
// the suffix header occurs after all of the code
51
#ifdef BOOST_HAS_ABI_HEADERS
52
#include BOOST_ABI_SUFFIX
55
#endif // #if BOOST_WAVE_SEPARATE_GRAMMAR_INSTANTIATION != 0