#include <vm.h>

Definition at line 229 of file vm.h.
Public Member Functions | |
| virtual | ~ICmd () |
| virtual bool | exec (FncDefinition *)=0 |
| execute command in the context of calling function | |
| virtual void | toStream (std::ostream &) const =0 |
| dump command to stream in human-readable format | |
| virtual bool exec | ( | FncDefinition * | ) | [pure virtual] |
execute command in the context of calling function
Implemented in PushValueCmd, ReturnCmd, GlVarCmd, LcVarCmd, ArgCmd, UnaryCmd, BinaryCmd, IfCmd, WhileCmd, CallCmd, PrintCmd, InputCmd, and CmdList.
Referenced by CmdList::exec(), WhileCmd::exec(), and VmRunner::Private::run().

| virtual void toStream | ( | std::ostream & | ) | const [pure virtual] |
dump command to stream in human-readable format
Implemented in PushValueCmd, ReturnCmd, GlVarCmd, LcVarCmd, ArgCmd, UnaryCmd, BinaryCmd, IfCmd, WhileCmd, CallCmd, PrintCmd, InputCmd, and CmdList.
Referenced by CmdList::exec(), CmdList::toStream(), WhileCmd::toStream(), and IfCmd::toStream().

1.5.4