summaryrefslogtreecommitdiffstats
blob: 3d8defd5a55b27e0d74315fce8a6ab911bd86c1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
/*******************************************************************************
 * Copyright (c) 2002, 2010 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     John Camelon (IBM Rational Software) - Initial API and implementation
 *     Anton Leherbauer (Wind River Systems)
 *     Markus Schorn (Wind River Systems)
 *******************************************************************************/
package org.eclipse.cdt.core.parser;

import org.eclipse.cdt.core.parser.util.CharArrayIntMap;

/**
 * @noextend This class is not intended to be subclassed by clients.
 * @noinstantiate This class is not intended to be instantiated by clients.
 */
@SuppressWarnings("nls")
public class Keywords {
	public static final String CAST = "cast";
	/** @since 5.4 */
	public static final String ALIGNAS = "alignas";
	public static final String ALIGNOF = "alignof";
	public static final String TYPEOF = "typeof";

	public static final String _BOOL = "_Bool";
	public static final String _COMPLEX = "_Complex";
	public static final String _IMAGINARY = "_Imaginary";
	public static final String AND = "and";
	public static final String AND_EQ = "and_eq";
	public static final String ASM = "asm";
	public static final String AUTO = "auto";
	public static final String BITAND = "bitand";
	public static final String BITOR = "bitor";
	public static final String BOOL = "bool";
	public static final String BREAK = "break";
	public static final String CASE = "case";
	public static final String CATCH = "catch";
	public static final String CHAR = "char";
	/** @since 5.2 */
	public static final String CHAR16_T = "char16_t";
	/** @since 5.2 */
	public static final String CHAR32_T = "char32_t";
	public static final String CLASS = "class";
	public static final String COMPL = "compl";
	public static final String CONST = "const";
	/** @since 5.4 */
	public static final String CONSTEXPR = "constexpr";
	public static final String CONST_CAST = "const_cast";
	public static final String CONTINUE = "continue";
	/** @since 5.2 */
	public static final String DECLTYPE = "decltype";
	public static final String DEFAULT = "default";
	public static final String DELETE = "delete";
	public static final String DO = "do";
	public static final String DOUBLE = "double";
	public static final String DYNAMIC_CAST = "dynamic_cast";
	public static final String ELSE = "else";
	public static final String ENUM = "enum";
	public static final String EXPLICIT = "explicit";
	public static final String EXPORT = "export";
	public static final String EXTERN = "extern";
	public static final String FALSE = "false";
	public static final String FLOAT = "float";
	public static final String FOR = "for";
	public static final String FRIEND = "friend";
	public static final String GOTO = "goto";
	public static final String IF = "if";
	public static final String INLINE = "inline";
	public static final String INT = "int";
	public static final String LONG = "long";
	public static final String LONG_LONG = "long long";
	public static final String MUTABLE = "mutable";
	public static final String NAMESPACE = "namespace";
	/** @since 5.4 */
	public static final String NULLPTR = "nullptr";
	public static final String NEW = "new";
	/** @since 5.4 */
	public static final String NOEXCEPT = "noexcept";
	public static final String NOT = "not";
	public static final String NOT_EQ = "not_eq";
	public static final String OPERATOR = "operator";
	public static final String OR = "or";
	public static final String OR_EQ = "or_eq";
	public static final String PRIVATE = "private";
	public static final String PROTECTED = "protected";
	public static final String PUBLIC = "public";
	public static final String REGISTER = "register";
	public static final String REINTERPRET_CAST = "reinterpret_cast";
	public static final String RESTRICT = "restrict";
	public static final String RETURN = "return";
	public static final String SHORT = "short";
	public static final String SIGNED = "signed";
	public static final String SIZEOF = "sizeof";
	public static final String STATIC = "static";
	/** @since 5.2 */
	public static final String STATIC_ASSERT = "static_assert";
	public static final String STATIC_CAST = "static_cast";
	public static final String STRUCT = "struct";
	public static final String SWITCH = "switch";
	public static final String TEMPLATE = "template";
	public static final String THIS = "this";
	/** @since 5.4 */
	public static final String THREAD_LOCAL = "thread_local";
	public static final String THROW = "throw";
	public static final String TRUE = "true";
	public static final String TRY = "try";
	public static final String TYPEDEF = "typedef";
	public static final String TYPEID = "typeid";
	public static final String TYPENAME = "typename";
	public static final String UNION = "union";
	public static final String UNSIGNED = "unsigned";
	public static final String USING = "using";
	public static final String VIRTUAL = "virtual";
	public static final String VOID = "void";
	public static final String VOLATILE = "volatile";
	public static final String WCHAR_T = "wchar_t";
	public static final String WHILE = "while";
	public static final String XOR = "xor";
	public static final String XOR_EQ = "xor_eq";


