SYMTAB.H 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* Definitions for symtab.c and callers, part of bison,
  2. Copyright (C) 1984, 1989 Free Software Foundation, Inc.
  3. This file is part of Bison, the GNU Compiler Compiler.
  4. Bison is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 1, or (at your option)
  7. any later version.
  8. Bison is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with Bison; see the file COPYING. If not, write to
  14. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
  15. #define TABSIZE 1009
  16. /* symbol classes */
  17. #define SUNKNOWN 0
  18. #define STOKEN 1
  19. #define SNTERM 2
  20. typedef
  21. struct bucket
  22. {
  23. struct bucket *link;
  24. struct bucket *next;
  25. char *tag;
  26. char *type_name;
  27. short value;
  28. short prec;
  29. short assoc;
  30. short user_token_number;
  31. char class;
  32. }
  33. bucket;
  34. extern bucket **symtab;
  35. extern bucket *firstsymbol;
  36. extern bucket *getsym();