Website Summary Files Commits Branches @commit @diff @stats
path: root / JSImpl / src / ASTInterpreter.h
diff options
context:
space:
mode:
Commit0d0159f70b0f3b23d6a4187d43167ded6b104e0f (patch)
Author
 Dimitar Trendafilov <trendafilov.dn@gmail.com>
2020-11-02 09:03:05 +0200
Committer
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2020-11-09 22:08:19 +0200
Files18b71ac80128b6a00d501cd64260977cac3efd2e /JSImpl/src/ASTInterpreter.h
IPL-0d0159f70b0f3b23d6a4187d43167ded6b104e0f.tar
IPL-0d0159f70b0f3b23d6a4187d43167ded6b104e0f.tar.gz
IPL-0d0159f70b0f3b23d6a4187d43167ded6b104e0f.zip
Parentacb4362f28e783632a5c79db98f14b60aa12f175 (diff)
Support for strings in the AST interpreter
1 files changed, 2 insertions, 1 deletions
-rw-r--r--JSImpl/src/ASTInterpreter.h3
diff --git a/JSImpl/src/ASTInterpreter.h b/JSImpl/src/ASTInterpreter.h
index ba797c1..cce6108 100644
--- a/JSImpl/src/ASTInterpreter.h
+++ b/JSImpl/src/ASTInterpreter.h
@@ -11,7 +11,7 @@ public:
~ASTInterpreter();
- typedef std::variant<double> Value;
+ typedef std::variant<double, IPLString> Value;
typedef IPLSharedPtr<Value> ValuePtr;
typedef IPLVector<ValuePtr> ValueStack;
@@ -47,6 +47,7 @@ public:
{
public:
virtual void PrintVariable(const char* name, double value) = 0;
+ virtual void PrintVariable(const char* name, const IPLString& value) = 0;
};
void Print(Printer& p);