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_literal_grammar_gen.hpp> |
24 | #include <boost/wave/grammars/cpp_intlit_grammar.hpp> |
25 | #include <boost/wave/grammars/cpp_chlit_grammar.hpp> |
26 | |
27 | // this must occur after all of the includes and before any code appears |
28 | #ifdef BOOST_HAS_ABI_HEADERS |
29 | #include BOOST_ABI_PREFIX |
30 | #endif |
31 | |
32 | /////////////////////////////////////////////////////////////////////////////// |
33 | // |
34 | // Explicit instantiation of the intlit_grammar_gen and chlit_grammar_gen |
35 | // templates with the correct token type. This instantiates the corresponding |
36 | // parse function, which in turn instantiates the corresponding parser object. |
37 | // |
38 | /////////////////////////////////////////////////////////////////////////////// |
39 | |
40 | typedef boost::wave::cpplexer::lex_token<> token_type; |
41 | |
42 | // no need to change anything below |
43 | template struct boost::wave::grammars::intlit_grammar_gen<token_type>; |
44 | #if BOOST_WAVE_WCHAR_T_SIGNEDNESS == BOOST_WAVE_WCHAR_T_AUTOSELECT || \ |
45 | BOOST_WAVE_WCHAR_T_SIGNEDNESS == BOOST_WAVE_WCHAR_T_FORCE_SIGNED |
46 | template struct BOOST_SYMBOL_VISIBLE boost::wave::grammars::chlit_grammar_gen<int, token_type>; |
47 | #endif |
48 | template struct BOOST_SYMBOL_VISIBLE boost::wave::grammars::chlit_grammar_gen<unsigned int, token_type>; |
49 | |
50 | // the suffix header occurs after all of the code |
51 | #ifdef BOOST_HAS_ABI_HEADERS |
52 | #include BOOST_ABI_SUFFIX |
53 | #endif |
54 | |
55 | #endif // #if BOOST_WAVE_SEPARATE_GRAMMAR_INSTANTIATION != 0 |
56 |