#include <control.h>
Public Methods | |
virtual void | onException (Exception *e)=0 |
virtual void | onComplete (Word result)=0 |
virtual int | onBreak ()=0 |
virtual Word | onInput ()=0 throw (Failure) |
virtual void | onOutput_int (Word value)=0 throw (Failure) |
virtual void | onOutput_char (Word value)=0 throw (Failure) |
|
Allows controlling execution of CMa::Interpreter. Before the first instruction is executed, this function is called. Let X > 0 be the return value. After that exactly X instructions are executed, and then the process is repeated. If X == 0, interpreation is stopped and no other function of this interface is called.
Implemented in MyControl. |
|
Called when CMa completes its execution and the stack contains exactly one word.
Implemented in MyControl. |
|
Called when exception occurs in the CMa. No other function of this interface will be called after that and interpreter will stop immediately.
Implemented in MyControl. |
|
Called when instruction READI is executed.
Implemented in MyControl. |
|
Called when instrucition WRITEC is executed. Writes char into output.
Implemented in MyControl. |
|
Called when instrucition WRITEI is executed. Writes int into output.
Implemented in MyControl. |