PushValueCmd Class Reference

Inheritance diagram for PushValueCmd:

Inheritance graph
[legend]
Collaboration diagram for PushValueCmd:

Collaboration graph
[legend]

List of all members.


Detailed Description

push immediate value to vmStack

Definition at line 29 of file cmd.cc.


Public Member Functions

 PushValueCmd (const Token &t, PValue val)
virtual void toStream (std::ostream &str) const
 dump command to stream in human-readable format
virtual bool exec (FncDefinition *fnc)
 execute command in the context of calling function

Private Attributes

Token t_
PValue val_

Constructor & Destructor Documentation

PushValueCmd ( const Token t,
PValue  val 
) [inline]

Definition at line 31 of file cmd.cc.


Member Function Documentation

virtual void toStream ( std::ostream &   )  const [inline, virtual]

dump command to stream in human-readable format

Implements ICmd.

Definition at line 32 of file cmd.cc.

References StreamDecorator::C_LIGHT_CYAN, StreamDecorator::C_NO_COLOR, and t_.

virtual bool exec ( FncDefinition  )  [inline, virtual]

execute command in the context of calling function

Implements ICmd.

Definition at line 36 of file cmd.cc.

References ValueStack::push(), t_, val_, FncDefinition::vm, and Vm::vmStack.

Here is the call graph for this function:


Member Data Documentation

Token t_ [private]

Definition at line 40 of file cmd.cc.

Referenced by exec(), and toStream().

PValue val_ [private]

Definition at line 41 of file cmd.cc.

Referenced by exec().


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