1996-09-18 05:35:50 +00:00
|
|
|
%{
|
1999-10-16 06:09:09 +00:00
|
|
|
/* Command-line: gperf -L KR-C -F ', 0, 0' -p -j1 -g -o -t -N is_reserved_word -k1,4,$,7 gplus.gperf */
|
1996-09-18 05:35:50 +00:00
|
|
|
%}
|
1999-10-16 06:09:09 +00:00
|
|
|
struct resword { const char *name; short token; enum rid rid;};
|
1996-09-18 05:35:50 +00:00
|
|
|
%%
|
|
|
|
__alignof, ALIGNOF, NORID
|
|
|
|
__alignof__, ALIGNOF, NORID
|
1999-08-26 09:30:50 +00:00
|
|
|
__asm, ASM_KEYWORD, NORID
|
|
|
|
__asm__, ASM_KEYWORD, NORID
|
1996-09-18 05:35:50 +00:00
|
|
|
__attribute, ATTRIBUTE, NORID
|
|
|
|
__attribute__, ATTRIBUTE, NORID
|
1999-08-26 09:30:50 +00:00
|
|
|
__complex, TYPESPEC, RID_COMPLEX
|
|
|
|
__complex__, TYPESPEC, RID_COMPLEX
|
|
|
|
__const, CV_QUALIFIER, RID_CONST
|
|
|
|
__const__, CV_QUALIFIER, RID_CONST
|
1996-09-18 05:35:50 +00:00
|
|
|
__extension__, EXTENSION, NORID
|
1999-08-26 09:30:50 +00:00
|
|
|
__imag, IMAGPART, NORID
|
|
|
|
__imag__, IMAGPART, NORID
|
1996-09-18 05:35:50 +00:00
|
|
|
__inline, SCSPEC, RID_INLINE
|
|
|
|
__inline__, SCSPEC, RID_INLINE
|
|
|
|
__label__, LABEL, NORID
|
1999-08-26 09:30:50 +00:00
|
|
|
__null, CONSTANT, RID_NULL
|
|
|
|
__real, REALPART, NORID
|
|
|
|
__real__, REALPART, NORID
|
1999-10-16 06:09:09 +00:00
|
|
|
__restrict, CV_QUALIFIER, RID_RESTRICT
|
|
|
|
__restrict__, CV_QUALIFIER, RID_RESTRICT
|
1996-09-18 05:35:50 +00:00
|
|
|
__signature__, AGGR, RID_SIGNATURE /* Extension */,
|
|
|
|
__signed, TYPESPEC, RID_SIGNED
|
|
|
|
__signed__, TYPESPEC, RID_SIGNED
|
|
|
|
__sigof__, SIGOF, NORID /* Extension */,
|
|
|
|
__typeof, TYPEOF, NORID
|
|
|
|
__typeof__, TYPEOF, NORID
|
1999-08-26 09:30:50 +00:00
|
|
|
__volatile, CV_QUALIFIER, RID_VOLATILE
|
|
|
|
__volatile__, CV_QUALIFIER, RID_VOLATILE
|
1996-09-18 05:35:50 +00:00
|
|
|
__wchar_t, TYPESPEC, RID_WCHAR /* Unique to ANSI C++ */,
|
|
|
|
asm, ASM_KEYWORD, NORID,
|
|
|
|
and, ANDAND, NORID,
|
|
|
|
and_eq, ASSIGN, NORID,
|
|
|
|
auto, SCSPEC, RID_AUTO,
|
|
|
|
bitand, '&', NORID,
|
|
|
|
bitor, '|', NORID,
|
|
|
|
bool, TYPESPEC, RID_BOOL,
|
|
|
|
break, BREAK, NORID,
|
|
|
|
case, CASE, NORID,
|
|
|
|
catch, CATCH, NORID,
|
|
|
|
char, TYPESPEC, RID_CHAR,
|
|
|
|
class, AGGR, RID_CLASS,
|
|
|
|
compl, '~', NORID,
|
1999-08-26 09:30:50 +00:00
|
|
|
const, CV_QUALIFIER, RID_CONST,
|
1996-09-18 05:35:50 +00:00
|
|
|
const_cast, CONST_CAST, NORID,
|
|
|
|
continue, CONTINUE, NORID,
|
|
|
|
default, DEFAULT, NORID,
|
|
|
|
delete, DELETE, NORID,
|
|
|
|
do, DO, NORID,
|
|
|
|
double, TYPESPEC, RID_DOUBLE,
|
|
|
|
dynamic_cast, DYNAMIC_CAST, NORID,
|
|
|
|
else, ELSE, NORID,
|
|
|
|
enum, ENUM, NORID,
|
|
|
|
explicit, SCSPEC, RID_EXPLICIT,
|
1999-10-16 06:09:09 +00:00
|
|
|
export, SCSPEC, RID_EXPORT,
|
1996-09-18 05:35:50 +00:00
|
|
|
extern, SCSPEC, RID_EXTERN,
|
|
|
|
false, CXX_FALSE, NORID,
|
|
|
|
float, TYPESPEC, RID_FLOAT,
|
|
|
|
for, FOR, NORID,
|
|
|
|
friend, SCSPEC, RID_FRIEND,
|
|
|
|
goto, GOTO, NORID,
|
|
|
|
if, IF, NORID,
|
|
|
|
inline, SCSPEC, RID_INLINE,
|
|
|
|
int, TYPESPEC, RID_INT,
|
|
|
|
long, TYPESPEC, RID_LONG,
|
|
|
|
mutable, SCSPEC, RID_MUTABLE,
|
|
|
|
namespace, NAMESPACE, NORID,
|
|
|
|
new, NEW, NORID,
|
|
|
|
not, '!', NORID,
|
|
|
|
not_eq, EQCOMPARE, NORID,
|
|
|
|
operator, OPERATOR, NORID,
|
|
|
|
or, OROR, NORID,
|
|
|
|
or_eq, ASSIGN, NORID,
|
|
|
|
private, VISSPEC, RID_PRIVATE,
|
|
|
|
protected, VISSPEC, RID_PROTECTED,
|
|
|
|
public, VISSPEC, RID_PUBLIC,
|
|
|
|
register, SCSPEC, RID_REGISTER,
|
|
|
|
reinterpret_cast, REINTERPRET_CAST, NORID,
|
1999-10-16 06:09:09 +00:00
|
|
|
return, RETURN_KEYWORD, NORID,
|
1996-09-18 05:35:50 +00:00
|
|
|
short, TYPESPEC, RID_SHORT,
|
|
|
|
signature, AGGR, RID_SIGNATURE /* Extension */,
|
|
|
|
signed, TYPESPEC, RID_SIGNED,
|
|
|
|
sigof, SIGOF, NORID /* Extension */,
|
|
|
|
sizeof, SIZEOF, NORID,
|
|
|
|
static, SCSPEC, RID_STATIC,
|
|
|
|
static_cast, STATIC_CAST, NORID,
|
|
|
|
struct, AGGR, RID_RECORD,
|
|
|
|
switch, SWITCH, NORID,
|
|
|
|
template, TEMPLATE, RID_TEMPLATE,
|
|
|
|
this, THIS, NORID,
|
|
|
|
throw, THROW, NORID,
|
|
|
|
true, CXX_TRUE, NORID,
|
|
|
|
try, TRY, NORID,
|
|
|
|
typedef, SCSPEC, RID_TYPEDEF,
|
|
|
|
typename, TYPENAME_KEYWORD, NORID,
|
|
|
|
typeid, TYPEID, NORID,
|
|
|
|
typeof, TYPEOF, NORID,
|
|
|
|
union, AGGR, RID_UNION,
|
|
|
|
unsigned, TYPESPEC, RID_UNSIGNED,
|
|
|
|
using, USING, NORID,
|
|
|
|
virtual, SCSPEC, RID_VIRTUAL,
|
|
|
|
void, TYPESPEC, RID_VOID,
|
1999-08-26 09:30:50 +00:00
|
|
|
volatile, CV_QUALIFIER, RID_VOLATILE,
|
1996-09-18 05:35:50 +00:00
|
|
|
while, WHILE, NORID,
|
|
|
|
xor, '^', NORID,
|
|
|
|
xor_eq, ASSIGN, NORID,
|