#ifndef TYCHE_BYTECODEPROTOTYPE_HH #define TYCHE_BYTECODEPROTOTYPE_HH #include #include #include #include #include "constant.hh" #include "../common/bytearray.hh" namespace tyche::bc { struct BytecodePrototype { struct Function { uint16_t n_pars; uint16_t n_locals; ByteArray code {}; Function(uint16_t n_pars_, uint16_t n_locals_) : n_pars(n_pars_), n_locals(n_locals_), code(ByteArray {}) {} }; std::vector constants {}; std::vector functions {}; // TODO - debugging info }; } #endif //TYCHE_BYTECODEPROTOTYPE_HH