ReturnCmd Class Reference

Inheritance diagram for ReturnCmd:

Inheritance graph
[legend]
Collaboration diagram for ReturnCmd:

Collaboration graph
[legend]

List of all members.


Detailed Description

read/write value of function return value

Definition at line 45 of file cmd.cc.


Public Member Functions

 ReturnCmd (const Token &t, bool push)
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_
bool push_

Constructor & Destructor Documentation

ReturnCmd ( const Token t,
bool  push 
) [inline]

Definition at line 47 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 48 of file cmd.cc.

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

virtual bool exec ( FncDefinition  )  [inline, virtual]

execute command in the context of calling function

Implements ICmd.

Definition at line 54 of file cmd.cc.

References ValueStack::popToVar(), push_, ValueStack::pushFromVar(), FncDeclaration::self, t_, FncDefinition::vm, and Vm::vmStack.

Here is the call graph for this function:


Member Data Documentation

Token t_ [private]

Definition at line 60 of file cmd.cc.

Referenced by exec(), and toStream().

bool push_ [private]

Definition at line 61 of file cmd.cc.

Referenced by exec(), and toStream().


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