This repository has been archived on 2023-10-10. You can view files and clone it, but cannot push or open issues/pull-requests.
sencha/Sencha-lang/ASTNode.h

25 lines
395 B
C++

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