	public static final char[] c_BOOL = "_Bool".toCharArray();
	public static final char[] c_COMPLEX = "_Complex".toCharArray();
	public static final char[] c_IMAGINARY = "_Imaginary".toCharArray();
	/** @since 5.4 */
	public static final char[] cALIGNAS = "alignas".toCharArray();
	/** @since 5.3 */
	public static final char[] cALIGNOF = "alignof".toCharArray();
	public static final char[] cAND = "and".toCharArray();
	public static final char[] cAND_EQ = "and_eq".toCharArray();
	public static final char[] cASM = "asm".toCharArray();
	public static final char[] cAUTO = "auto".toCharArray();
	public static final char[] cBITAND = "bitand".toCharArray();
	public static final char[] cBITOR = "bitor".toCharArray();
	public static final char[] cBOOL = "bool".toCharArray();
	public static final char[] cBREAK = "break".toCharArray();
	public static final char[] cCASE = "case".toCharArray();
	public static final char[] cCATCH = "catch".toCharArray();
	public static final char[] cCHAR = "char".toCharArray();
	/** @since 5.2 */
	public static final char[] cCHAR16_T = CHAR16_T.toCharArray();
	/** @since 5.2 */
	public static final char[] cCHAR32_T = CHAR32_T.toCharArray();
	public static final char[] cCLASS = "class".toCharArray();
	public static final char[] cCOMPL = "compl".toCharArray();
	public static final char[] cCONST = "const".toCharArray();
	/** @since 5.4 */
	public static final char[] cCONSTEXPR = "constexpr".toCharArray();
	public static final char[] cCONST_CAST = "const_cast".toCharArray();
	public static final char[] cCONTINUE = "continue".toCharArray();
	public static final char[] cDEFAULT = "default".toCharArray();
	/** @since 5.2 */
	public static final char[] cDECLTYPE = DECLTYPE.toCharArray();
	public static final char[] cDELETE = "delete".toCharArray();
	public static final char[] cDO = "do".toCharArray();
	public static final char[] cDOUBLE = "double".toCharArray();
	public static final char[] cDYNAMIC_CAST = "dynamic_cast".toCharArray();
	public static final char[] cELSE = "else".toCharArray();
	public static final char[] cENUM = "enum".toCharArray();
	public static final char[] cEXPLICIT = "explicit".toCharArray();
	public static final char[] cEXPORT = "export".toCharArray();
	public static final char[] cEXTERN = "extern".toCharArray();
	public static final char[] cFALSE = "false".toCharArray();
	public static final char[] cFLOAT = "float".toCharArray();
	public static final char[] cFOR = "for".toCharArray();
	public static final char[] cFRIEND = "friend".toCharArray();
	public static final char[] cGOTO = "goto".toCharArray();
	public static final char[] cIF = "if".toCharArray();
	public static final char[] cINLINE = "inline".toCharArray();
	public static final char[] cINT = "int".toCharArray();
	public static final char[] cLONG = "long".toCharArray();
	public static final char[] cMUTABLE = "mutable".toCharArray();
	public static final char[] cNAMESPACE = "namespace".toCharArray();
	public static final char[] cNEW = "new".toCharArray();
	/** @since 5.4 */
	public static final char[] cNULLPTR = NULLPTR.toCharArray();
	/** @since 5.4 */
	public static final char[] cNOEXCEPT = "noexcept".toCharArray();
	public static final char[] cNOT = "not".toCharArray();
	public static final char[] cNOT_EQ = "not_eq".toCharArray();
	public static final char[] cOPERATOR = "operator".toCharArray();
	public static final char[] cOR = "or".toCharArray();
	public static final char[] cOR_EQ = "or_eq".toCharArray();
	public static final char[] cPRIVATE = "private".toCharArray();
	public static final char[] cPROTECTED = "protected".toCharArray();
	public static final char[] cPUBLIC = "public".toCharArray();
	public static final char[] cREGISTER = "register".toCharArray();
	public static final char[] cREINTERPRET_CAST = "reinterpret_cast".toCharArray();
	public static final char[] cRESTRICT = "restrict".toCharArray();
	public static final char[] cRETURN = "return".toCharArray();
	public static final char[] cSHORT = "short".toCharArray();
	public static final char[] cSIGNED = "signed".toCharArray();
	public static final char[] cSIZEOF = "sizeof".toCharArray();
	/** @since 5.3 */
	public static final char[] cSIZEOFPACK= "sizeof...".toCharArray();
	public static final char[] cSTATIC = "static".toCharArray();
	/** @since 5.2 */
	public static final char[] cSTATIC_ASSERT = STATIC_ASSERT.toCharArray();
	public static final char[] cSTATIC_CAST = "static_cast".toCharArray();
	public static final char[] cSTRUCT = "struct".toCharArray();
	public static final char[] cSWITCH = "switch".toCharArray();
	public static final char[] cTEMPLATE = "template".toCharArray();
	public static final char[] cTHIS = "this".toCharArray();
	/** @since 5.4 */
	public static final char[] cTHREAD_LOCAL = "thread_local".toCharArray();
	public static final char[] cTHROW = "throw".toCharArray();
	public static final char[] cTRUE = "true".toCharArray();
	public static final char[] cTRY = "try".toCharArray();
	public static final char[] cTYPEDEF = "typedef".toCharArray();
	public static final char[] cTYPEID = "typeid".toCharArray();
	public static final char[] cTYPENAME = "typename".toCharArray();
	public static final char[] cUNION = "union".toCharArray();
	public static final char[] cUNSIGNED = "unsigned".toCharArray();
	public static final char[] cUSING = "using".toCharArray();
	public static final char[] cVIRTUAL = "virtual".toCharArray();
	public static final char[] cVOID = "void".toCharArray();
	public static final char[] cVOLATILE = "volatile".toCharArray();
	public static final char[] cWCHAR_T = "wchar_t".toCharArray();
	public static final char[] cWHILE = "while".toCharArray();
	public static final char[] cXOR = "xor".toCharArray();
	public static final char[] cXOR_EQ = "xor_eq".toCharArray();

