]> matita.cs.unibo.it Git - helm.git/blob - helm/DEVEL/mathml_editor/src/APushParser.hh
* code cleanup
[helm.git] / helm / DEVEL / mathml_editor / src / APushParser.hh
1 // Copyright (C) 2002-2003, Luca Padovani <luca.padovani@cs.unibo.it>.
2 //
3 // This file is part of EdiTeX, an editor of mathematical
4 // expressions based on TeX syntax
5 // 
6 // EdiTeX is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU General Public License
8 // as published by the Free Software Foundation; either version 2
9 // of the License, or (at your option) any later version.
10 //
11 // EdiTeX 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.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with EdiTeX; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
19 // 
20 // For details, see the EdiTeX World-Wide-Web page,
21 // http://helm.cs.unibo.it/editex, or send a mail to
22 // <luca.padovani@cs.unibo.it>
23
24 #ifndef __APushParser_hh__
25 #define __APushParser_hh__
26
27 class APushParser
28 {
29 public:
30   APushParser(class ALogger& l) : logger(l), factory(0) { };
31   APushParser(class ALogger& l, class AMathMLFactory& f) : logger(l), factory(&f) { };
32
33   virtual ~APushParser() { };
34   virtual void push(const TToken&) = 0;
35   virtual void setCursorHint(const std::string&) = 0;
36
37 protected:
38   class ALogger& logger;
39   class AMathMLFactory* factory;
40 };
41
42 #endif // __APushParser_hh__