ham@Neon.Stanford.EDU (Peter R. Ham) (09/02/89)
I removed my old version of gperf and am having problems rebuilding it with what appears to be an out of date library. Could someone just run gperf on the following file and send me the output. I'm trying to add a keyword to the gcc front end again. Thanks. %{ /* Command-line: gperf -p -j1 -g -o -t -N is_reserved_word c-parse.gperf */ %} struct resword { char *name; short token; enum rid rid; }; %% __alignof, ALIGNOF, NORID __asm, ASM, NORID __const, TYPE_QUAL, RID_CONST __inline, SCSPEC, RID_INLINE __typeof, TYPEOF, NORID __volatile, TYPE_QUAL, RID_VOLATILE asm, ASM, NORID auto, SCSPEC, RID_AUTO break, BREAK, NORID 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 if, IF, NORID inline, SCSPEC, RID_INLINE int, TYPESPEC, RID_INT long, TYPESPEC, RID_LONG 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 shared, SCSPEC, RID_SHARED -- Peter Ham PO Box 3430 (h)(415) 324-9645 MS Computer Science Student Stanford, CA ham@polya.stanford.edu Stanford University 94309 (o)(415) 723-2067