diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-13 08:47:52 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-13 08:47:52 +0000 |
| commit | 5d5c14920a9aa3397d4b479c22e37392be5557f4 (patch) | |
| tree | 31eec35c4ef9b7afc310fb624ce1abdb43e3e497 /include | |
| parent | 58e2cfe505ba9942524f06bb1b1419e6c579efad (diff) | |
feat: support comma-separated OUTPUT expressions
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/cps/AST.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/cps/AST.h b/include/cps/AST.h index f24d987..d98613d 100644 --- a/include/cps/AST.h +++ b/include/cps/AST.h @@ -150,10 +150,10 @@ public: }; class OutputStmtAST : public StmtAST { - std::unique_ptr<ExprAST> Expr; + std::vector<std::unique_ptr<ExprAST>> Exprs; public: - OutputStmtAST(std::unique_ptr<ExprAST> Expr) : Expr(std::move(Expr)) {} - ExprAST *getExpr() const { return Expr.get(); } + OutputStmtAST(std::vector<std::unique_ptr<ExprAST>> Exprs) : Exprs(std::move(Exprs)) {} + const std::vector<std::unique_ptr<ExprAST>> &getExprs() const { return Exprs; } }; class IfStmtAST : public StmtAST { |
