|
1 /**************************************************************************** |
|
2 ** |
|
3 ** Copyright (C) 2001-2004 Roberto Raggi |
|
4 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
5 ** All rights reserved. |
|
6 ** Contact: Nokia Corporation (qt-info@nokia.com) |
|
7 ** |
|
8 ** This file is part of the qt3to4 porting application of the Qt Toolkit. |
|
9 ** |
|
10 ** $QT_BEGIN_LICENSE:LGPL$ |
|
11 ** No Commercial Usage |
|
12 ** This file contains pre-release code and may not be distributed. |
|
13 ** You may use this file in accordance with the terms and conditions |
|
14 ** contained in the Technology Preview License Agreement accompanying |
|
15 ** this package. |
|
16 ** |
|
17 ** GNU Lesser General Public License Usage |
|
18 ** Alternatively, this file may be used under the terms of the GNU Lesser |
|
19 ** General Public License version 2.1 as published by the Free Software |
|
20 ** Foundation and appearing in the file LICENSE.LGPL included in the |
|
21 ** packaging of this file. Please review the following information to |
|
22 ** ensure the GNU Lesser General Public License version 2.1 requirements |
|
23 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. |
|
24 ** |
|
25 ** In addition, as a special exception, Nokia gives you certain additional |
|
26 ** rights. These rights are described in the Nokia Qt LGPL Exception |
|
27 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. |
|
28 ** |
|
29 ** If you have questions regarding the use of this file, please contact |
|
30 ** Nokia at qt-info@nokia.com. |
|
31 ** |
|
32 ** |
|
33 ** |
|
34 ** |
|
35 ** |
|
36 ** |
|
37 ** |
|
38 ** |
|
39 ** $QT_END_LICENSE$ |
|
40 ** |
|
41 ****************************************************************************/ |
|
42 |
|
43 #ifndef TOKENS_H |
|
44 #define TOKENS_H |
|
45 |
|
46 #include <qglobal.h> |
|
47 |
|
48 QT_BEGIN_NAMESPACE |
|
49 |
|
50 enum 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 |
|
184 QT_END_NAMESPACE |
|
185 |
|
186 #endif |