change how access is done and add built in array (need to optimise the size)

This commit is contained in:
William Bell
2025-09-09 06:24:23 +01:00
parent d46a6dc209
commit fc7cfc7cfb
22 changed files with 732 additions and 639 deletions

View File

@@ -12,6 +12,32 @@
#include "runtime/internals/hashmap/hashmap.h"
#include <gmp.h>
typedef enum {
__base__,
__class__,
__name__,
__add__,
__string__,
__subtract__,
__multiply__,
__division__,
__new__,
__init__,
__boolean__,
__get_attr__,
__binding__,
__function__,
field__address,
__call__,
__number__,
field_log,
field_length,
__getattribute__,
BUILT_IN_FIELDS_COUNT,
} built_in_fields;
typedef struct ArErr ArErr;
typedef struct RuntimeState RuntimeState;
@@ -77,6 +103,7 @@ struct ArgonObject {
ArgonType type;
ArgonType child_type;
struct hashmap_GC *dict;
ArgonObject* Builtin_slots[BUILT_IN_FIELDS_COUNT];
bool as_bool;
union {
struct as_number {