OSDN Git Service

- Added better status reporting functions.
[tjqt4port/tj2qt4.git] / taskjuggler / Token.h
1 /*
2  * ProjectFile.cpp - TaskJuggler
3  *
4  * Copyright (c) 2001, 2002 by Chris Schlaeger <cs@suse.de>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of version 2 of the GNU General Public License as
8  * published by the Free Software Foundation.
9  *
10  * $Id$
11  */
12
13 #ifndef _Token_h_
14 #define _Token_h_
15
16 #include <stdio.h>
17
18 #include <qstring.h>
19
20 #define EOFile 0xFFFF
21 #define EOMacro 0xFFFE
22
23 typedef enum
24 {
25         INVALID = 0, EndOfStatement, EndOfFile, MacroBody,
26         ID, ABSOLUTE_ID, RELATIVE_ID,
27         RCBRACE, LCBRACE, RBRACE, LBRACE, COMMA, TILDE, MINUS, AND, OR,
28         DATE, HOUR, INTEGER, REAL, STRING
29 } TokenType;
30
31 class Token
32 {
33 public:
34
35    Token(TokenType /* tt */, const QString& /* tx */) {}
36         ~Token() { }
37
38 private:
39         Token() { } // don't use
40         TokenType type;
41         QString text;
42 } ;
43
44 #endif
45
46
47
48