00001 // $Id: parser-use_8h-source.html,v 1.2 2002/06/20 17:09:51 mkrohn5 Exp $ 00002 00003 // Header File to define parser's public variables and functions 00004 // Written by: Alberto Barsella 00005 00006 // Copyright (C) 1999, 2000, Alberto Barsella <Alberto.Barsella@univ-lille1.fr> 00007 // 00008 // This program is free software; you can redistribute it and/or modify 00009 // it under the terms of the GNU General Public License as published by 00010 // the Free Software Foundation; either version 1, or (at your option) 00011 // any later version. 00012 // 00013 // This program is distributed in the hope that it will be useful, 00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 // GNU General Public License for more details. 00017 00018 #ifndef __PARSERUSE_INCLUDED 00019 #define __PARSERUSE_INCLUDED 00020 00021 00022 #include <cstdio> 00023 #include <string> 00024 #include "common/defs.h" 00025 00026 using namespace std; 00027 00028 00029 //class TActionSequencer; 00030 class TGame; 00031 00032 // parser variables 00033 // PROVIDED BY GAME? extern TActionSequencer* parserSequencer; FIXME? 00034 extern int4 lineno; 00035 00036 00037 // reinit parser 00038 //void yyrestart(FILE*); 00039 00040 // invoke parser 00041 //int yyparse(void); 00042 bool ReadFile(TGame* game, const string& fspec); 00043 00044 // report error 00045 int yyerror(const string& s); 00046 00047 #endif