Mercurial > projects > qtd
annotate generator/parser/tokens.h @ 390:403d98bd47f6
Added QT_{BEGIN,END}_{HEADER,NAMESPACE} also to the D2 version ? they are empty, but referenced in the output of duic.
author | David Nadlinger <code@klickverbot.at> |
---|---|
date | Fri, 27 Aug 2010 15:05:23 +0200 |
parents | 09a0f1d048f2 |
children |
rev | line source |
---|---|
1 | 1 /**************************************************************************** |
2 ** | |
52
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
3 ** Copyright (C) 1992-2009 Nokia. All rights reserved. |
1 | 4 ** Copyright (C) 2002-2005 Roberto Raggi <roberto@kdevelop.org> |
5 ** | |
6 ** This file is part of Qt Jambi. | |
7 ** | |
52
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
8 ** Commercial Usage |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
9 Licensees holding valid Qt Commercial licenses may use this file in |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
10 accordance with the Qt Commercial License Agreement provided with the |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
11 Software or, alternatively, in accordance with the terms contained in |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
12 a written agreement between you and Nokia. |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
13 |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
14 GNU Lesser General Public License Usage |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
15 Alternatively, this file may be used under the terms of the GNU Lesser |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
16 General Public License version 2.1 as published by the Free Software |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
17 Foundation and appearing in the file LICENSE.LGPL included in the |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
18 packaging of this file. Please review the following information to |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
19 ensure the GNU Lesser General Public License version 2.1 requirements |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
20 will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
21 |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
22 In addition, as a special exception, Nokia gives you certain |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
23 additional rights. These rights are described in the Nokia Qt LGPL |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
24 Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
25 package. |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
26 |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
27 GNU General Public License Usage |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
28 Alternatively, this file may be used under the terms of the GNU |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
29 General Public License version 3.0 as published by the Free Software |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
30 Foundation and appearing in the file LICENSE.GPL included in the |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
31 packaging of this file. Please review the following information to |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
32 ensure the GNU General Public License version 3.0 requirements will be |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
33 met: http://www.gnu.org/copyleft/gpl.html. |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
34 |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
35 If you are unsure which license is appropriate for your use, please |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
36 contact the sales department at qt-sales@nokia.com. |
1 | 37 |
38 ** | |
39 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | |
40 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
41 ** | |
42 ****************************************************************************/ | |
43 | |
44 | |
45 #ifndef TOKENS_H | |
46 #define TOKENS_H | |
47 | |
48 enum TOKEN_KIND | |
49 { | |
50 Token_EOF = 0, | |
51 | |
52 Token_K_DCOP = 1000, | |
53 Token_Q_OBJECT, | |
54 Token_Q_PROPERTY, | |
55 Token___attribute__, | |
56 Token___typeof, | |
57 Token_and, | |
58 Token_and_eq, | |
59 Token_arrow, | |
60 Token_asm, | |
61 Token_assign, | |
62 Token_auto, | |
63 Token_bitand, | |
64 Token_bitor, | |
65 Token_bool, | |
66 Token_break, | |
67 Token_case, | |
68 Token_catch, | |
69 Token_char, | |
70 Token_char_literal, | |
71 Token_class, | |
72 Token_comment, | |
73 Token_compl, | |
74 Token_concat, | |
75 Token_const, | |
76 Token_const_cast, | |
77 Token_continue, | |
78 Token_decr, | |
79 Token_default, | |
80 Token_delete, | |
81 Token_do, | |
82 Token_double, | |
83 Token_dynamic_cast, | |
84 Token_ellipsis, | |
85 Token_else, | |
86 Token_emit, | |
87 Token_enum, | |
88 Token_eq, | |
89 Token_explicit, | |
90 Token_export, | |
91 Token_extern, | |
92 Token_false, | |
93 Token_float, | |
94 Token_for, | |
95 Token_friend, | |
96 Token_geq, | |
97 Token_goto, | |
98 Token_identifier, | |
99 Token_if, | |
100 Token_incr, | |
101 Token_inline, | |
102 Token_int, | |
103 Token_k_dcop, | |
104 Token_k_dcop_signals, | |
105 Token_leq, | |
106 Token_long, | |
107 Token_mutable, | |
108 Token_namespace, | |
109 Token_new, | |
110 Token_not, | |
111 Token_not_eq, | |
112 Token_number_literal, | |
113 Token_operator, | |
114 Token_or, | |
115 Token_or_eq, | |
116 Token_preproc, | |
117 Token_private, | |
118 Token_protected, | |
119 Token_ptrmem, | |
120 Token_public, | |
121 Token_register, | |
122 Token_reinterpret_cast, | |
123 Token_return, | |
124 Token_scope, | |
125 Token_shift, | |
126 Token_short, | |
127 Token_signals, | |
128 Token_signed, | |
129 Token_sizeof, | |
130 Token_slots, | |
131 Token_static, | |
132 Token_static_cast, | |
133 Token_string_literal, | |
134 Token_struct, | |
135 Token_switch, | |
136 Token_template, | |
137 Token_this, | |
138 Token_throw, | |
139 Token_true, | |
140 Token_try, | |
141 Token_typedef, | |
142 Token_typeid, | |
143 Token_typename, | |
144 Token_union, | |
145 Token_unsigned, | |
146 Token_using, | |
147 Token_virtual, | |
148 Token_void, | |
149 Token_volatile, | |
150 Token_wchar_t, | |
151 Token_while, | |
152 Token_whitespaces, | |
153 Token_xor, | |
154 Token_xor_eq, | |
155 Token_Q_ENUMS, | |
156 Token_Q_INVOKABLE, | |
157 | |
158 TOKEN_KIND_COUNT | |
159 }; | |
160 | |
161 char const *token_name(int token); | |
162 | |
163 #endif | |
164 | |
165 // kate: space-indent on; indent-width 2; replace-tabs on; |