Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/libs/wave/src/instantiate_cpp_exprgrammar.cpp @ 14

Last change on this file since 14 was 12, checked in by landauf, 17 years ago

added boost

File size: 1.3 KB
Line 
1/*=============================================================================
2    Boost.Wave: A Standard compliant C++ preprocessor library
3    http://www.boost.org/
4
5    Copyright (c) 2001-2005 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#include <boost/wave/wave_config.hpp>
11
12#if BOOST_WAVE_SEPARATE_GRAMMAR_INSTANTIATION != 0
13
14#include <string>
15#include <utility>
16
17#include <boost/wave/cpplexer/cpp_lex_token.hpp>
18#include <boost/wave/cpplexer/cpp_lex_iterator.hpp>
19
20#include <boost/wave/grammars/cpp_expression_grammar.hpp>
21
22///////////////////////////////////////////////////////////////////////////////
23// 
24//  Explicit instantiation of the expression_grammar_gen template with the
25//  correct lexer iterator type. This instantiates the corresponding parse
26//  function, which in turn instantiates the expression_grammar object (see
27//  wave/grammars/cpp_expression_grammar.hpp)
28//
29///////////////////////////////////////////////////////////////////////////////
30
31typedef boost::wave::cpplexer::lex_token<> token_type;
32
33template struct boost::wave::grammars::expression_grammar_gen<token_type>;
34
35#endif // #if BOOST_WAVE_SEPARATE_GRAMMAR_INSTANTIATION != 0
36
Note: See TracBrowser for help on using the repository browser.