| 1 | /*============================================================================= |
|---|
| 2 | Boost.Wave: A Standard compliant C++ preprocessor library |
|---|
| 3 | http://www.boost.org/ |
|---|
| 4 | |
|---|
| 5 | Copyright (c) 2001-2007 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 | #include <boost/wave/wave_config.hpp> |
|---|
| 12 | |
|---|
| 13 | #if BOOST_WAVE_SEPARATE_GRAMMAR_INSTANTIATION != 0 |
|---|
| 14 | |
|---|
| 15 | #include <string> |
|---|
| 16 | #include <utility> |
|---|
| 17 | |
|---|
| 18 | #include <boost/wave/cpplexer/cpp_lex_token.hpp> |
|---|
| 19 | #include <boost/wave/cpplexer/cpp_lex_iterator.hpp> |
|---|
| 20 | |
|---|
| 21 | #include <boost/wave/grammars/cpp_expression_grammar.hpp> |
|---|
| 22 | |
|---|
| 23 | // this must occur after all of the includes and before any code appears |
|---|
| 24 | #ifdef BOOST_HAS_ABI_HEADERS |
|---|
| 25 | #include BOOST_ABI_PREFIX |
|---|
| 26 | #endif |
|---|
| 27 | |
|---|
| 28 | /////////////////////////////////////////////////////////////////////////////// |
|---|
| 29 | // |
|---|
| 30 | // Explicit instantiation of the expression_grammar_gen template with the |
|---|
| 31 | // correct lexer iterator type. This instantiates the corresponding parse |
|---|
| 32 | // function, which in turn instantiates the expression_grammar object (see |
|---|
| 33 | // wave/grammars/cpp_expression_grammar.hpp) |
|---|
| 34 | // |
|---|
| 35 | /////////////////////////////////////////////////////////////////////////////// |
|---|
| 36 | |
|---|
| 37 | typedef boost::wave::cpplexer::lex_token<> token_type; |
|---|
| 38 | |
|---|
| 39 | template struct boost::wave::grammars::expression_grammar_gen<token_type>; |
|---|
| 40 | |
|---|
| 41 | // the suffix header occurs after all of the code |
|---|
| 42 | #ifdef BOOST_HAS_ABI_HEADERS |
|---|
| 43 | #include BOOST_ABI_SUFFIX |
|---|
| 44 | #endif |
|---|
| 45 | |
|---|
| 46 | #endif // #if BOOST_WAVE_SEPARATE_GRAMMAR_INSTANTIATION != 0 |
|---|
| 47 | |
|---|