diff options
Move AST interpreter value to std::variant
1 files changed, 2 insertions, 1 deletions
| -rw-r--r-- | JSImpl/src/ASTInterpreter.h | 3 |
diff --git a/JSImpl/src/ASTInterpreter.h b/JSImpl/src/ASTInterpreter.h index e8dae37..ba797c1 100644 --- a/JSImpl/src/ASTInterpreter.h +++ b/JSImpl/src/ASTInterpreter.h @@ -11,7 +11,8 @@ public: ~ASTInterpreter(); - typedef IPLSharedPtr<double> ValuePtr; + typedef std::variant<double> Value; + typedef IPLSharedPtr<Value> ValuePtr; typedef IPLVector<ValuePtr> ValueStack; ValueStack Run(Expression* program); |
