aboutsummaryrefslogtreecommitdiff
path: root/include/cps/AST.h
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-17 08:31:27 +0000
committer_ov4 <ov4@ov4.org>2026-10-17 08:31:27 +0000
commite847e4c53cf21fcb96f7ed7765e305a7ec8e6c19 (patch)
treed065b2a3f0243df19e7013f433304d8032f83c7b /include/cps/AST.h
parentc372c08dc940db58f1da9cadeb64b4cb3c837704 (diff)
feat(classes): parse DELETE destructor methods and DELETE statement
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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: