1 | /**************************************************************************** |
2 | ** |
3 | ** Copyright (C) 2016 The Qt Company Ltd. |
4 | ** Contact: https://www.qt.io/licensing/ |
5 | ** |
6 | ** This file is part of the tools applications of the Qt Toolkit. |
7 | ** |
8 | ** $QT_BEGIN_LICENSE:GPL-EXCEPT$ |
9 | ** Commercial License Usage |
10 | ** Licensees holding valid commercial Qt licenses may use this file in |
11 | ** accordance with the commercial license agreement provided with the |
12 | ** Software or, alternatively, in accordance with the terms contained in |
13 | ** a written agreement between you and The Qt Company. For licensing terms |
14 | ** and conditions see https://www.qt.io/terms-conditions. For further |
15 | ** information use the contact form at https://www.qt.io/contact-us. |
16 | ** |
17 | ** GNU General Public License Usage |
18 | ** Alternatively, this file may be used under the terms of the GNU |
19 | ** General Public License version 3 as published by the Free Software |
20 | ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT |
21 | ** included in the packaging of this file. Please review the following |
22 | ** information to ensure the GNU General Public License requirements will |
23 | ** be met: https://www.gnu.org/licenses/gpl-3.0.html. |
24 | ** |
25 | ** $QT_END_LICENSE$ |
26 | ** |
27 | ****************************************************************************/ |
28 | |
29 | // auto generated |
30 | // DO NOT EDIT. |
31 | |
32 | static const short pp_keyword_trans[][128] = { |
33 | {0,0,0,0,0,0,0,0,0,98,12,0,0,0,0,0, |
34 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
35 | 98,76,96,13,1,60,62,97,9,10,58,56,11,57,102,59, |
36 | 6,6,6,6,6,6,6,6,6,6,92,0,7,81,8,91, |
37 | 0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, |
38 | 1,1,1,1,1,1,1,1,1,1,1,0,101,0,61,1, |
39 | 0,1,2,3,4,1,1,1,1,1,1,1,1,1,5,1, |
40 | 1,1,1,1,1,1,1,1,1,1,1,0,68,0,71,0}, |
41 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
42 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
43 | 0,0,0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|
97 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
98 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
99 | 0,0,0,0,0,0,0,0,0,0,100,0,0,0,0,99, |
100 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
101 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
102 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
103 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
104 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
105 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
106 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
107 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
108 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
109 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
110 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
111 | 0,65,0,0,0,0,0,0,0,0,0,0,0,0,0,69, |
112 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
113 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
114 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
115 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
116 | 103,103,103,103,103,103,103,103,103,103,0,0,0,0,0,0, |
117 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
118 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
119 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
120 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0} |
121 | }; |
122 | |
123 | static const struct |
124 | { |
125 | PP_Token token; |
126 | short next; |
127 | char defchar; |
128 | short defnext; |
129 | PP_Token ident; |
130 | } pp_keywords[] = { |
131 | {.token: PP_NOTOKEN, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN}, |
132 | {.token: PP_CHARACTER, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN}, |
133 | {.token: PP_CHARACTER, .next: 0, .defchar: 105, .defnext: 63, .ident: PP_NOTOKEN}, |
134 | {.token: PP_CHARACTER, .next: 0, .defchar: 111, .defnext: 72, .ident: PP_NOTOKEN}, |
135 | {.token: PP_CHARACTER, .next: 0, .defchar: 101, .defnext: 50, .ident: PP_NOTOKEN}, |
136 | {.token: PP_CHARACTER, .next: 0, .defchar: 111, .defnext: 77, .ident: PP_NOTOKEN}, |
137 | {.token: PP_DIGIT, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN}, |
138 | {.token: PP_LANGLE, .next: 1, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN}, |
139 | {.token: PP_RANGLE, .next: 2, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN}, |
140 | {.token: PP_LPAREN, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN}, |
141 | {.token: PP_RPAREN, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN}, |
142 | {.token: PP_COMMA, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN}, |
143 | {.token: PP_NEWLINE, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN}, |
144 | {.token: PP_HASH, .next: 3, .defchar: 0, .defnext: 0, .ident: PP_HASH}, |
145 | {.token: PP_HASH, .next: 0, .defchar: 101, .defnext: 15, .ident: PP_HASH}, |
146 | {.token: PP_HASH, .next: 0, .defchar: 102, .defnext: 16, .ident: PP_HASH}, |
147 | {.token: PP_HASH, .next: 0, .defchar: 105, .defnext: 17, .ident: PP_HASH}, |
148 | {.token: PP_HASH, .next: 0, .defchar: 110, .defnext: 18, .ident: PP_HASH}, |
149 | {.token: PP_HASH, .next: 0, .defchar: 101, .defnext: 19, .ident: PP_HASH}, |
150 | {.token: PP_DEFINE, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_HASH}, |
151 | {.token: PP_HASH, .next: 4, .defchar: 0, .defnext: 0, .ident: PP_HASH}, |
152 | {.token: PP_IF, .next: 5, .defchar: 0, .defnext: 0, .ident: PP_HASH}, |
153 | {.token: PP_HASH, .next: 0, .defchar: 110, .defnext: 23, .ident: PP_HASH}, |
154 | {.token: PP_HASH, .next: 0, .defchar: 100, .defnext: 24, .ident: PP_HASH}, |
155 | {.token: PP_HASH, .next: 0, .defchar: 101, .defnext: 25, .ident: PP_HASH}, |
156 | {.token: PP_HASH, .next: 0, .defchar: 102, .defnext: 26, .ident: PP_HASH}, |
157 | {.token: PP_UNDEF, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_HASH}, |
158 | {.token: PP_HASH, .next: 0, .defchar: 101, .defnext: 28, .ident: PP_HASH}, |
159 | {.token: PP_HASH, .next: 0, .defchar: 102, .defnext: 29, .ident: PP_HASH}, |
160 | {.token: PP_IFDEF, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_HASH}, |
161 | {.token: PP_HASH, .next: 0, .defchar: 100, .defnext: 31, .ident: PP_HASH}, |
162 | {.token: PP_HASH, .next: 0, .defchar: 101, .defnext: 32, .ident: PP_HASH}, |
163 | {.token: PP_HASH, .next: 0, .defchar: 102, .defnext: 33, .ident: PP_HASH}, |
164 | {.token: PP_IFNDEF, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_HASH}, |
165 | {.token: PP_HASH, .next: 6, .defchar: 0, .defnext: 0, .ident: PP_HASH}, |
166 | {.token: PP_HASH, .next: 7, .defchar: 0, .defnext: 0, .ident: PP_HASH}, |
167 | {.token: PP_HASH, .next: 0, .defchar: 102, .defnext: 37, .ident: PP_HASH}, |
168 | {.token: PP_ELIF, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_HASH}, |
169 | {.token: PP_HASH, .next: 0, .defchar: 101, .defnext: 39, .ident: PP_HASH}, |
170 | {.token: PP_ELSE, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_HASH}, |
171 | {.token: PP_HASH, .next: 0, .defchar: 100, .defnext: 41, .ident: PP_HASH}, |
172 | {.token: PP_HASH, .next: 0, .defchar: 105, .defnext: 42, .ident: PP_HASH}, |
173 | {.token: PP_HASH, .next: 0, .defchar: 102, .defnext: 43, .ident: PP_HASH}, |
174 | {.token: PP_ENDIF, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_HASH}, |
175 | {.token: PP_HASH, .next: 0, .defchar: 99, .defnext: 45, .ident: PP_HASH}, |
176 | {.token: PP_HASH, .next: 0, .defchar: 108, .defnext: 46, .ident: PP_HASH}, |
177 | {.token: PP_HASH, .next: 0, .defchar: 117, .defnext: 47, .ident: PP_HASH}, |
178 | {.token: PP_HASH, .next: 0, .defchar: 100, .defnext: 48, .ident: PP_HASH}, |
179 | {.token: PP_HASH, .next: 0, .defchar: 101, .defnext: 49, .ident: PP_HASH}, |
180 | {.token: PP_INCLUDE, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_HASH}, |
181 | {.token: PP_CHARACTER, .next: 0, .defchar: 102, .defnext: 51, .ident: PP_CHARACTER}, |
182 | {.token: PP_CHARACTER, .next: 0, .defchar: 105, .defnext: 52, .ident: PP_CHARACTER}, |
183 | {.token: PP_CHARACTER, .next: 0, .defchar: 110, .defnext: 53, .ident: PP_CHARACTER}, |
184 | {.token: PP_CHARACTER, .next: 0, .defchar: 101, .defnext: 54, .ident: PP_CHARACTER}, |
185 | {.token: PP_CHARACTER, .next: 0, .defchar: 100, .defnext: 55, .ident: PP_CHARACTER}, |
186 | {.token: PP_DEFINED, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_CHARACTER}, |
187 | {.token: PP_PLUS, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN}, |
188 | {.token: PP_MINUS, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN}, |
189 | {.token: PP_STAR, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN}, |
190 | {.token: PP_SLASH, .next: 8, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN}, |
191 | {.token: PP_PERCENT, .next: 0, .defchar: 58, .defnext: 94, .ident: PP_NOTOKEN}, |
192 | {.token: PP_HAT, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN}, |
193 | {.token: PP_AND, .next: 0, .defchar: 38, .defnext: 89, .ident: PP_NOTOKEN}, |
194 | {.token: PP_CHARACTER, .next: 0, .defchar: 116, .defnext: 64, .ident: PP_CHARACTER}, |
195 | {.token: PP_CHARACTER, .next: 9, .defchar: 0, .defnext: 0, .ident: PP_CHARACTER}, |
196 | {.token: PP_CHARACTER, .next: 0, .defchar: 110, .defnext: 66, .ident: PP_CHARACTER}, |
197 | {.token: PP_CHARACTER, .next: 0, .defchar: 100, .defnext: 67, .ident: PP_CHARACTER}, |
198 | {.token: PP_AND, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_CHARACTER}, |
199 | {.token: PP_OR, .next: 0, .defchar: 124, .defnext: 90, .ident: PP_NOTOKEN}, |
200 | {.token: PP_CHARACTER, .next: 0, .defchar: 114, .defnext: 70, .ident: PP_CHARACTER}, |
201 | {.token: PP_OR, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_CHARACTER}, |
202 | {.token: PP_TILDE, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN}, |
203 | {.token: PP_CHARACTER, .next: 0, .defchar: 109, .defnext: 73, .ident: PP_CHARACTER}, |
204 | {.token: PP_CHARACTER, .next: 0, .defchar: 112, .defnext: 74, .ident: PP_CHARACTER}, |
205 | {.token: PP_CHARACTER, .next: 0, .defchar: 108, .defnext: 75, .ident: PP_CHARACTER}, |
206 | {.token: PP_TILDE, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_CHARACTER}, |
207 | {.token: PP_NOT, .next: 0, .defchar: 61, .defnext: 83, .ident: PP_NOTOKEN}, |
208 | {.token: PP_CHARACTER, .next: 0, .defchar: 116, .defnext: 78, .ident: PP_CHARACTER}, |
209 | {.token: PP_NOT, .next: 0, .defchar: 95, .defnext: 84, .ident: PP_CHARACTER}, |
210 | {.token: PP_LTLT, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN}, |
211 | {.token: PP_GTGT, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN}, |
212 | {.token: PP_INCOMPLETE, .next: 0, .defchar: 61, .defnext: 82, .ident: PP_NOTOKEN}, |
213 | {.token: PP_EQEQ, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN}, |
214 | {.token: PP_NE, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN}, |
215 | {.token: PP_CHARACTER, .next: 0, .defchar: 101, .defnext: 85, .ident: PP_CHARACTER}, |
216 | {.token: PP_CHARACTER, .next: 0, .defchar: 113, .defnext: 86, .ident: PP_CHARACTER}, |
217 | {.token: PP_NE, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_CHARACTER}, |
218 | {.token: PP_LE, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN}, |
219 | {.token: PP_GE, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN}, |
220 | {.token: PP_ANDAND, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN}, |
221 | {.token: PP_OROR, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN}, |
222 | {.token: PP_QUESTION, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN}, |
223 | {.token: PP_COLON, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN}, |
224 | {.token: PP_HASHHASH, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN}, |
225 | {.token: PP_INCOMPLETE, .next: 0, .defchar: 37, .defnext: 95, .ident: PP_NOTOKEN}, |
226 | {.token: PP_INCOMPLETE, .next: 0, .defchar: 58, .defnext: 93, .ident: PP_NOTOKEN}, |
227 | {.token: PP_QUOTE, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN}, |
228 | {.token: PP_SINGLEQUOTE, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN}, |
229 | {.token: PP_WHITESPACE, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN}, |
230 | {.token: PP_CPP_COMMENT, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN}, |
231 | {.token: PP_C_COMMENT, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN}, |
232 | {.token: PP_BACKSLASH, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN}, |
233 | {.token: PP_INCOMPLETE, .next: 10, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN}, |
234 | {.token: PP_FLOATING_LITERAL, .next: 0, .defchar: 0, .defnext: 0, .ident: PP_NOTOKEN} |
235 | }; |
236 | |