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