1 /*=============================================================================
2     Boost.Wave: A Standard compliant C++ preprocessor library
3 
4     Sample: List include dependencies of a given source file
5             Explicit instantiation of the cpp_expression_grammar parsing
6             function
7 
8     http://www.boost.org/
9 
10     Copyright (c) 2001-2010 Hartmut Kaiser. Distributed under the Boost
11     Software License, Version 1.0. (See accompanying file
12     LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
13 =============================================================================*/
14 
15 #include "list_includes.hpp"            // config data
16 
17 #if BOOST_WAVE_SEPARATE_GRAMMAR_INSTANTIATION != 0
18 
19 #include <string>
20 
21 #include <boost/wave/token_ids.hpp>
22 #include <boost/wave/cpplexer/cpp_lex_token.hpp>
23 
24 #include <boost/wave/grammars/cpp_expression_grammar.hpp>
25 
26 ///////////////////////////////////////////////////////////////////////////////
27 //
28 //  Explicit instantiation of the expression_grammar_gen template with the
29 //  correct token type. This instantiates the corresponding parse function,
30 //  which in turn instantiates the expression_grammar object (see
31 //  wave/grammars/cpp_expression_grammar.hpp)
32 //
33 ///////////////////////////////////////////////////////////////////////////////
34 
35 typedef boost::wave::cpplexer::lex_token<> token_type;
36 
37 template struct boost::wave::grammars::expression_grammar_gen<token_type>;
38 
39 #endif // #if BOOST_WAVE_SEPARATE_GRAMMAR_INSTANTIATION != 0
40 
41