1990-06-19 05:31:11 +09:00
|
|
|
%{
|
|
|
|
/* Command-line: gperf -p -j1 -i 1 -g -o -t -N is_reserved_word -k1,3,$ c-parse.gperf */
|
|
|
|
%}
|
|
|
|
struct resword { char *name; short token; enum rid rid; };
|
|
|
|
%%
|
1993-04-10 07:07:39 +08:00
|
|
|
@class, CLASS, NORID
|
|
|
|
@compatibility_alias, ALIAS, NORID
|
|
|
|
@defs, DEFS, NORID
|
|
|
|
@encode, ENCODE, NORID
|
|
|
|
@end, END, NORID
|
|
|
|
@implementation, IMPLEMENTATION, NORID
|
|
|
|
@interface, INTERFACE, NORID
|
|
|
|
@private, PRIVATE, NORID
|
|
|
|
@protected, PROTECTED, NORID
|
|
|
|
@protocol, PROTOCOL, NORID
|
|
|
|
@public, PUBLIC, NORID
|
|
|
|
@selector, SELECTOR, NORID
|
1990-06-19 05:31:11 +09:00
|
|
|
__alignof, ALIGNOF, NORID
|
|
|
|
__alignof__, ALIGNOF, NORID
|
1992-03-20 02:32:44 +08:00
|
|
|
__asm, ASM_KEYWORD, NORID
|
|
|
|
__asm__, ASM_KEYWORD, NORID
|
1990-06-19 05:31:11 +09:00
|
|
|
__attribute, ATTRIBUTE, NORID
|
|
|
|
__attribute__, ATTRIBUTE, NORID
|
1993-03-05 01:59:12 +08:00
|
|
|
__complex, TYPESPEC, RID_COMPLEX
|
|
|
|
__complex__, TYPESPEC, RID_COMPLEX
|
1990-06-19 05:31:11 +09:00
|
|
|
__const, TYPE_QUAL, RID_CONST
|
|
|
|
__const__, TYPE_QUAL, RID_CONST
|
|
|
|
__extension__, EXTENSION, NORID
|
1993-03-26 02:02:30 +08:00
|
|
|
__imag, IMAGPART, NORID
|
|
|
|
__imag__, IMAGPART, NORID
|
1990-06-19 05:31:11 +09:00
|
|
|
__inline, SCSPEC, RID_INLINE
|
|
|
|
__inline__, SCSPEC, RID_INLINE
|
1993-03-05 01:59:12 +08:00
|
|
|
__iterator, SCSPEC, RID_ITERATOR
|
1993-03-02 10:13:14 +08:00
|
|
|
__iterator__, SCSPEC, RID_ITERATOR
|
1990-06-19 05:31:11 +09:00
|
|
|
__label__, LABEL, NORID
|
1993-03-26 02:02:30 +08:00
|
|
|
__real, REALPART, NORID
|
|
|
|
__real__, REALPART, NORID
|
1990-06-19 05:31:11 +09:00
|
|
|
__signed, TYPESPEC, RID_SIGNED
|
|
|
|
__signed__, TYPESPEC, RID_SIGNED
|
|
|
|
__typeof, TYPEOF, NORID
|
|
|
|
__typeof__, TYPEOF, NORID
|
|
|
|
__volatile, TYPE_QUAL, RID_VOLATILE
|
|
|
|
__volatile__, TYPE_QUAL, RID_VOLATILE
|
1992-03-20 02:32:44 +08:00
|
|
|
asm, ASM_KEYWORD, NORID
|
1990-06-19 05:31:11 +09:00
|
|
|
auto, SCSPEC, RID_AUTO
|
|
|
|
break, BREAK, NORID
|
1993-04-10 07:07:39 +08:00
|
|
|
bycopy, TYPE_QUAL, RID_BYCOPY
|
1990-06-19 05:31:11 +09:00
|
|
|
case, CASE, NORID
|
|
|
|
char, TYPESPEC, RID_CHAR
|
|
|
|
const, TYPE_QUAL, RID_CONST
|
|
|
|
continue, CONTINUE, NORID
|
|
|
|
default, DEFAULT, NORID
|
|
|
|
do, DO, NORID
|
|
|
|
double, TYPESPEC, RID_DOUBLE
|
|
|
|
else, ELSE, NORID
|
|
|
|
enum, ENUM, NORID
|
|
|
|
extern, SCSPEC, RID_EXTERN
|
|
|
|
float, TYPESPEC, RID_FLOAT
|
|
|
|
for, FOR, NORID
|
|
|
|
goto, GOTO, NORID
|
1993-04-10 07:07:39 +08:00
|
|
|
id, OBJECTNAME, RID_ID
|
1990-06-19 05:31:11 +09:00
|
|
|
if, IF, NORID
|
1993-04-10 07:07:39 +08:00
|
|
|
in, TYPE_QUAL, RID_IN
|
|
|
|
inout, TYPE_QUAL, RID_INOUT
|
1990-06-19 05:31:11 +09:00
|
|
|
inline, SCSPEC, RID_INLINE
|
|
|
|
int, TYPESPEC, RID_INT
|
|
|
|
long, TYPESPEC, RID_LONG
|
1993-04-10 07:07:39 +08:00
|
|
|
oneway, TYPE_QUAL, RID_ONEWAY
|
|
|
|
out, TYPE_QUAL, RID_OUT
|
1990-06-19 05:31:11 +09:00
|
|
|
register, SCSPEC, RID_REGISTER
|
|
|
|
return, RETURN, NORID
|
|
|
|
short, TYPESPEC, RID_SHORT
|
|
|
|
signed, TYPESPEC, RID_SIGNED
|
|
|
|
sizeof, SIZEOF, NORID
|
|
|
|
static, SCSPEC, RID_STATIC
|
|
|
|
struct, STRUCT, NORID
|
|
|
|
switch, SWITCH, NORID
|
|
|
|
typedef, SCSPEC, RID_TYPEDEF
|
|
|
|
typeof, TYPEOF, NORID
|
|
|
|
union, UNION, NORID
|
|
|
|
unsigned, TYPESPEC, RID_UNSIGNED
|
|
|
|
void, TYPESPEC, RID_VOID
|
|
|
|
volatile, TYPE_QUAL, RID_VOLATILE
|
|
|
|
while, WHILE, NORID
|