some cool things

This commit is contained in:
2026-06-25 18:57:53 +10:00
parent fa2c205f33
commit 9bb083a6f8
19 changed files with 4288 additions and 1 deletions

View File

@@ -107,6 +107,14 @@ void _GroundBytecodeHeapSet(GroundBytecodeHeap* heap, GroundSize idx, GroundValu
GroundValue* _GroundBytecodeHeapGet(GroundBytecodeHeap* heap, GroundSize idx);
char* _GroundStringifyArg(GroundArg* arg);
char* _GroundStringifyHeap(GroundBytecodeHeap* heap);
char* _GroundStringifyInstruction(GroundInstruction* instruction);
char* _GroundStringifyProgram(GroundProgram* program);
char* _GroundStringifyString(GroundString* string);
char* _GroundStringifyValue(GroundValue* value);
struct _Ground Ground = {
.Flags = {
@@ -240,4 +248,13 @@ struct _Ground Ground = {
.get = _GroundBytecodeHeapGet,
},
},
.Stringify = {
.Arg = _GroundStringifyArg,
.Heap = _GroundStringifyHeap,
.Instruction = _GroundStringifyInstruction,
.Program = _GroundStringifyProgram,
.String = _GroundStringifyString,
.Value = _GroundStringifyValue,
},
};