limit arguments to not support duplicate names

This commit is contained in:
2025-07-08 04:31:01 +01:00
parent 72cc87f5b6
commit fba074a5a4
7 changed files with 85 additions and 17 deletions

View File

@@ -8,16 +8,25 @@ typedef struct {
size_t head;
} RuntimeState;
typedef struct {
bool exists;
char *path;
int64_t line;
char *type;
char *message;
} ArErr;
typedef struct Stack {
ArgonObject *scope;
struct Stack *prev;
ArgonObject *scope;
struct Stack *prev;
} Stack;
void init_types();
uint64_t pop_bytecode(Translated *translated, RuntimeState *state);
void run_instruction(Translated *translated, RuntimeState *state, struct Stack stack);
ArErr run_instruction(Translated *translated, RuntimeState *state,
struct Stack stack);
RuntimeState init_runtime_state(Translated translated);