FILES.H 2.0 KB

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