files.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* File names and variables for 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. /* These two should be pathnames for opening the sample parser files.
  18. When bison is installed, they should be absolute pathnames.
  19. XPFILE1 and XPFILE2 normally come from the Makefile. */
  20. #define PFILE XPFILE /* Simple parser */
  21. #define PFILE1 XPFILE1 /* Semantic parser */
  22. extern FILE *finput; /* read grammar specifications */
  23. extern FILE *foutput; /* optionally output messages describing the actions taken */
  24. extern FILE *fdefines; /* optionally output #define's for token numbers. */
  25. extern FILE *ftable; /* output the tables and the parser */
  26. extern FILE *fattrs; /* if semantic parser, output a .h file that defines YYSTYPE */
  27. /* and also contains all the %{ ... %} definitions. */
  28. extern FILE *fguard; /* if semantic parser, output yyguard, containing all the guard code */
  29. extern FILE *faction; /* output all the action code; precise form depends on which parser */
  30. extern FILE *fparser; /* read the parser to copy into ftable */
  31. /* File name specified with -o for the output file, or 0 if no -o. */
  32. extern char *spec_outfile;
  33. extern char *infile;
  34. extern char *outfile;
  35. extern char *defsfile;
  36. extern char *tabfile;
  37. extern char *attrsfile;
  38. extern char *guardfile;
  39. extern char *actfile;
  40. /* JF nobody seems to care about these
  41. extern char *pfile;
  42. extern char *pfile1; */