/* Definitions for symtab.c and callers, part of Bison.
- Copyright (C) 1984, 1989, 1992, 2000, 2001, 2002, 2004, 2005
+ Copyright (C) 1984, 1989, 1992, 2000, 2001, 2002, 2004, 2005, 2006
Free Software Foundation, Inc.
This file is part of Bison, the GNU Compiler Compiler.
const char *destructor;
location destructor_location;
- /* Does not own the memory. */
+ /* Printer. */
const char *printer;
location printer_location;
identifier-symbol pair for an alias. */
symbol *alias;
symbol_class class;
+ bool declared;
};
/* Undefined user number. */
/* Print a symbol (for debugging). */
void symbol_print (symbol *s, FILE *f);
+/* Fetch (or create) the symbol associated to KEY. */
+symbol *symbol_from_uniqstr (const uniqstr key, location loc);
+
/* Fetch (or create) the symbol associated to KEY. */
symbol *symbol_get (const char *key, location loc);
void symbol_precedence_set (symbol *sym, int prec, assoc a, location loc);
/* Set the CLASS associated with SYM. */
-void symbol_class_set (symbol *sym, symbol_class class, location loc);
+void symbol_class_set (symbol *sym, symbol_class class, location loc,
+ bool declaring);
/* Set the USER_TOKEN_NUMBER associated with SYM. */
void symbol_user_token_number_set (symbol *sym, int user_number, location loc);