summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/AST/ASTNode.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/AST/ASTNode.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/AST/ASTNode.h')
-rw-r--r--Sencha-lang/AST/ASTNode.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Sencha-lang/AST/ASTNode.h b/Sencha-lang/AST/ASTNode.h
index 7afe190..feee8bd 100644
--- a/Sencha-lang/AST/ASTNode.h
+++ b/Sencha-lang/AST/ASTNode.h
@@ -10,6 +10,7 @@
#include <vector>
#include <string>
#include "SenchaObject.h"
+#include "../Visitor.h"
class ASTNode {
public:
@@ -17,6 +18,7 @@ public:
ASTNode * parent;
std::vector<ASTNode *> children;
+ virtual void accept(Visitor *) = 0;
virtual std::string debug() = 0;
virtual void execute() = 0;