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_ |
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.