ICmd Class Reference

#include <vm.h>

Inheritance diagram for ICmd:

Inheritance graph
[legend]

List of all members.


Detailed Description

virtual machine command interface The fundamental object of virtual machine...

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

Constructor & Destructor Documentation

virtual ~ICmd (  )  [inline, virtual]

Definition at line 231 of file vm.h.


Member Function Documentation

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:


The documentation for this class was generated from the following file:
Generated on Sat Jul 4 18:33:16 2009 for vyp08 (compiler and interpreter of VYP08 language) by  doxygen 1.5.4