Definition at line 167 of file cmd.cc.
Public Member Functions | |
IfCmd (const Token &t, PCmd ifCmd, PCmd elseCmd) | |
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_ |
PCmd | ifCmd_ |
PCmd | elseCmd_ |
virtual void toStream | ( | std::ostream & | ) | const [inline, virtual] |
dump command to stream in human-readable format
Implements ICmd.
Definition at line 174 of file cmd.cc.
References StreamDecorator::C_LIGHT_BLUE, StreamDecorator::C_LIGHT_RED, StreamDecorator::C_NO_COLOR, elseCmd_, ifCmd_, t_, and ICmd::toStream().
bool exec | ( | FncDefinition * | ) | [virtual] |
execute command in the context of calling function
Implements ICmd.
Definition at line 726 of file cmd.cc.
References StreamDecorator::E_ERROR, StreamDecorator::E_NOTE, elseCmd_, Vm::fileName, ifCmd_, ValueStack::pop(), t_, Value::type, Value::V_BOOL, FncDefinition::vm, and Vm::vmStack.