xo-interpreter2: vsm stack: facet + gcobject + printable + init

This commit is contained in:
Roland Conybeare 2026-02-04 01:44:28 -05:00
commit 5292518eaf
33 changed files with 980 additions and 141 deletions

View file

@ -5,6 +5,7 @@
#pragma once
#include <ostream>
#include <cstdint>
namespace xo {
@ -32,6 +33,16 @@ namespace xo {
};
static constexpr uint32_t n_opcode = static_cast<uint32_t>(vsm_opcode::N);
/** stringified enum value **/
const char *
vsm_opcode_descr(vsm_opcode x);
inline std::ostream &
operator<<(std::ostream & os, vsm_opcode x) {
os << vsm_opcode_descr(x);
return os;
}
} /*namespace scm*/
} /*namespace xo*/