xo-interpreter2: vsm stack: facet + gcobject + printable + init
This commit is contained in:
parent
dc88663271
commit
5292518eaf
33 changed files with 980 additions and 141 deletions
|
|
@ -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*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue