summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/Visitor.h
diff options
context:
space:
mode:
authorJustyna Ilczuk <justyna.ilczuk@gmail.com>2012-12-17 23:59:16 +0100
committerJustyna Ilczuk <justyna.ilczuk@gmail.com>2012-12-17 23:59:16 +0100
commitcc3e55c8885ca2ea145b5a811f038d7e4128b1ee (patch)
tree9e0b1e8f16888929d99a839c97f17a61f2ff9580 /Sencha-lang/Visitor.h
parentba6497e5a50dd7a7b0c9fa74f585ff5f4d56ead1 (diff)
downloadsencha-lang-cc3e55c8885ca2ea145b5a811f038d7e4128b1ee.tar.gz
sencha-lang-cc3e55c8885ca2ea145b5a811f038d7e4128b1ee.tar.bz2
sencha-lang-cc3e55c8885ca2ea145b5a811f038d7e4128b1ee.tar.xz
sencha-lang-cc3e55c8885ca2ea145b5a811f038d7e4128b1ee.zip
I'm starting visitors pattern.
Diffstat (limited to 'Sencha-lang/Visitor.h')
-rw-r--r--Sencha-lang/Visitor.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/Sencha-lang/Visitor.h b/Sencha-lang/Visitor.h
new file mode 100644
index 0000000..85d4dfa
--- /dev/null
+++ b/Sencha-lang/Visitor.h
@@ -0,0 +1,19 @@
+/*
+ * Visitor.h
+ *
+ * Created on: Dec 17, 2012
+ * Author: att
+ */
+
+#ifndef VISITOR_H_
+#define VISITOR_H_
+#include "AST/ASTNode.h"
+
+class Visitor {
+public:
+ Visitor();
+ virtual void visit(ASTNode * node/*something*/) = 0;
+ virtual ~Visitor();
+};
+
+#endif /* VISITOR_H_ */