From b93662dbcc9d30c69cce7d1342606cafc60bb3f0 Mon Sep 17 00:00:00 2001 From: Dimitar Trendafilov Date: Sun, 1 Nov 2020 20:48:23 +0200 Subject: Fix name of ASTInterpreter value type --- JSImpl/src/ASTInterpreter.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'JSImpl/src/ASTInterpreter.h') diff --git a/JSImpl/src/ASTInterpreter.h b/JSImpl/src/ASTInterpreter.h index 16aebfa..e8dae37 100644 --- a/JSImpl/src/ASTInterpreter.h +++ b/JSImpl/src/ASTInterpreter.h @@ -2,6 +2,8 @@ #include "ExpressionVisitor.h" +#include + class ASTInterpreter : public ExpressionVisitor { public: @@ -9,10 +11,8 @@ public: ~ASTInterpreter(); - // TODO: Changing this to a shared_ptr (or GC-enabled value*) will - // allow for much simpler implementation of all varible assignments. - typedef IPLSharedPtr value_type; - typedef IPLVector ValueStack; + typedef IPLSharedPtr ValuePtr; + typedef IPLVector ValueStack; ValueStack Run(Expression* program); @@ -39,7 +39,7 @@ public: virtual void Visit(EmptyExpression* e) override; virtual void Visit(CallExpression* e) override; - value_type& ModifyVariable(const IPLString& name); + ValuePtr& ModifyVariable(const IPLString& name); bool HasVariable(const IPLString& name); class Printer -- cgit v1.3.1-23-gd82d