Compiler exceptions

This commit is contained in:
Michael Schimmel
2025-11-25 15:27:57 +01:00
parent d84509c034
commit 4e508d90a5
8 changed files with 62 additions and 28 deletions
+4 -2
View File
@@ -9,6 +9,10 @@ uses
Myc.Data.Keyword;
type
// Exception for atomic type errors (promotion failures, invalid operations)
// Inherits from Exception directly to keep Types unit independent of Nodes/AST.
ETypeException = class(Exception);
IStaticType = interface;
// Defines the categories of types available in the language.
@@ -79,8 +83,6 @@ type
function GetHashCode: Integer;
end;
ETypeException = class(Exception);
// Factory and Flyweight access for static types.
// Use this record to create or access all IStaticType instances.
TTypes = record