/* * ASTNode.h * * Created on: Nov 4, 2012 * Author: attero */ #ifndef ASTNODE_H_ #define ASTNODE_H_ #include class ASTNode { public: ASTNode(); ASTNode * parent; std::vector children; void add_children(ASTNode *); void remove_most_right_children(); void set_parent(ASTNode *); virtual void execute() = 0; virtual ~ASTNode(); }; #endif /* ASTNODE_H_ */