Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

PreprocScanner.h

Go to the documentation of this file.
00001 /* Copyright (C) 1998  Thomas Portele
00002 
00003 This program is free software; you can redistribute it and/or
00004 modify it under the terms of the GNU General Public License
00005 as published by the Free Software Foundation; either version 2
00006 of the License, or (at your option) any later version.
00007 
00008 This program is distributed in the hope that it will be useful,
00009 but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011 GNU General Public License for more details.
00012 
00013 You should have received a copy of the GNU General Public License
00014 along with this program; if not, write to the Free Software
00015 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00016 
00017 Thomas Portele
00018 tpo@ikp.uni-bonn.de http://www.ikp.uni-bonn.de/~tpo
00019 IKP Poppelsdorfer Allee 47, D-53115 Bonn Germany
00020 
00021 __________________________
00022 
00023 */
00024 
00031 #ifndef _PPSCANNER_H_
00032 #define _PPSCANNER_H_
00033 
00034 
00035 #include "preproc/PPRullst.h"
00036 #include "preproc/PPInput.h"
00037 #include "preproc/PPAbblst.h"
00038 #include "preproc/PPFnclst.h"
00039 #include <unistd.h>
00040 #include "InputScanner.h"
00041 #include "Token.h"
00042 
00043 #include <queue>
00044 #include <map>
00045 #include <string>
00046 #include <iostream>
00047 
00048 using namespace std;
00049 
00055 
00056 
00057 
00058 class PreprocScanner: public InputScanner
00059 {
00060 protected:
00061 
00062   PPFunctionlist fl;
00063   PPRulelist *rl;
00064   PPAbbreviationlist *al;
00065   PPInput input;
00066   FILE *outfile;
00067   queue < Token > tokenQueue;
00068   void checkRulesDefinition (char *xinput, int g);
00069   void checkAbbrevDefinition (char *xinput, int g);
00070 
00071 public:
00072     PreprocScanner (const char *rulefilename, const char *abbfilename, const char *infilename);
00073     ~PreprocScanner ();
00074   bool scan ();
00075   Token getToken ();
00076 
00077 };
00078  // end of boss_client group
00080 #endif
00081 

Generated on Tue Dec 20 23:14:38 2005 for BOSS by doxygen 1.3.6