diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-17 09:09:54 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-17 09:09:54 +0000 |
| commit | 59a2bb6acb975d820ab29be63a6f909d6e6ef40f (patch) | |
| tree | ac87916075e9e5a9f166b14fea0b39864d801166 /lib/CodeGen/StatementGen.cc | |
| parent | dc645a36aaade7087ade574cefe69ce7bb29753e (diff) | |
feat(parser): parse INCLUDE and GLOBAL blocks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'lib/CodeGen/StatementGen.cc')
| -rw-r--r-- | lib/CodeGen/StatementGen.cc | 5 |
1 files changed, 5 insertions, 0 deletions
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<int> Location(DiagnosticLine, Stmt && Stmt->getLine() ? Stmt->getLine() : DiagnosticLine); if (!Stmt) return; + if (dynamic_cast<IncludeStmtAST*>(Stmt) || dynamic_cast<GlobalBlockAST*>(Stmt)) { + reportError("INCLUDE and GLOBAL are not supported yet"); + return; + } + if (auto *Class = dynamic_cast<ClassTypeDeclAST*>(Stmt)) { for (const auto &Method : Class->getMethods()) { // Invalid or duplicate members have already been diagnosed. |
