nicer fixed step interface
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user