#ifndef AMAL_PROGRAM_H #define AMAL_PROGRAM_H #include "std/buffer.h" #include "bytecode/bytecode.h" typedef struct { Buffer/*<...>*/ data; } amal_program; void amal_program_init(amal_program *self); void amal_program_deinit(amal_program *self); CHECK_RESULT int amal_program_append_bytecode(amal_program *self, Bytecode *bytecode); CHECK_RESULT int amal_program_run(amal_program *self); CHECK_RESULT int amal_program_save(amal_program *self, const char *filepath); #endif