add if statement and declaration

This commit is contained in:
2025-07-13 03:34:31 +01:00
parent 744e3c281d
commit f7ff3393f0
36 changed files with 587 additions and 165 deletions

View File

@@ -8,19 +8,26 @@ typedef struct {
ArgonObject **registers;
size_t head;
char*path;
ArgonObject * return_value;
} RuntimeState;
void init_types();
extern struct hashmap * runtime_hash_table;
uint64_t runtime_hash(const void *data, size_t len, uint64_t prehash);
uint8_t pop_byte(Translated *translated, RuntimeState *state);
uint64_t pop_bytecode(Translated *translated, RuntimeState *state);
ArErr run_instruction(Translated *translated, RuntimeState *state,
struct Stack stack);
struct Stack **stack);
RuntimeState init_runtime_state(Translated translated, char *path);
Stack create_scope(Stack *prev);
Stack *create_scope(Stack *prev);
ArErr runtime(Translated translated, RuntimeState state, Stack stack);
ArErr runtime(Translated translated, RuntimeState state, Stack *stack);
#endif // RUNTIME_H