sencha-lang/Sencha-lang/AST/ASTNode.h

28 lines
472 B
C
Raw Normal View History

2012-11-17 16:02:32 +00:00
/*
* ASTNode.h
*
* Created on: Nov 4, 2012
* Author: attero
*/
#ifndef ASTNODE_H_
#define ASTNODE_H_
#include <vector>
#include <string>
#include "SenchaObject.h"
2012-12-17 22:59:16 +00:00
#include "../Visitor.h"
2012-11-17 16:02:32 +00:00
class ASTNode : public Visitable{
2012-11-17 16:02:32 +00:00
public:
ASTNode();
std::vector<ASTNode *> children;
virtual void accept(Visitor * visitor){ visitor->visit(this); };
virtual SenchaObject evaluate() = 0;
2012-11-17 16:02:32 +00:00
virtual void execute() = 0;
virtual ~ASTNode();
};
#endif /* ASTNODE_H_ */