From a29cb23c5517fd4f8f5524fdf38b67ff5fe4a902 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Sat, 17 Oct 2026 15:02:01 +0000 Subject: feat(parser): parse EXTERN "C" declarations and INCLUDE_OBJ Co-Authored-By: Claude Opus 5.5 --- include/cps/AST.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/cps/AST.h') diff --git a/include/cps/AST.h b/include/cps/AST.h index 8c8c3be..2b78aaa 100644 --- a/include/cps/AST.h +++ b/include/cps/AST.h @@ -107,6 +107,14 @@ public: const std::string &getPath() const { return Path; } }; +// INCLUDE_OBJ "path" adds an object file (or the built-in "__libc") to the link. +class IncludeObjStmtAST : public StmtAST { + std::string Path; +public: + explicit IncludeObjStmtAST(std::string Path) : Path(std::move(Path)) {} + const std::string &getPath() const { return Path; } +}; + class GlobalBlockAST : public StmtAST { std::vector> Body; public: -- cgit v1.3.1-4-g156e