109 lines
2.9 KiB
Plaintext
109 lines
2.9 KiB
Plaintext
|
%{
|
||
|
/* Command-line: gperf -p -j1 -g -o -t -N is_reserved_word -k1,4,$,7 gplus.gperf */
|
||
|
%}
|
||
|
struct resword { char *name; short token; enum rid rid;};
|
||
|
%%
|
||
|
__alignof, ALIGNOF, NORID
|
||
|
__alignof__, ALIGNOF, NORID
|
||
|
__asm, GCC_ASM_KEYWORD, NORID
|
||
|
__asm__, GCC_ASM_KEYWORD, NORID
|
||
|
__attribute, ATTRIBUTE, NORID
|
||
|
__attribute__, ATTRIBUTE, NORID
|
||
|
__complex, TYPESPEC, RID_COMPLEX
|
||
|
__complex__, TYPESPEC, RID_COMPLEX
|
||
|
__const, CV_QUALIFIER, RID_CONST
|
||
|
__const__, CV_QUALIFIER, RID_CONST
|
||
|
__extension__, EXTENSION, NORID
|
||
|
__imag, IMAGPART, NORID
|
||
|
__imag__, IMAGPART, NORID
|
||
|
__inline, SCSPEC, RID_INLINE
|
||
|
__inline__, SCSPEC, RID_INLINE
|
||
|
__label__, LABEL, NORID
|
||
|
__null, CONSTANT, RID_NULL
|
||
|
__real, REALPART, NORID
|
||
|
__real__, REALPART, NORID
|
||
|
__signature__, AGGR, RID_SIGNATURE /* Extension */,
|
||
|
__signed, TYPESPEC, RID_SIGNED
|
||
|
__signed__, TYPESPEC, RID_SIGNED
|
||
|
__sigof__, SIGOF, NORID /* Extension */,
|
||
|
__typeof, TYPEOF, NORID
|
||
|
__typeof__, TYPEOF, NORID
|
||
|
__volatile, CV_QUALIFIER, RID_VOLATILE
|
||
|
__volatile__, CV_QUALIFIER, RID_VOLATILE
|
||
|
__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,
|
||
|
const, CV_QUALIFIER, RID_CONST,
|
||
|
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,
|
||
|
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,
|
||
|
return, RETURN, NORID,
|
||
|
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,
|
||
|
volatile, CV_QUALIFIER, RID_VOLATILE,
|
||
|
while, WHILE, NORID,
|
||
|
xor, '^', NORID,
|
||
|
xor_eq, ASSIGN, NORID,
|