• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*=============================================================================
2     Boost.Wave: A Standard compliant C++ preprocessor library
3     Example: real_positions
4 
5     http://www.boost.org/
6 
7     Copyright (c) 2001-2010 Hartmut Kaiser. Distributed under the Boost
8     Software License, Version 1.0. (See accompanying file
9     LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
10 =============================================================================*/
11 
12 #include <boost/wave/wave_config.hpp>
13 
14 #if BOOST_WAVE_SEPARATE_GRAMMAR_INSTANTIATION != 0
15 
16 #include <string>
17 
18 #include <boost/wave/token_ids.hpp>
19 
20 #include "real_position_token.hpp"                    // token class
21 #include <boost/wave/cpplexer/cpp_lex_iterator.hpp>   // lexer type
22 
23 #include <boost/wave/grammars/cpp_defined_grammar.hpp>
24 
25 ///////////////////////////////////////////////////////////////////////////////
26 //
27 //  Explicit instantiation of the defined_grammar_gen template
28 //  with the correct token type. This instantiates the corresponding parse
29 //  function, which in turn instantiates the defined_grammar
30 //  object (see wave/grammars/cpp_defined_grammar.hpp)
31 //
32 ///////////////////////////////////////////////////////////////////////////////
33 
34 typedef boost::wave::cpplexer::lex_iterator<lex_token<> > lexer_type;
35 
36 template struct boost::wave::grammars::defined_grammar_gen<lexer_type>;
37 
38 #endif // #if BOOST_WAVE_SEPARATE_GRAMMAR_INSTANTIATION != 0
39 
40