ArgCmd Class Reference

Inheritance diagram for ArgCmd:

Inheritance graph
[legend]
Collaboration diagram for ArgCmd:

Collaboration graph
[legend]

List of all members.


Detailed Description

read/write value of function argument

Definition at line 108 of file cmd.cc.


Public Member Functions

 ArgCmd (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

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

Definition at line 110 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 111 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 117 of file cmd.cc.

References FncDeclaration::args, ValueStack::popToVar(), push_, ValueStack::pushFromVar(), 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 124 of file cmd.cc.

Referenced by exec(), and toStream().

bool push_ [private]

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