CallCmd Class Reference

Inheritance diagram for CallCmd:

Inheritance graph
[legend]
Collaboration diagram for CallCmd:

Collaboration graph
[legend]

List of all members.


Detailed Description

function call command operating on vmStack

Definition at line 219 of file cmd.cc.


Public Member Functions

 CallCmd (const Token &t, unsigned nArgs, bool pushResult)
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_
unsigned nArgs_
bool pushResult_

Constructor & Destructor Documentation

CallCmd ( const Token t,
unsigned  nArgs,
bool  pushResult 
) [inline]

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

References StreamDecorator::C_LIGHT_RED, StreamDecorator::C_NO_COLOR, nArgs_, pushResult_, and t_.

bool exec ( FncDefinition  )  [virtual]

execute command in the context of calling function

Implements ICmd.

Definition at line 866 of file cmd.cc.

References FncDeclaration::args, StreamDecorator::C_LIGHT_BLUE, StreamDecorator::C_LIGHT_GREEN, StreamDecorator::C_LIGHT_RED, StreamDecorator::C_NO_COLOR, StreamDecorator::C_YELLOW, Vm::callDepth, StreamDecorator::E_ERROR, CmdList::exec(), Vm::fileName, Vm::fncSet, FncSet::getDefinition(), Vm::maxCallDepth, nArgs_, ValueStack::popToVar(), ValueStack::pushFromVar(), pushResult_, SHARED_PTR, VarSet::size(), t_, Token::text, FncDefinition::vm, and Vm::vmStack.

Here is the call graph for this function:


Member Data Documentation

Token t_ [private]

Definition at line 233 of file cmd.cc.

Referenced by exec(), and toStream().

unsigned nArgs_ [private]

Definition at line 234 of file cmd.cc.

Referenced by exec(), and toStream().

bool pushResult_ [private]

Definition at line 235 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:09 2009 for vyp08 (compiler and interpreter of VYP08 language) by  doxygen 1.5.4