GG
LexerFwd.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /* GG is a GUI for SDL and OpenGL.
3  Copyright (C) 2003-2008 T. Zachary Laine
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public License
7  as published by the Free Software Foundation; either version 2.1
8  of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public
16  License along with this library; if not, write to the Free
17  Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18  02111-1307 USA
19 
20  If you do not wish to comply with the terms of the LGPL please
21  contact the author as other terms are available for a fee.
22 
23  Zach Laine
24  whatwasthataddress@gmail.com */
25 
28 #ifndef _GG_LexerFwd_h_
29 #define _GG_LexerFwd_h_
30 
31 #include <GG/adobe/name.hpp>
32 
33 #include <boost/spirit/home/support/iterators/line_pos_iterator.hpp>
34 #include <boost/spirit/include/lex_lexertl.hpp>
35 #include <boost/spirit/home/lex/lexer/lexertl/position_token.hpp>
36 
37 #include <string>
38 
39 
40 namespace GG {
41 
42 typedef boost::spirit::line_pos_iterator<std::string::const_iterator> text_iterator;
43 
44 typedef boost::spirit::lex::lexertl::position_token<
45  text_iterator,
46  boost::mpl::vector<
47  adobe::name_t,
48  std::string,
49  double,
50  bool
51  >
52 > token_type;
53 
54 typedef boost::spirit::lex::lexertl::actor_lexer<token_type> spirit_lexer_base_type;
55 
56 }
57 
58 #endif