aboutsummaryrefslogtreecommitdiff
path: root/include/cps/AST.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cps/AST.h')
-rw-r--r--include/cps/AST.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/cps/AST.h b/include/cps/AST.h
index c2754a5..f20b106 100644
--- a/include/cps/AST.h
+++ b/include/cps/AST.h
@@ -174,6 +174,13 @@ public:
ExprAST *getExpr() const { return Expr.get(); }
};
+class DeleteStmtAST : public StmtAST {
+ std::unique_ptr<ExprAST> Target;
+public:
+ explicit DeleteStmtAST(std::unique_ptr<ExprAST> T) : Target(std::move(T)) {}
+ ExprAST *getTarget() const { return Target.get(); }
+};
+
class InputStmtAST : public StmtAST {
std::unique_ptr<ExprAST> Target;
public: