From 59a2bb6acb975d820ab29be63a6f909d6e6ef40f Mon Sep 17 00:00:00 2001 From: _ov4 Date: Sat, 17 Oct 2026 09:09:54 +0000 Subject: feat(parser): parse INCLUDE and GLOBAL blocks Co-Authored-By: Claude Opus 5.5 --- lib/CodeGen/StatementGen.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/CodeGen/StatementGen.cc') diff --git a/lib/CodeGen/StatementGen.cc b/lib/CodeGen/StatementGen.cc index df8c396..529f7f0 100644 --- a/lib/CodeGen/StatementGen.cc +++ b/lib/CodeGen/StatementGen.cc @@ -13,6 +13,11 @@ void CodeGen::emitStmt(StmtAST *Stmt) { SaveAndRestore Location(DiagnosticLine, Stmt && Stmt->getLine() ? Stmt->getLine() : DiagnosticLine); if (!Stmt) return; + if (dynamic_cast(Stmt) || dynamic_cast(Stmt)) { + reportError("INCLUDE and GLOBAL are not supported yet"); + return; + } + if (auto *Class = dynamic_cast(Stmt)) { for (const auto &Method : Class->getMethods()) { // Invalid or duplicate members have already been diagnosed. -- cgit v1.3.1-4-g156e