Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
KDevelop QMake parser
KDevelop QMake parser
buildtools
lib
parsers
qmake
qmake_lex.h
1
/* KDevelop TQMake Support
2
*
3
* Copyright 2007 Andreas Pakulat <apaku@gmx.de>
4
*
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* as published by the Free Software Foundation; either version 2
8
* of the License, or (at your option) any later version.
9
*
10
* This program 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
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18
* 02110-1301, USA.
19
*/
20
#ifndef TQMAKE_LEX_H
21
#define TQMAKE_LEX_H
22
23
#include "qmake_yacc.hpp"
24
#include <iostream>
25
26
#ifndef DONT_INCLUDE_FLEXLEXER
27
#include "FlexLexer.h"
28
#endif
29
30
namespace
TQMake
31
{
32
class
Lexer :
public
yyFlexLexer
33
{
34
public
:
35
enum
LineEnding{ None, Unix, MacOS, Windows };
36
Lexer( std::istream* argin = 0, std::ostream* argout = 0 );
37
int
yylex(
TQMake::Parser::semantic_type
* yylval );
38
int
yylex();
39
void
setLineEndingFromString(
const
TQString& );
40
LineEnding lineending();
41
private
:
42
TQMake::Parser::semantic_type
* mylval;
43
LineEnding m_lineEnding;
44
};
45
}
46
47
#endif
48
49
// kate: space-indent on; indent-width 4; tab-width: 4; replace-tabs on; auto-insert-doxygen on
TQMake
Definition:
location.hh:47
TQMake::Result
The yylval type.
Definition:
qmake_yacc.hpp:101
KDevelop QMake parser
Skip menu "KDevelop QMake parser"
Main Page
Class Hierarchy
Alphabetical List
Class List
File List
Class Members
KDevelop QMake parser
Skip menu "KDevelop QMake parser"
buildtools
lib
base
parsers
autotools
qmake
widgets
api
languages
lib
debugger
designer_integration
interfaces
lib
catalog
interfaces
extensions
external
extras
util
widgets
propeditor
parts
documentation
interfaces
src
profileengine
lib