	public static final char[] cpCOLONCOLON = "::".toCharArray();
	public static final char[] cpCOLON = ":".toCharArray();
	public static final char[] cpSEMI = ";".toCharArray();
	public static final char[] cpCOMMA =	",".toCharArray();
	public static final char[] cpQUESTION = "?".toCharArray();
	public static final char[] cpLPAREN  = "(".toCharArray();
	public static final char[] cpRPAREN  = ")".toCharArray();
	public static final char[] cpLBRACKET = "[".toCharArray();
	public static final char[] cpRBRACKET = "]".toCharArray();
	public static final char[] cpLBRACE = "{".toCharArray();
	public static final char[] cpRBRACE = "}".toCharArray();
	public static final char[] cpPLUSASSIGN =	"+=".toCharArray();
	public static final char[] cpINCR = 	"++".toCharArray();
	public static final char[] cpPLUS = 	"+".toCharArray();
	public static final char[] cpMINUSASSIGN =	"-=".toCharArray();
	public static final char[] cpDECR = 	"--".toCharArray();
	public static final char[] cpARROWSTAR =	"->*".toCharArray();
	public static final char[] cpARROW = 	"->".toCharArray();
	public static final char[] cpMINUS = 	"-".toCharArray();
	public static final char[] cpSTARASSIGN =	"*=".toCharArray();
	public static final char[] cpSTAR = 	"*".toCharArray();
	public static final char[] cpMODASSIGN =	"%=".toCharArray();
	public static final char[] cpMOD = 	"%".toCharArray();
	public static final char[] cpXORASSIGN =	"^=".toCharArray();
	public static final char[] cpXOR = 	"^".toCharArray();
	public static final char[] cpAMPERASSIGN =	"&=".toCharArray();
	public static final char[] cpAND = 	"&&".toCharArray();
	public static final char[] cpAMPER =	"&".toCharArray();
	public static final char[] cpBITORASSIGN =	"|=".toCharArray();
	public static final char[] cpOR = 	"||".toCharArray();
	public static final char[] cpBITOR =	"|".toCharArray();
	public static final char[] cpCOMPL =	"~".toCharArray();
	public static final char[] cpNOTEQUAL =	"!=".toCharArray();
	public static final char[] cpNOT = 	"!".toCharArray();
	public static final char[] cpEQUAL =	"==".toCharArray();
	public static final char[] cpASSIGN ="=".toCharArray();
	public static final char[] cpSHIFTL =	"<<".toCharArray();
	public static final char[] cpLTEQUAL =	"<=".toCharArray();
	public static final char[] cpLT = 	"<".toCharArray();
	public static final char[] cpSHIFTRASSIGN =	">>=".toCharArray();
	public static final char[] cpSHIFTR = 	">>".toCharArray();
	public static final char[] cpGTEQUAL = 	">=".toCharArray();
	public static final char[] cpGT = 	">".toCharArray();
	public static final char[] cpSHIFTLASSIGN =	"<<=".toCharArray();
	public static final char[] cpELLIPSIS = 	"...".toCharArray();
	public static final char[] cpDOTSTAR = 	".*".toCharArray();
	public static final char[] cpDOT = 	".".toCharArray();
	public static final char[] cpDIVASSIGN =	"/=".toCharArray();
	public static final char[] cpDIV = 	"/".toCharArray();
	public static final char[] cpPOUND = "#".toCharArray();
	public static final char[] cpPOUNDPOUND = "##".toCharArray();

