symtab.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* Definitions for symtab.c and callers, part of bison,
  2. Copyright (C) 1984 Bob Corbett and Free Software Foundation, Inc.
  3. BISON is distributed in the hope that it will be useful, but WITHOUT ANY
  4. WARRANTY. No author or distributor accepts responsibility to anyone
  5. for the consequences of using it or for whether it serves any
  6. particular purpose or works at all, unless he says so in writing.
  7. Refer to the BISON General Public License for full details.
  8. Everyone is granted permission to copy, modify and redistribute BISON,
  9. but only under the conditions described in the BISON General Public
  10. License. A copy of this license is supposed to have been given to you
  11. along with BISON so you can know your rights and responsibilities. It
  12. should be in a file named COPYING. Among other things, the copyright
  13. notice and this notice must be preserved on all copies.
  14. In other words, you are welcome to use, share and improve this program.
  15. You are forbidden to forbid anyone else to use, share and improve
  16. what you give them. Help stamp out software-hoarding! */
  17. #define TABSIZE 1009
  18. /* symbol classes */
  19. #define SUNKNOWN 0
  20. #define STOKEN 1
  21. #define SNTERM 2
  22. typedef
  23. struct bucket
  24. {
  25. struct bucket *link;
  26. struct bucket *next;
  27. char *tag;
  28. char *type_name;
  29. short value;
  30. short prec;
  31. short assoc;
  32. short user_token_number;
  33. char class;
  34. }
  35. bucket;
  36. extern bucket **symtab;
  37. extern bucket *firstsymbol;
  38. extern bucket *getsym();