• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #include <utility>
20 
21 #include <boost/wave/cpplexer/cpp_lex_token.hpp>
22 #include <boost/wave/cpplexer/cpp_lex_iterator.hpp>
23 
24 #include <boost/wave/grammars/cpp_expression_grammar.hpp>
25 
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
29 #endif
30 
31 ///////////////////////////////////////////////////////////////////////////////
32 //
33 //  Explicit instantiation of the expression_grammar_gen template with the
34 //  correct lexer iterator type. This instantiates the corresponding parse
35 //  function, which in turn instantiates the expression_grammar object (see
36 //  wave/grammars/cpp_expression_grammar.hpp)
37 //
38 ///////////////////////////////////////////////////////////////////////////////
39 
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;
42 
43 // no need to change anything below
44 template struct BOOST_SYMBOL_VISIBLE boost::wave::grammars::expression_grammar_gen<token_type>;
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
52 
53