add hashmap to scope and identifier loading at runtime

This commit is contained in:
2025-07-12 03:33:59 +01:00
parent fe7eaa8de3
commit c0eb9e3a04
18 changed files with 141 additions and 35 deletions

View File

@@ -7,6 +7,7 @@
typedef struct {
ArgonObject **registers;
size_t head;
char*path;
} RuntimeState;
void init_types();
@@ -16,7 +17,7 @@ uint64_t pop_bytecode(Translated *translated, RuntimeState *state);
ArErr run_instruction(Translated *translated, RuntimeState *state,
struct Stack stack);
RuntimeState init_runtime_state(Translated translated);
RuntimeState init_runtime_state(Translated translated, char *path);
Stack create_scope(Stack *prev);