This commit is contained in:
Andre Wagner
2026-04-29 16:37:02 -05:00
parent 71390b0f84
commit 3d4ce8cd15
7 changed files with 60 additions and 6 deletions

16
src/vm/vm.cc Normal file
View File

@@ -0,0 +1,16 @@
#include "vm.hh"
namespace tyche {
void VM::load_bytecode(ByteArray const& ba)
{
FunctionId f_id = code_.import_bytecode(ba);
stack_.push(Value::CreateFunctionId(f_id));
}
void VM::call(size_t n_params)
{
// TODO
}
} // tyche