#ifndef BASIC_CODE_H #define BASIC_CODE_H #include "Constants.h" typedef enum : u8 { ADD, PUSH_CONSTANT_STRING, PUSH_INT, PRINT, STOP } Instruction; void resetCode(); [[nodiscard]] bool pushInstruction(Instruction i); [[nodiscard]] bool pushI64(i64 i); [[nodiscard]] bool pushSize(size_t i); [[nodiscard]] bool pushConstantString(const char* c); Instruction readInstruction(); i64 readI64(); size_t readSize(); const char* readConstantString(); #endif