gram.c 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /* Allocate input grammar variables for bison,
  2. Copyright (C) 1984, 1986 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. /* comments for these variables are in gram.h */
  18. int nitems;
  19. int nrules;
  20. int nsyms;
  21. int ntokens;
  22. int nvars;
  23. short *ritem;
  24. short *rlhs;
  25. short *rrhs;
  26. short *rprec;
  27. short *sprec;
  28. short *rassoc;
  29. short *sassoc;
  30. short *token_translations;
  31. short *rline;
  32. int start_symbol;
  33. int translations;
  34. int max_user_token_number;
  35. int semantic_parser;
  36. int pure_parser;
  37. int error_token_number;