From 74b6d06711afd3efbbc47436f1491900994313f3 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Sat, 17 Oct 2026 06:54:32 +0000 Subject: feat(classes): allocate objects with NEW and rebind named class variables Co-Authored-By: Claude Opus 5.5 --- include/cps/CodeGen.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/cps/CodeGen.h') diff --git a/include/cps/CodeGen.h b/include/cps/CodeGen.h index 1813d9d..a70d191 100644 --- a/include/cps/CodeGen.h +++ b/include/cps/CodeGen.h @@ -25,6 +25,7 @@ class FileHandler; class MemoryHandler; class ExceptionHandler; class CastExprAST; +class NewExprAST; class CodeGen { std::unique_ptr TheContext; @@ -127,6 +128,9 @@ class CodeGen { const std::vector> &ArgExprs, int Line, std::vector &Out); + llvm::Value *symbolAddress(const SymbolInfo &Info); + void emitAssignment(const LValueInfo &Target, ExprAST *Expr, + const SymbolInfo *Symbol = nullptr); void emitDeclareStmt(DeclareStmtAST *Stmt); void emitOutputValue(llvm::Value *Val, const TypeInfo *TypeInfo, bool AppendNewline = true); -- cgit v1.3.1-4-g156e