UnaryCmd Class Reference

Inheritance diagram for UnaryCmd:

Inheritance graph
[legend]
Collaboration diagram for UnaryCmd:

Collaboration graph
[legend]

List of all members.


Detailed Description

perform unary operator operation on vmStack

Definition at line 129 of file cmd.cc.


Public Member Functions

 UnaryCmd (const Token &t)
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_

Constructor & Destructor Documentation

UnaryCmd ( const Token t  )  [inline]

Definition at line 131 of file cmd.cc.

References t_, and Token::text.


Member Function Documentation

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

dump command to stream in human-readable format

Implements ICmd.

Definition at line 136 of file cmd.cc.

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

bool exec ( FncDefinition  )  [virtual]

execute command in the context of calling function

Implements ICmd.

Definition at line 517 of file cmd.cc.

References Value::boolVal, Value::doubleVal, StreamDecorator::E_ERROR, StreamDecorator::E_NOTE, ETOKEN_KW_NOT, ETOKEN_OP_MINUS, Vm::fileName, Value::intVal, ValueStack::pop(), ValueStack::push(), t_, Value::type, Token::type, Value::V_BOOL, Value::V_DOUBLE, Value::V_INT, and Vm::vmStack.

Here is the call graph for this function:


Member Data Documentation

Token t_ [private]

Definition at line 142 of file cmd.cc.

Referenced by exec(), toStream(), and UnaryCmd().


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