2026-01-21 11:17:19 +11:00
|
|
|
#include "types.h"
|
2026-01-21 11:38:37 +11:00
|
|
|
#include "interpreter.h"
|
2026-01-21 11:17:19 +11:00
|
|
|
|
|
|
|
|
char* compileGroundProgram(GroundProgram* program);
|
2026-01-21 11:38:37 +11:00
|
|
|
[[noreturn]] void runtimeError(GroundRuntimeError error, char* what, GroundInstruction* where, int whereLine);
|
2026-01-21 13:25:13 +11:00
|
|
|
|
|
|
|
|
typedef struct VariableInfo {
|
|
|
|
|
char name[256];
|
|
|
|
|
int offset;
|
|
|
|
|
} VariableInfo;
|
|
|
|
|
|
|
|
|
|
typedef struct VariableTable {
|
|
|
|
|
VariableInfo* vars;
|
|
|
|
|
size_t count;
|
|
|
|
|
size_t capacity;
|
|
|
|
|
} VariableTable;
|
|
|
|
|
|
|
|
|
|
|