Initial commit

This commit is contained in:
2026-06-13 19:45:36 +10:00
commit 284b08b12a
56 changed files with 1546 additions and 0 deletions

8
src/New/Value/Bool.c Normal file
View File

@@ -0,0 +1,8 @@
#include "../../../include/ground.h"
GroundValue _GroundNewValueBool(GroundBool in) {
return (GroundValue) {
.as.Bool = in,
.type = Ground.New.Type(GroundType_Bool)
};
}

8
src/New/Value/Char.c Normal file
View File

@@ -0,0 +1,8 @@
#include "../../../include/ground.h"
GroundValue _GroundNewValueChar(GroundChar in) {
return (GroundValue) {
.as.Char = in,
.type = Ground.New.Type(GroundType_Char)
};
}

8
src/New/Value/Double.c Normal file
View File

@@ -0,0 +1,8 @@
#include "../../../include/ground.h"
GroundValue _GroundNewValueDouble(GroundDouble in) {
return (GroundValue) {
.as.Double = in,
.type = Ground.New.Type(GroundType_Double)
};
}

8
src/New/Value/Function.c Normal file
View File

@@ -0,0 +1,8 @@
#include "../../../include/ground.h"
GroundValue _GroundNewValueFunction(GroundFunction in) {
return (GroundValue) {
.as.Function = in,
.type = Ground.New.Type(GroundType_Function)
};
}

8
src/New/Value/Int.c Normal file
View File

@@ -0,0 +1,8 @@
#include "../../../include/ground.h"
GroundValue _GroundNewValueInt(GroundInt in) {
return (GroundValue) {
.as.Int = in,
.type = Ground.New.Type(GroundType_Int)
};
}

8
src/New/Value/List.c Normal file
View File

@@ -0,0 +1,8 @@
#include "../../../include/ground.h"
GroundValue _GroundNewValueList(GroundList in) {
return (GroundValue) {
.as.List = in,
.type = Ground.New.Type(GroundType_List)
};
}

8
src/New/Value/Object.c Normal file
View File

@@ -0,0 +1,8 @@
#include "../../../include/ground.h"
GroundValue _GroundNewValueObject(GroundObject in) {
return (GroundValue) {
.as.Object = in,
.type = Ground.New.Type(GroundType_Object, *in.type)
};
}

9
src/New/Value/String.c Normal file
View File

@@ -0,0 +1,9 @@
#include "../../../include/ground.h"
GroundValue _GroundNewValueString(GroundString in) {
return (GroundValue) {
.as.String = in,
.type = Ground.New.Type(GroundType_String)
};
}

9
src/New/Value/Struct.c Normal file
View File

@@ -0,0 +1,9 @@
#include "../../../include/ground.h"
GroundValue _GroundNewValueStruct(GroundStruct in) {
return (GroundValue) {
.as.Struct = in,
.type = Ground.New.Type(GroundType_Struct)
};
}