LOOS  v2.3.2
LoosLexer.hpp
1 /*
2  This file is part of LOOS.
3 
4  LOOS (Lightweight Object-Oriented Structure library)
5  Copyright (c) 2008, Tod D. Romo, Alan Grossfield
6  Department of Biochemistry and Biophysics
7  School of Medicine & Dentistry, University of Rochester
8 
9  This package (LOOS) is free software: you can redistribute it and/or modify
10  it under the terms of the GNU General Public License as published by
11  the Free Software Foundation under version 3 of the License.
12 
13  This package is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with this program. If not, see <http://www.gnu.org/licenses/>.
20 */
21 
22 
23 
24 
25 
26 #if !defined(LOOS_LEXER_HPP)
27 #define LOOS_LEXER_HPP
28 
29 #include <string>
30 
31 // Putative patch for debian
32 #if !defined(EOF)
33 #define EOF (-1)
34 #endif
35 
36 // Flex's c++ support is daft...
37 #undef yyFlexLexer
38 #define yyFlexLexer LoosFlexLexer
39 #include <FlexLexer.h>
40 
41 
42 
43 #include "grammar.hh"
44 
45 // @cond TOOLS_INTERNAL
46 
48 class LoosLexer : public LoosFlexLexer {
49 public:
50  LoosLexer() { }
51  LoosLexer(std::istream* in) : LoosFlexLexer(in, 0) { }
52 
53  loos::parser::token_type looslex(loos::parser::semantic_type* yylval);
54 
55 };
56 
57 // @endcond
58 
59 #endif