diff options
1 files changed, 8 insertions, 0 deletions
| -rw-r--r-- | JSImpl/src/ASTInterpreter.h | 8 |
diff --git a/JSImpl/src/ASTInterpreter.h b/JSImpl/src/ASTInterpreter.h index 4683d63..cde3dd0 100644 --- a/JSImpl/src/ASTInterpreter.h +++ b/JSImpl/src/ASTInterpreter.h @@ -41,6 +41,14 @@ public: value_type& ModifyVariable(const IPLString& name); bool HasVariable(const IPLString& name); + + class Printer + { + public: + virtual void PrintVariable(const char* name, double value) = 0; + }; + + void Print(Printer& p); private: void RunExpression(const ExpressionPtr& e); bool EvalToBool(const ExpressionPtr& e); |