	// gcc extensions
	public static final char[] cpMIN = "<?".toCharArray();
	public static final char[] cpMAX = ">?".toCharArray();

	// preprocessor keywords
	public static final char[] cIFDEF = "ifdef".toCharArray();
	public static final char[] cIFNDEF = "ifndef".toCharArray();
	public static final char[] cELIF = "elif".toCharArray();
	public static final char[] cENDIF = "endif".toCharArray();
	public static final char[] cINCLUDE = "include".toCharArray();
	public static final char[] cDEFINE = "define".toCharArray();
	public static final char[] cUNDEF = "undef".toCharArray();
	public static final char[] cERROR = "error".toCharArray();
	public static final char[] cPRAGMA = "pragma".toCharArray();
	public static final char[] cLINE = "line".toCharArray();
	public static final char[] cDEFINED= "defined".toCharArray();
	/** @since 5.2*/
	public static final char[] _Pragma= "_Pragma".toCharArray();
	public static final char[] cVA_ARGS= "__VA_ARGS__".toCharArray();


	// preprocessor extensions (supported by GCC)
	public static final char[] cINCLUDE_NEXT = "include_next".toCharArray();
	public static final char[] cIMPORT = "import".toCharArray();
	public static final char[] cIDENT = "ident".toCharArray();
	public static final char[] cSCCS = "sccs".toCharArray();
	public static final char[] cWARNING = "warning".toCharArray();
	public static final char[] cASSERT = "assert".toCharArray();
	public static final char[] cUNASSERT = "unassert".toCharArray();

	public static void addKeywordsC(CharArrayIntMap kw) {
		addCommon(kw);
		addC(kw);
	}

	public static void addKeywordsCpp(CharArrayIntMap kw) {
		addCommon(kw);
		addCpp(kw);
	}

