Continue struct parsing work

This commit is contained in:
2026-01-16 17:45:48 +11:00
parent 18579830ab
commit c51bb82f62
2 changed files with 38 additions and 2 deletions

View File

@@ -7,7 +7,7 @@
#include "include/uthash.h"
typedef enum GroundRuntimeError {
ARG_TYPE_MISMATCH, TOO_FEW_ARGS, TOO_MANY_ARGS, UNKNOWN_LABEL, UNKNOWN_VARIABLE, LIST_ERROR, STRING_ERROR, MATH_ERROR, RETURN_TYPE_MISMATCH, FIXME
ARG_TYPE_MISMATCH, TOO_FEW_ARGS, TOO_MANY_ARGS, UNKNOWN_LABEL, UNKNOWN_VARIABLE, LIST_ERROR, STRING_ERROR, MATH_ERROR, RETURN_TYPE_MISMATCH, PREMATURE_EOF, FIXME
} GroundRuntimeError;
typedef enum GroundDebugInstructionType {
@@ -36,6 +36,7 @@ typedef struct GroundDebugInstruction {
char* arg;
} GroundDebugInstruction;
GroundStruct parseStruct(GroundProgram* in);
GroundValue interpretGroundProgram(GroundProgram* in, GroundScope* inScope);
GroundValue interpretGroundInstruction(GroundInstruction inst, GroundScope* scope);