LcVarCmd Class Reference

Inheritance diagram for LcVarCmd:

Inheritance graph
[legend]
Collaboration diagram for LcVarCmd:

Collaboration graph
[legend]

List of all members.


Detailed Description

read/write value of local variable

Definition at line 87 of file cmd.cc.


Public Member Functions

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

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

Definition at line 89 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 90 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 96 of file cmd.cc.

References ValueStack::popToVar(), push_, ValueStack::pushFromVar(), t_, Token::text, FncDefinition::vars, FncDefinition::vm, and Vm::vmStack.

Here is the call graph for this function:


Member Data Documentation

Token t_ [private]

Definition at line 103 of file cmd.cc.

Referenced by exec(), and toStream().

bool push_ [private]

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