summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/AST/ASTNode.h
blob: feee8bdda34487d29f6c06c81a5c9a61ed1be64d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * ASTNode.h
 *
 *  Created on: Nov 4, 2012
 *      Author: attero
 */

#ifndef ASTNODE_H_
#define ASTNODE_H_
#include <vector>
#include <string>
#include "SenchaObject.h"
#include "../Visitor.h"

class ASTNode {
public:
	ASTNode();
	ASTNode * parent;
	std::vector<ASTNode *> children;

	virtual void accept(Visitor *) = 0;

	virtual std::string debug() = 0;
	virtual void execute() = 0;
	virtual ~ASTNode();
};

#endif /* ASTNODE_H_ */