1da2e3ebdSchin /***********************************************************************
2da2e3ebdSchin *                                                                      *
3da2e3ebdSchin *               This software is part of the ast package               *
4*b30d1939SAndy Fiddaman *          Copyright (c) 1986-2011 AT&T Intellectual Property          *
5da2e3ebdSchin *                      and is licensed under the                       *
6*b30d1939SAndy Fiddaman *                 Eclipse Public License, Version 1.0                  *
77c2fbfb3SApril Chin *                    by AT&T Intellectual Property                     *
8da2e3ebdSchin *                                                                      *
9da2e3ebdSchin *                A copy of the License is available at                 *
10*b30d1939SAndy Fiddaman *          http://www.eclipse.org/org/documents/epl-v10.html           *
11*b30d1939SAndy Fiddaman *         (with md5 checksum b35adb5213ca9657e911e9befb180842)         *
12da2e3ebdSchin *                                                                      *
13da2e3ebdSchin *              Information and Software Systems Research               *
14da2e3ebdSchin *                            AT&T Research                             *
15da2e3ebdSchin *                           Florham Park NJ                            *
16da2e3ebdSchin *                                                                      *
17da2e3ebdSchin *                 Glenn Fowler <gsf@research.att.com>                  *
18da2e3ebdSchin *                                                                      *
19da2e3ebdSchin ***********************************************************************/
20da2e3ebdSchin #pragma prototyped
21da2e3ebdSchin /*
22da2e3ebdSchin  * Glenn Fowler
23da2e3ebdSchin  * AT&T Research
24da2e3ebdSchin  *
25da2e3ebdSchin  * preprocessor C language reserved keyword token table
26da2e3ebdSchin  * for use by PP_COMPILE
27da2e3ebdSchin  *
28da2e3ebdSchin  * "-" keywords entered without SYM_KEYWORD
29da2e3ebdSchin  * "+" keywords entered without SYM_KEYWORD unless PP_PLUSPLUS was set
30da2e3ebdSchin  * upper case are pseudo keywords for PP_RESERVED token classes
31da2e3ebdSchin  */
33da2e3ebdSchin #include "pplib.h"
34da2e3ebdSchin #include "ppkey.h"
36da2e3ebdSchin struct ppkeyword	ppkey[] =
37da2e3ebdSchin {
38da2e3ebdSchin 	"auto",		T_AUTO,
39da2e3ebdSchin 	"break",	T_BREAK,
40da2e3ebdSchin 	"case",		T_CASE,
41da2e3ebdSchin 	"char",		T_CHAR,
42da2e3ebdSchin 	"continue",	T_CONTINUE,
43da2e3ebdSchin 	"default",	T_DEFAULT,
44da2e3ebdSchin 	"do",		T_DO,
45da2e3ebdSchin 	"double",	T_DOUBLE_T,
46da2e3ebdSchin 	"else",		T_ELSE,
47da2e3ebdSchin 	"extern",	T_EXTERN,
48da2e3ebdSchin 	"float",	T_FLOAT_T,
49da2e3ebdSchin 	"for",		T_FOR,
50da2e3ebdSchin 	"goto",		T_GOTO,
51da2e3ebdSchin 	"if",		T_IF,
52da2e3ebdSchin 	"int",		T_INT,
53da2e3ebdSchin 	"long",		T_LONG,
54da2e3ebdSchin 	"register",	T_REGISTER,
55da2e3ebdSchin 	"return",	T_RETURN,
56da2e3ebdSchin 	"short",	T_SHORT,
57da2e3ebdSchin 	"sizeof",	T_SIZEOF,
58da2e3ebdSchin 	"static",	T_STATIC,
59da2e3ebdSchin 	"struct",	T_STRUCT,
60da2e3ebdSchin 	"switch",	T_SWITCH,
61da2e3ebdSchin 	"typedef",	T_TYPEDEF,
62da2e3ebdSchin 	"union",	T_UNION,
63da2e3ebdSchin 	"unsigned",	T_UNSIGNED,
64da2e3ebdSchin 	"while",	T_WHILE,
65da2e3ebdSchin 	"-const",	T_CONST,
66da2e3ebdSchin 	"-enum",	T_ENUM,
67da2e3ebdSchin 	"-signed",	T_SIGNED,
68da2e3ebdSchin 	"-void",	T_VOID,
69da2e3ebdSchin 	"-volatile",	T_VOLATILE,
70da2e3ebdSchin 	"+asm",		T_ASM,
71da2e3ebdSchin 	"+class",	T_CLASS,
72da2e3ebdSchin 	"+delete",	T_DELETE,
73da2e3ebdSchin 	"+friend",	T_FRIEND,
74da2e3ebdSchin 	"+inline",	T_INLINE,
75da2e3ebdSchin 	"+new",		T_NEW,
76da2e3ebdSchin 	"+operator",	T_OPERATOR,
77da2e3ebdSchin 	"+overload",	T_OVERLOAD,
78da2e3ebdSchin 	"+private",	T_PRIVATE,
79da2e3ebdSchin 	"+public",	T_PUBLIC,
80da2e3ebdSchin 	"+this",	T_THIS,
81da2e3ebdSchin 	"+virtual",	T_VIRTUAL,
82da2e3ebdSchin 	"-and",		T_ANDAND,
83da2e3ebdSchin 	"-and_eq",	T_ANDEQ,
84da2e3ebdSchin 	"-bitand",	'&',
85da2e3ebdSchin 	"-bitor",	'|',
86da2e3ebdSchin 	"-bool",	T_BOOL,
87da2e3ebdSchin 	"-catch",	T_CATCH,
88da2e3ebdSchin 	"-compl",	'~',
89da2e3ebdSchin 	"-const_cast",	T_CONST_CAST,
90da2e3ebdSchin 	"-dynamic_cast",T_DYNAMIC_CAST,
91da2e3ebdSchin 	"-explicit",	T_EXPLICIT,
92da2e3ebdSchin 	"-false",	T_FALSE,
93da2e3ebdSchin 	"-mutable",	T_MUTABLE,
94da2e3ebdSchin 	"-namespace",	T_NAMESPACE,
95da2e3ebdSchin 	"-not",		'!',
96da2e3ebdSchin 	"-not_eq",	T_NE,
97da2e3ebdSchin 	"-or",		T_OROR,
98da2e3ebdSchin 	"-or_eq",	T_OREQ,
99da2e3ebdSchin 	"-protected",	T_PROTECTED,
100da2e3ebdSchin 	"-reinterpret_cast", T_REINTERPRET_CAST,
101da2e3ebdSchin 	"-static_cast",	T_STATIC_CAST,
102da2e3ebdSchin 	"-template",	T_TEMPLATE,
103da2e3ebdSchin 	"-throw",	T_THROW,
104da2e3ebdSchin 	"-true",	T_TRUE,
105da2e3ebdSchin 	"-try",		T_TRY,
106da2e3ebdSchin 	"-typeid",	T_TYPEID,
107da2e3ebdSchin 	"-using",	T_USING,
108da2e3ebdSchin 	"-wchar_t",	T_WCHAR_T,
109da2e3ebdSchin 	"-xor",		'^',
110da2e3ebdSchin 	"-xor_eq",	T_XOREQ,
111da2e3ebdSchin 	"-int64",	T_INT64,
112da2e3ebdSchin 	"-NOISES",	T_NOISES,
113da2e3ebdSchin 	"-NOISE",	T_NOISE,
114da2e3ebdSchin 	"-GROUP",	T_X_GROUP,
115da2e3ebdSchin 	"-LINE",	T_X_LINE,
116da2e3ebdSchin 	"-STATEMENT",	T_X_STATEMENT,
117da2e3ebdSchin 	0, 0, 0
118da2e3ebdSchin };