

Definition at line 193 of file cmd.cc.
Public Member Functions | |
| WhileCmd (const Token &t, PCmd whileExpr, PCmd whileStat) | |
| 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 | whileExpr_ |
| PCmd | whileStat_ |
| virtual void toStream | ( | std::ostream & | ) | const [inline, virtual] |
dump command to stream in human-readable format
Implements ICmd.
Definition at line 200 of file cmd.cc.
References StreamDecorator::C_LIGHT_BLUE, StreamDecorator::C_LIGHT_RED, StreamDecorator::C_NO_COLOR, t_, ICmd::toStream(), whileExpr_, and whileStat_.

| bool exec | ( | FncDefinition * | ) | [virtual] |
execute command in the context of calling function
Implements ICmd.
Definition at line 750 of file cmd.cc.
References Value::boolVal, StreamDecorator::E_ERROR, StreamDecorator::E_NOTE, ICmd::exec(), Vm::fileName, ValueStack::pop(), t_, Value::type, Value::V_BOOL, FncDefinition::vm, Vm::vmStack, whileExpr_, and whileStat_.

PCmd whileExpr_ [private] |
PCmd whileStat_ [private] |
1.5.4