source: trunk/tools/porting/src/tokens.h@ 315

Last change on this file since 315 was 2, checked in by Dmitry A. Kuminov, 16 years ago

Initially imported qt-all-opensource-src-4.5.1 from Trolltech.

File size: 4.4 KB
Line 
1/****************************************************************************
2**
3** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
4** Contact: Qt Software Information ([email protected])
5** Copyright (C) 2001-2004 Roberto Raggi
6**
7** This file is part of the qt3to4 porting application of the Qt Toolkit.
8**
9** $QT_BEGIN_LICENSE:LGPL$
10** Commercial Usage
11** Licensees holding valid Qt Commercial licenses may use this file in
12** accordance with the Qt Commercial License Agreement provided with the
13** Software or, alternatively, in accordance with the terms contained in
14** a written agreement between you and Nokia.
15**
16** GNU Lesser General Public License Usage
17** Alternatively, this file may be used under the terms of the GNU Lesser
18** General Public License version 2.1 as published by the Free Software
19** Foundation and appearing in the file LICENSE.LGPL included in the
20** packaging of this file. Please review the following information to
21** ensure the GNU Lesser General Public License version 2.1 requirements
22** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
23**
24** In addition, as a special exception, Nokia gives you certain
25** additional rights. These rights are described in the Nokia Qt LGPL
26** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
27** package.
28**
29** GNU General Public License Usage
30** Alternatively, this file may be used under the terms of the GNU
31** General Public License version 3.0 as published by the Free Software
32** Foundation and appearing in the file LICENSE.GPL included in the
33** packaging of this file. Please review the following information to
34** ensure the GNU General Public License version 3.0 requirements will be
35** met: http://www.gnu.org/copyleft/gpl.html.
36**
37** If you are unsure which license is appropriate for your use, please
38** contact the sales department at [email protected].
39** $QT_END_LICENSE$
40**
41****************************************************************************/
42
43#ifndef TOKENS_H
44#define TOKENS_H
45
46#include <qglobal.h>
47
48QT_BEGIN_NAMESPACE
49
50enum Type
51{
52 Token_eof = 0,
53 Token_newline = 10,
54 Token_identifier = 1000,
55 Token_number_literal,
56 Token_char_literal,
57 Token_string_literal,
58 Token_whitespaces,
59 Token_comment,
60 Token_preproc,
61 Token_line_comment,
62 Token_multiline_comment,
63
64 Token_assign = 2000,
65 Token_ptrmem,
66 Token_ellipsis,
67 Token_scope,
68 Token_shift,
69 Token_eq,
70 Token_leq,
71 Token_geq,
72 Token_incr,
73 Token_decr,
74 Token_arrow,
75
76 Token_concat,
77
78 Token___typeof,
79
80 Token_K_DCOP,
81 Token_k_dcop,
82 Token_k_dcop_signals,
83
84 Token_Q_OBJECT,
85 Token_signals,
86 Token_slots,
87 Token_emit,
88
89 Token_and,
90 Token_and_eq,
91 Token_asm,
92 Token_auto,
93 Token_bitand,
94 Token_bitor,
95 Token_bool,
96 Token_break,
97 Token_case,
98 Token_catch,
99 Token_char,
100 Token_class,
101 Token_compl,
102 Token_const,
103 Token_const_cast,
104 Token_continue,
105 Token_default,
106 Token_delete,
107 Token_do,
108 Token_double,
109 Token_dynamic_cast,
110 Token_else,
111 Token_enum,
112 Token_explicit,
113 Token_export,
114 Token_extern,
115 Token_false,
116 Token_float,
117 Token_for,
118 Token_friend,
119 Token_goto,
120 Token_if,
121 Token_inline,
122 Token_int,
123 Token_long,
124 Token_mutable,
125 Token_namespace,
126 Token_new,
127 Token_not,
128 Token_not_eq,
129 Token_operator,
130 Token_or,
131 Token_or_eq,
132 Token_private,
133 Token_protected,
134 Token_public,
135 Token_register,
136 Token_reinterpret_cast,
137 Token_return,
138 Token_short,
139 Token_signed,
140 Token_sizeof,
141 Token_static,
142 Token_static_cast,
143 Token_struct,
144 Token_switch,
145 Token_template,
146 Token_this,
147 Token_throw,
148 Token_true,
149 Token_try,
150 Token_typedef,
151 Token_typeid,
152 Token_typename,
153 Token_union,
154 Token_unsigned,
155 Token_using,
156 Token_virtual,
157 Token_void,
158 Token_volatile,
159 Token_wchar_t,
160 Token_while,
161 Token_xor,
162 Token_xor_eq,
163
164 Token_left_shift,
165 Token_right_shift,
166
167 // preprecessor
168 Token_directive_identifier,
169 Token_directive_if,
170 Token_directive_elif,
171 Token_directive_else,
172 Token_directive_undef,
173 Token_directive_endif,
174 Token_directive_ifdef,
175 Token_directive_ifndef,
176 Token_directive_define,
177 Token_directive_include,
178 Token_directive_line,
179 Token_directive_error,
180 Token_directive_pragma,
181 Token_defined
182};
183
184QT_END_NAMESPACE
185
186#endif
Note: See TracBrowser for help on using the repository browser.