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