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