X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/f282676b7e6c9ae1b66233dbfc522bb685c3ece2..fbe01355c8bc8e2fd7314028008564dfa6e36647:/src/symtab.h diff --git a/src/symtab.h b/src/symtab.h index 354fb8fd..4ebc4a1a 100644 --- a/src/symtab.h +++ b/src/symtab.h @@ -1,5 +1,5 @@ /* Definitions for symtab.c and callers, part of bison, - Copyright (C) 1984, 1989, 1992, 2000 Free Software Foundation, Inc. + Copyright 1984, 1989, 1992, 2000, 2001 Free Software Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. @@ -33,13 +33,18 @@ typedef enum nterm_sym /* non-terminal */ } symbol_class; +#define SUNDEF -1 /* For undefined user number. */ #define SALIAS -9991 /* for symbol generated with an alias */ typedef struct bucket { + /* Needed for the hash table. */ struct bucket *link; struct bucket *next; + /* The line it was found in. */ + short line; + /* The key, name of the symbol. */ char *tag; /* Its type. */ @@ -48,10 +53,10 @@ typedef struct bucket short prec; associativity assoc; short user_token_number; - /* special value SALIAS in the identifier half of the - identifier-symbol pair for an alias */ + /* Points to the other in the identifier-symbol pair for an + alias. Special value SALIAS in the identifier half of the + identifier-symbol pair for an alias. */ struct bucket *alias; - /* points to the other in the identifier-symbol pair for an alias */ symbol_class class; } bucket;