bytecode-improvements (#3)

Reviewed-on: #3
This commit was merged in pull request #3.
This commit is contained in:
2026-04-29 11:40:46 -05:00
parent d8130272a0
commit 54729c1e14
10 changed files with 151 additions and 85 deletions

View File

@@ -5,12 +5,11 @@
#include <string>
#include <variant>
#include <vector>
#include "constant.hh"
namespace tyche {
struct BytecodePrototype {
using ConstantValue = std::variant<int32_t, float, std::string>;
struct Function {
uint16_t n_pars;
uint16_t n_locals;