]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/DEVEL/mathml_editor/src/APushLexer.hh
Initial revision
[helm.git] / helm / DEVEL / mathml_editor / src / APushLexer.hh
diff --git a/helm/DEVEL/mathml_editor/src/APushLexer.hh b/helm/DEVEL/mathml_editor/src/APushLexer.hh
new file mode 100644 (file)
index 0000000..2243426
--- /dev/null
@@ -0,0 +1,21 @@
+
+#ifndef __APushLexer_hh__
+#define __APushLexer_hh__
+
+class APushLexer
+{
+public:
+  APushLexer(class APushParser& p) : parser(p) { };
+  virtual ~APushLexer() { };
+
+  virtual void push(char) = 0;
+  virtual void reset(void) = 0;
+  virtual bool error(void) const = 0;
+  //virtual void freeze(void);
+  //virtual void thaw(void);
+
+protected:
+  class APushParser& parser;
+};
+
+#endif // __APushLexer_hh__