Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/libs/wave/src/instantiate_defined_grammar.cpp @ 29

Last change on this file since 29 was 29, checked in by landauf, 16 years ago

updated boost from 1_33_1 to 1_34_1

File size: 1.6 KB
Line 
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
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_defined_grammar.hpp>
21
22// this must occur after all of the includes and before any code appears
23#ifdef BOOST_HAS_ABI_HEADERS
24#include BOOST_ABI_PREFIX
25#endif
26
27///////////////////////////////////////////////////////////////////////////////
28// 
29//  Explicit instantiation of the defined_grammar_gen template
30//  with the correct token type. This instantiates the corresponding parse
31//  function, which in turn instantiates the defined_grammar
32//  object (see wave/grammars/cpp_defined_grammar.hpp)
33//
34///////////////////////////////////////////////////////////////////////////////
35
36typedef boost::wave::cpplexer::lex_iterator<
37        boost::wave::cpplexer::lex_token<> >
38    lexer_type;
39template struct boost::wave::grammars::defined_grammar_gen<lexer_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
Note: See TracBrowser for help on using the repository browser.