From d8704c516b3a8b32817ffcad1868d7cd135efe48 Mon Sep 17 00:00:00 2001 From: Dimitar Trendafilov Date: Sun, 1 Nov 2020 21:34:40 +0200 Subject: Move AST interpreter value to std::variant --- JSImpl/src/ASTInterpreter.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'JSImpl/src/ASTInterpreter.h') 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 ValuePtr; + typedef std::variant Value; + typedef IPLSharedPtr ValuePtr; typedef IPLVector ValueStack; ValueStack Run(Expression* program); -- cgit v1.3.1-23-gd82d