	private static void addCommon(CharArrayIntMap words) {
		words.put(Keywords._Pragma, IToken.t_PRAGMA);
        words.put(Keywords.cAUTO, IToken.t_auto);
        words.put(Keywords.cBREAK, IToken.t_break);
        words.put(Keywords.cCASE, IToken.t_case);
        words.put(Keywords.cCHAR, IToken.t_char);
        words.put(Keywords.cCONST, IToken.t_const);
        words.put(Keywords.cCONTINUE, IToken.t_continue);
        words.put(Keywords.cDEFAULT, IToken.t_default);
        words.put(Keywords.cDO, IToken.t_do);
        words.put(Keywords.cDOUBLE, IToken.t_double);
        words.put(Keywords.cELSE, IToken.t_else);
        words.put(Keywords.cENUM, IToken.t_enum);
        words.put(Keywords.cEXTERN, IToken.t_extern);
        words.put(Keywords.cFLOAT, IToken.t_float);
        words.put(Keywords.cFOR, IToken.t_for);
        words.put(Keywords.cGOTO, IToken.t_goto);
        words.put(Keywords.cIF, IToken.t_if);
        words.put(Keywords.cINLINE, IToken.t_inline);
        words.put(Keywords.cINT, IToken.t_int);
        words.put(Keywords.cLONG, IToken.t_long);
        words.put(Keywords.cREGISTER, IToken.t_register);
        words.put(Keywords.cRETURN, IToken.t_return);
        words.put(Keywords.cSHORT, IToken.t_short);
        words.put(Keywords.cSIGNED, IToken.t_signed);
        words.put(Keywords.cSIZEOF, IToken.t_sizeof);
        words.put(Keywords.cSTATIC, IToken.t_static);
        words.put(Keywords.cSTRUCT, IToken.t_struct);
        words.put(Keywords.cSWITCH, IToken.t_switch);
        words.put(Keywords.cTYPEDEF, IToken.t_typedef);
        words.put(Keywords.cUNION, IToken.t_union);
        words.put(Keywords.cUNSIGNED, IToken.t_unsigned);
        words.put(Keywords.cVOID, IToken.t_void);
        words.put(Keywords.cVOLATILE, IToken.t_volatile);
        words.put(Keywords.cWHILE, IToken.t_while);
        words.put(Keywords.cASM, IToken.t_asm);
	}

        // ANSI C keywords
	private static void addC(CharArrayIntMap ckeywords) {
        ckeywords.put(Keywords.cRESTRICT, IToken.t_restrict);
        ckeywords.put(Keywords.c_BOOL, IToken.t__Bool);
        ckeywords.put(Keywords.c_COMPLEX, IToken.t__Complex);
        ckeywords.put(Keywords.c_IMAGINARY, IToken.t__Imaginary);
	}

