Bug fixes

This commit is contained in:
2025-11-23 19:59:22 +11:00
parent ddcde88182
commit 1c03f20af8
3 changed files with 46 additions and 17 deletions

View File

@@ -16,6 +16,17 @@ typedef struct GroundLabel {
UT_hash_handle hh;
} GroundLabel;
typedef struct GroundVariable {
char id[MAX_ID_LEN];
GroundValue value;
UT_hash_handle hh;
} GroundVariable;
typedef struct GroundScope {
GroundLabel** labels;
GroundVariable** variables;
} GroundScope;
void interpretGroundProgram(GroundProgram* in);
void interpretGroundInstruction(GroundInstruction* in);
void interpretGroundInstruction(GroundInstruction* in, GroundScope* scope);
#endif