gram.c 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* Allocate input grammar variables for bison,
  2. Copyright (C) 1984, 1986, 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 2, 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. /* comments for these variables are in gram.h */
  16. int nitems;
  17. int nrules;
  18. int nsyms;
  19. int ntokens;
  20. int nvars;
  21. short *ritem;
  22. short *rlhs;
  23. short *rrhs;
  24. short *rprec;
  25. short *rprecsym;
  26. short *sprec;
  27. short *rassoc;
  28. short *sassoc;
  29. short *token_translations;
  30. short *rline;
  31. int start_symbol;
  32. int translations;
  33. int max_user_token_number;
  34. int semantic_parser;
  35. int pure_parser;
  36. int error_token_number;
  37. /* This is to avoid linker problems which occur on VMS when using GCC,
  38. when the file in question contains data definitions only. */
  39. void
  40. dummy()
  41. {
  42. }