This commit is contained in:
2026-05-13 20:30:14 -05:00
parent c1d23a00b8
commit 2265b8cf08
3 changed files with 39 additions and 26 deletions

View File

@@ -24,6 +24,7 @@ typedef struct Stack Stack;
typedef struct Array Array;
typedef struct Table Table;
typedef struct Heap Heap;
typedef struct Code Code;
typedef uint32_t HEAP_KEY;
typedef uint64_t TABLE_HASH;
@@ -115,4 +116,15 @@ size_t heap_size(Heap const* h);
void heap_gc(Heap* h, VALUE const* roots, size_t n_roots);
//
// CODE
//
TYC_RESULT code_assemble(const char* code, uint8_t** bytecode, size_t* bytecode_sz);
Code* code_load_bytecode(uint8_t* bytecode, size_t bytecode_sz);
Code* code_load_bytecode_cb(void(*read_bytes)(size_t, void*), void* data);
void code_destroy(Code* code);
#endif //TYCHE_PRIV_H