]> git.saurik.com Git - bison.git/blame_incremental - src/files.h
* src/main.c (main): Initialize the macro table.
[bison.git] / src / files.h
... / ...
CommitLineData
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/* File name specified with -o for the output file, or 0 if no -o. */
28extern char *spec_outfile;
29
30/* For -a. */
31extern char *spec_name_prefix;
32
33/* File name pfx specified with -b, or 0 if no -b. */
34extern char *spec_file_prefix;
35
36
37/* Read grammar specifications. */
38extern FILE *finput;
39
40/* Output all the action code; precise form depends on which parser. */
41extern struct obstack action_obstack;
42
43/* Output the tables and the parser and also contains all the %{
44 ... %} definitions. */
45extern struct obstack table_obstack;
46
47/* optionally output #define's for token numbers. */
48extern struct obstack defines_obstack;
49
50/* If semantic parser, output a .h file that defines YYSTYPE... */
51extern struct obstack attrs_obstack;
52
53/* ... and output yyguard, containing all the guard code. */
54extern struct obstack guard_obstack;
55
56/* The verbose output. */
57extern struct obstack output_obstack;
58
59/* The VCG graph output. */
60extern struct obstack graph_obstack;
61
62extern char *infile;
63extern char *attrsfile;
64
65extern const char *src_extension;
66extern const char *header_extension;
67
68void open_files PARAMS((void));
69
70void output_files PARAMS((void));
71
72FILE *xfopen PARAMS ((const char *name, const char *mode));
73int xfclose PARAMS ((FILE *ptr));
74
75const char *skeleton_find PARAMS ((const char *envvar,
76 const char *skeleton_name));
77#endif /* !FILES_H_ */