Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

added boost

File size: 1.5 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
16#include <boost/wave/cpplexer/cpp_lex_token.hpp>
17#include <boost/wave/cpplexer/cpp_lex_iterator.hpp>
18
19#include <boost/wave/grammars/cpp_literal_grammar_gen.hpp>
20#include <boost/wave/grammars/cpp_intlit_grammar.hpp>
21#include <boost/wave/grammars/cpp_chlit_grammar.hpp>
22
23///////////////////////////////////////////////////////////////////////////////
24// 
25//  Explicit instantiation of the intlit_grammar_gen and chlit_grammar_gen
26//  templates with the correct token type. This instantiates the corresponding
27//  parse function, which in turn instantiates the corresponding parser object.
28//
29///////////////////////////////////////////////////////////////////////////////
30
31typedef boost::wave::cpplexer::lex_token<> token_type;
32
33template struct boost::wave::grammars::intlit_grammar_gen<token_type>;
34template struct boost::wave::grammars::chlit_grammar_gen<token_type>;
35
36#endif // #if BOOST_WAVE_SEPARATE_GRAMMAR_INSTANTIATION != 0
37
Note: See TracBrowser for help on using the repository browser.