]> www.ginac.de Git - ginac.git/blob - ginsh/ginsh.h
- ginsh can handle multiple input files which are specified on the command line
[ginac.git] / ginsh / ginsh.h
1 /** @file ginsh.h
2  *
3  *  Global definitions for ginsh.
4  *
5  *  GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany
6  *
7  *  This program is free software; you can redistribute it and/or modify
8  *  it under the terms of the GNU General Public License as published by
9  *  the Free Software Foundation; either version 2 of the License, or
10  *  (at your option) any later version.
11  *
12  *  This program is distributed in the hope that it will be useful,
13  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *  GNU General Public License for more details.
16  *
17  *  You should have received a copy of the GNU General Public License
18  *  along with this program; if not, write to the Free Software
19  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20  */
21
22 #ifndef GINSH_H
23 #define GINSH_H
24
25 // yacc stack type
26 #define YYSTYPE ex
27
28 // lex functions/variables
29 extern int yyerror(char *s);
30 extern int yylex(void);
31 #if YYTEXT_POINTER
32 extern char *yytext;
33 #else
34 extern char yytext[];
35 #endif
36 extern FILE *yyin;
37
38 // List of input files to be processed
39 extern int num_files;
40 extern char **file_list;
41
42 // Table of all used symbols
43 typedef map<string, symbol> sym_tab;
44 extern sym_tab syms;
45
46 #endif