	private static void addCpp(CharArrayIntMap cppkeywords) {
        cppkeywords.put(Keywords.cBOOL, IToken.t_bool);
        cppkeywords.put(Keywords.cCATCH, IToken.t_catch);
        cppkeywords.put(Keywords.cCHAR16_T, IToken.t_char16_t);
        cppkeywords.put(Keywords.cCHAR32_T, IToken.t_char32_t);
        cppkeywords.put(Keywords.cCLASS, IToken.t_class);
        cppkeywords.put(Keywords.cCONSTEXPR, IToken.t_constexpr);
        cppkeywords.put(Keywords.cCONST_CAST, IToken.t_const_cast);
        cppkeywords.put(Keywords.cDECLTYPE, IToken.t_decltype);
        cppkeywords.put(Keywords.cDELETE, IToken.t_delete);
        cppkeywords.put(Keywords.cDYNAMIC_CAST, IToken.t_dynamic_cast);
        cppkeywords.put(Keywords.cEXPLICIT, IToken.t_explicit);
        cppkeywords.put(Keywords.cEXPORT, IToken.t_export);
        cppkeywords.put(Keywords.cFALSE, IToken.t_false);
        cppkeywords.put(Keywords.cFRIEND, IToken.t_friend);
        cppkeywords.put(Keywords.cMUTABLE, IToken.t_mutable);
        cppkeywords.put(Keywords.cNAMESPACE, IToken.t_namespace);
        cppkeywords.put(Keywords.cNEW, IToken.t_new);
        cppkeywords.put(Keywords.cNOEXCEPT, IToken.t_noexcept);
        cppkeywords.put(Keywords.cNULLPTR, IToken.t_nullptr);
        cppkeywords.put(Keywords.cOPERATOR, IToken.t_operator);
        cppkeywords.put(Keywords.cPRIVATE, IToken.t_private);
        cppkeywords.put(Keywords.cPROTECTED, IToken.t_protected);
        cppkeywords.put(Keywords.cPUBLIC, IToken.t_public);
        cppkeywords.put(Keywords.cREINTERPRET_CAST, IToken.t_reinterpret_cast);
        cppkeywords.put(Keywords.cSTATIC_ASSERT, IToken.t_static_assert);
        cppkeywords.put(Keywords.cSTATIC_CAST, IToken.t_static_cast);
        cppkeywords.put(Keywords.cTEMPLATE, IToken.t_template);
        cppkeywords.put(Keywords.cTHIS, IToken.t_this);
        cppkeywords.put(Keywords.cTHREAD_LOCAL, IToken.t_thread_local);
        cppkeywords.put(Keywords.cTHROW, IToken.t_throw);
        cppkeywords.put(Keywords.cTRUE, IToken.t_true);
        cppkeywords.put(Keywords.cTRY, IToken.t_try);
        cppkeywords.put(Keywords.cTYPEID, IToken.t_typeid);
        cppkeywords.put(Keywords.cTYPENAME, IToken.t_typename);
        cppkeywords.put(Keywords.cUSING, IToken.t_using);
        cppkeywords.put(Keywords.cVIRTUAL, IToken.t_virtual);
        cppkeywords.put(Keywords.cWCHAR_T, IToken.t_wchar_t);

        // C++ operator alternative
        cppkeywords.put(Keywords.cAND, IToken.tAND);
        cppkeywords.put(Keywords.cAND_EQ, IToken.tAMPERASSIGN);
        cppkeywords.put(Keywords.cBITAND, IToken.tAMPER);
        cppkeywords.put(Keywords.cBITOR, IToken.tBITOR);
        cppkeywords.put(Keywords.cCOMPL, IToken.tBITCOMPLEMENT);
        cppkeywords.put(Keywords.cNOT, IToken.tNOT);
        cppkeywords.put(Keywords.cNOT_EQ, IToken.tNOTEQUAL);
        cppkeywords.put(Keywords.cOR, IToken.tOR);
        cppkeywords.put(Keywords.cOR_EQ, IToken.tBITORASSIGN);
        cppkeywords.put(Keywords.cXOR, IToken.tXOR);
        cppkeywords.put(Keywords.cXOR_EQ, IToken.tXORASSIGN);
	}

	public static void addKeywordsPreprocessor(CharArrayIntMap ppKeywords) {
        // Preprocessor keywords
        ppKeywords.put(Keywords.cIF, IPreprocessorDirective.ppIf);
        ppKeywords.put(Keywords.cIFDEF, IPreprocessorDirective.ppIfdef);
        ppKeywords.put(Keywords.cIFNDEF, IPreprocessorDirective.ppIfndef);
        ppKeywords.put(Keywords.cELIF, IPreprocessorDirective.ppElif);
        ppKeywords.put(Keywords.cELSE, IPreprocessorDirective.ppElse);
        ppKeywords.put(Keywords.cENDIF, IPreprocessorDirective.ppEndif);
        ppKeywords.put(Keywords.cINCLUDE, IPreprocessorDirective.ppInclude);
        ppKeywords.put(Keywords.cDEFINE, IPreprocessorDirective.ppDefine);
        ppKeywords.put(Keywords.cUNDEF, IPreprocessorDirective.ppUndef);
        ppKeywords.put(Keywords.cERROR, IPreprocessorDirective.ppError);
        ppKeywords.put(Keywords.cPRAGMA, IPreprocessorDirective.ppPragma);
        ppKeywords.put(Keywords.cLINE, IPreprocessorDirective.ppIgnore);
    }
}