Begin work on reworked extern instruction

This commit is contained in:
2026-07-04 17:53:14 +10:00
parent 3204613c6f
commit 7c29048397
4 changed files with 100 additions and 3 deletions

View File

@@ -126,7 +126,8 @@ struct GroundError {
enum GroundTypeType {
GroundType_Int, GroundType_Double, GroundType_Char, GroundType_Bool,
GroundType_String, GroundType_List,
GroundType_Function, GroundType_Struct, GroundType_Object
GroundType_Function, GroundType_Struct, GroundType_Object,
GroundType_CoreType,
};
struct GroundType {
@@ -152,6 +153,8 @@ struct GroundValue {
GroundFunction Function;
GroundStruct Struct;
GroundObject Object;
enum GroundTypeType CoreType;
} as;
GroundType type;
@@ -313,6 +316,9 @@ struct GroundBytecodeValue {
GroundBytecodeFunction Function;
GroundBytecodeStruct Struct;
GroundBytecodeObject Object;
// For core types
enum GroundTypeType CoreType;
} as;
GroundType type;