]> git.saurik.com Git - bison.git/blob - src/files.h
a6c8875caf103b42a8e28d6145b59f7ef015f4fd
[bison.git] / src / files.h
1 #ifndef FILES_H_
2 # define FILES_H_
3 /* File names and variables for bison,
4 Copyright 1984, 1989, 2000 Free Software Foundation, Inc.
5
6 This file is part of Bison, the GNU Compiler Compiler.
7
8 Bison is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
11 any later version.
12
13 Bison is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with Bison; see the file COPYING. If not, write to
20 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA. */
22
23 /* These two should be pathnames for opening the sample parser files.
24 When bison is installed, they should be absolute pathnames.
25 XPFILE1 and XPFILE2 normally come from config.h. */
26
27 #define PFILE XPFILE /* Simple parser */
28 #define PFILE1 XPFILE1 /* Semantic parser */
29
30 extern FILE *finput; /* read grammar specifications */
31 extern FILE *foutput; /* optionally output messages describing the actions taken */
32 extern FILE *fdefines; /* optionally output #define's for token numbers. */
33 extern FILE *ftable; /* output the tables and the parser */
34 /* and also contains all the %{ ... %} definitions. */
35 extern FILE *fguard; /* if semantic parser, output yyguard, containing all the guard code */
36 extern FILE *fparser; /* read the parser to copy into ftable */
37
38 /* File name specified with -o for the output file, or 0 if no -o. */
39 extern char *spec_outfile;
40
41 extern char *spec_name_prefix; /* for -a, from getargs.c */
42
43 /* File name pfx specified with -b, or 0 if no -b. */
44 extern char *spec_file_prefix;
45
46 /* Output all the action code; precise form depends on which parser. */
47 extern struct obstack action_obstack;
48
49 /* If semantic parser, output a .h file that defines YYSTYPE */
50 extern struct obstack attrs_obstack;
51
52 extern char *infile;
53 extern int lineno;
54 extern char *outfile;
55 extern char *defsfile;
56 extern char *tabfile;
57 extern char *attrsfile;
58 extern char *guardfile;
59 extern char *actfile;
60
61 void open_files PARAMS((void));
62 void open_extra_files PARAMS((void));
63
64 void done PARAMS((void));
65 #endif /* !FILES_H_ */