![]() |
nsbaci 1.0
|
BACI-specific implementation of the Interpreter. More...
#include <nsbaciInterpreter.h>


Public Member Functions | |
| InterpreterResult | executeInstruction (Thread &t, Program &program) override |
| Executes the current instruction for the given thread with the program context. | |
| void | provideInput (const std::string &input) override |
| Provide input to a thread waiting for input. | |
| bool | isWaitingForInput () const override |
| Check if interpreter is waiting for input. | |
| void | setOutputCallback (OutputCallback callback) override |
| Set the output callback for print operations. | |
| void | setDrawingCallback (DrawingCallback callback) override |
| Set the drawing callback for drawing operations. | |
| void | reset () override |
| Reset interpreter state for a new run. | |
BACI-specific implementation of the Interpreter.
NsbaciInterpreter executes BACI p-code instructions, managing the execution state and interaction with the program context.
|
overridevirtual |
Executes the current instruction for the given thread with the program context.
| t | The thread whose instruction should be executed. |
| program | The program context in which to execute the instruction. |
Implements nsbaci::services::runtime::Interpreter.

|
overridevirtual |
Check if interpreter is waiting for input.
Implements nsbaci::services::runtime::Interpreter.
|
overridevirtual |
Provide input to a thread waiting for input.
| input | The input string. |
Implements nsbaci::services::runtime::Interpreter.
|
overridevirtual |
Reset interpreter state for a new run.
Clears any pending input and waiting state.
Implements nsbaci::services::runtime::Interpreter.
|
overridevirtual |
Set the drawing callback for drawing operations.
| callback | Function to call when drawing is requested. |
Implements nsbaci::services::runtime::Interpreter.
|
overridevirtual |
Set the output callback for print operations.
| callback | Function to call when output is produced. |
Implements nsbaci::services::runtime::Interpreter.