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
32static 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,0,0,0,0,0,0,0,0,0,0,0,0,0,
44 0,0,0,0,0,0,0,0,0,0,0,0,79,87,0,0,
45 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
46 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
47 0,0,0,0,0,0,0,0,0,0,0,0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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
123static const struct
124{
125 PP_Token token;
126 short next;
127 char defchar;
128 short defnext;
129 PP_Token ident;
130} pp_keywords[] = {
131 {PP_NOTOKEN, 0, 0, 0, PP_NOTOKEN},
132 {PP_CHARACTER, 0, 0, 0, PP_NOTOKEN},
133 {PP_CHARACTER, 0, 105, 63, PP_NOTOKEN},
134 {PP_CHARACTER, 0, 111, 72, PP_NOTOKEN},
135 {PP_CHARACTER, 0, 101, 50, PP_NOTOKEN},
136 {PP_CHARACTER, 0, 111, 77, PP_NOTOKEN},
137 {PP_DIGIT, 0, 0, 0, PP_NOTOKEN},
138 {PP_LANGLE, 1, 0, 0, PP_NOTOKEN},
139 {PP_RANGLE, 2, 0, 0, PP_NOTOKEN},
140 {PP_LPAREN, 0, 0, 0, PP_NOTOKEN},
141 {PP_RPAREN, 0, 0, 0, PP_NOTOKEN},
142 {PP_COMMA, 0, 0, 0, PP_NOTOKEN},
143 {PP_NEWLINE, 0, 0, 0, PP_NOTOKEN},
144 {PP_HASH, 3, 0, 0, PP_HASH},
145 {PP_HASH, 0, 101, 15, PP_HASH},
146 {PP_HASH, 0, 102, 16, PP_HASH},
147 {PP_HASH, 0, 105, 17, PP_HASH},
148 {PP_HASH, 0, 110, 18, PP_HASH},
149 {PP_HASH, 0, 101, 19, PP_HASH},
150 {PP_DEFINE, 0, 0, 0, PP_HASH},
151 {PP_HASH, 4, 0, 0, PP_HASH},
152 {PP_IF, 5, 0, 0, PP_HASH},
153 {PP_HASH, 0, 110, 23, PP_HASH},
154 {PP_HASH, 0, 100, 24, PP_HASH},
155 {PP_HASH, 0, 101, 25, PP_HASH},
156 {PP_HASH, 0, 102, 26, PP_HASH},
157 {PP_UNDEF, 0, 0, 0, PP_HASH},
158 {PP_HASH, 0, 101, 28, PP_HASH},
159 {PP_HASH, 0, 102, 29, PP_HASH},
160 {PP_IFDEF, 0, 0, 0, PP_HASH},
161 {PP_HASH, 0, 100, 31, PP_HASH},
162 {PP_HASH, 0, 101, 32, PP_HASH},
163 {PP_HASH, 0, 102, 33, PP_HASH},
164 {PP_IFNDEF, 0, 0, 0, PP_HASH},
165 {PP_HASH, 6, 0, 0, PP_HASH},
166 {PP_HASH, 7, 0, 0, PP_HASH},
167 {PP_HASH, 0, 102, 37, PP_HASH},
168 {PP_ELIF, 0, 0, 0, PP_HASH},
169 {PP_HASH, 0, 101, 39, PP_HASH},
170 {PP_ELSE, 0, 0, 0, PP_HASH},
171 {PP_HASH, 0, 100, 41, PP_HASH},
172 {PP_HASH, 0, 105, 42, PP_HASH},
173 {PP_HASH, 0, 102, 43, PP_HASH},
174 {PP_ENDIF, 0, 0, 0, PP_HASH},
175 {PP_HASH, 0, 99, 45, PP_HASH},
176 {PP_HASH, 0, 108, 46, PP_HASH},
177 {PP_HASH, 0, 117, 47, PP_HASH},
178 {PP_HASH, 0, 100, 48, PP_HASH},
179 {PP_HASH, 0, 101, 49, PP_HASH},
180 {PP_INCLUDE, 0, 0, 0, PP_HASH},
181 {PP_CHARACTER, 0, 102, 51, PP_CHARACTER},
182 {PP_CHARACTER, 0, 105, 52, PP_CHARACTER},
183 {PP_CHARACTER, 0, 110, 53, PP_CHARACTER},
184 {PP_CHARACTER, 0, 101, 54, PP_CHARACTER},
185 {PP_CHARACTER, 0, 100, 55, PP_CHARACTER},
186 {PP_DEFINED, 0, 0, 0, PP_CHARACTER},
187 {PP_PLUS, 0, 0, 0, PP_NOTOKEN},
188 {PP_MINUS, 0, 0, 0, PP_NOTOKEN},
189 {PP_STAR, 0, 0, 0, PP_NOTOKEN},
190 {PP_SLASH, 8, 0, 0, PP_NOTOKEN},
191 {PP_PERCENT, 0, 58, 94, PP_NOTOKEN},
192 {PP_HAT, 0, 0, 0, PP_NOTOKEN},
193 {PP_AND, 0, 38, 89, PP_NOTOKEN},
194 {PP_CHARACTER, 0, 116, 64, PP_CHARACTER},
195 {PP_CHARACTER, 9, 0, 0, PP_CHARACTER},
196 {PP_CHARACTER, 0, 110, 66, PP_CHARACTER},
197 {PP_CHARACTER, 0, 100, 67, PP_CHARACTER},
198 {PP_AND, 0, 0, 0, PP_CHARACTER},
199 {PP_OR, 0, 124, 90, PP_NOTOKEN},
200 {PP_CHARACTER, 0, 114, 70, PP_CHARACTER},
201 {PP_OR, 0, 0, 0, PP_CHARACTER},
202 {PP_TILDE, 0, 0, 0, PP_NOTOKEN},
203 {PP_CHARACTER, 0, 109, 73, PP_CHARACTER},
204 {PP_CHARACTER, 0, 112, 74, PP_CHARACTER},
205 {PP_CHARACTER, 0, 108, 75, PP_CHARACTER},
206 {PP_TILDE, 0, 0, 0, PP_CHARACTER},
207 {PP_NOT, 0, 61, 83, PP_NOTOKEN},
208 {PP_CHARACTER, 0, 116, 78, PP_CHARACTER},
209 {PP_NOT, 0, 95, 84, PP_CHARACTER},
210 {PP_LTLT, 0, 0, 0, PP_NOTOKEN},
211 {PP_GTGT, 0, 0, 0, PP_NOTOKEN},
212 {PP_INCOMPLETE, 0, 61, 82, PP_NOTOKEN},
213 {PP_EQEQ, 0, 0, 0, PP_NOTOKEN},
214 {PP_NE, 0, 0, 0, PP_NOTOKEN},
215 {PP_CHARACTER, 0, 101, 85, PP_CHARACTER},
216 {PP_CHARACTER, 0, 113, 86, PP_CHARACTER},
217 {PP_NE, 0, 0, 0, PP_CHARACTER},
218 {PP_LE, 0, 0, 0, PP_NOTOKEN},
219 {PP_GE, 0, 0, 0, PP_NOTOKEN},
220 {PP_ANDAND, 0, 0, 0, PP_NOTOKEN},
221 {PP_OROR, 0, 0, 0, PP_NOTOKEN},
222 {PP_QUESTION, 0, 0, 0, PP_NOTOKEN},
223 {PP_COLON, 0, 0, 0, PP_NOTOKEN},
224 {PP_HASHHASH, 0, 0, 0, PP_NOTOKEN},
225 {PP_INCOMPLETE, 0, 37, 95, PP_NOTOKEN},
226 {PP_INCOMPLETE, 0, 58, 93, PP_NOTOKEN},
227 {PP_QUOTE, 0, 0, 0, PP_NOTOKEN},
228 {PP_SINGLEQUOTE, 0, 0, 0, PP_NOTOKEN},
229 {PP_WHITESPACE, 0, 0, 0, PP_NOTOKEN},
230 {PP_CPP_COMMENT, 0, 0, 0, PP_NOTOKEN},
231 {PP_C_COMMENT, 0, 0, 0, PP_NOTOKEN},
232 {PP_BACKSLASH, 0, 0, 0, PP_NOTOKEN},
233 {PP_INCOMPLETE, 10, 0, 0, PP_NOTOKEN},
234 {PP_FLOATING_LITERAL, 0, 0, 0, PP_NOTOKEN}
235};
236