

Definition at line 239 of file cmd.cc.
Public Member Functions | |
| PrintCmd (const Token &t, Value::VType type) | |
| 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_ |
| Var | var_ |
| PrintCmd | ( | const Token & | t, | |
| Value::VType | type | |||
| ) | [inline] |
| virtual void toStream | ( | std::ostream & | ) | const [inline, virtual] |
dump command to stream in human-readable format
Implements ICmd.
Definition at line 246 of file cmd.cc.
References StreamDecorator::C_LIGHT_RED, StreamDecorator::C_NO_COLOR, t_, Value::type, Var::value, and var_.
| bool exec | ( | FncDefinition * | ) | [virtual] |
execute command in the context of calling function
Implements ICmd.
Definition at line 783 of file cmd.cc.
References Value::doubleVal, Value::intVal, ValueStack::popToVar(), Value::stringVal, t_, Value::type, Value::V_DOUBLE, Value::V_INT, Value::V_STRING, Var::value, var_, FncDefinition::vm, and Vm::vmStack.

1.5.4