nicer fixed step interface

This commit is contained in:
2022-11-05 15:06:54 -07:00
parent b8f9152ff6
commit d96eafaa47
6 changed files with 59 additions and 60 deletions

View File

@@ -17,6 +17,10 @@ ValueType val;
struct Halt {};
auto StepInput(Machine & m, ValueType input) -> void;
auto StepOutput(Machine & m) -> ValueType;
auto Step(Machine & m) -> std::variant<Input, Output, Halt>;
struct BadInstruction : public std::runtime_error {