Initial work on iterators, rework of variable handling by including actual string
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -2,17 +2,17 @@
|
||||
#ifndef PORYGONLANG_EVALUATIONSCOPE_HPP
|
||||
#define PORYGONLANG_EVALUATIONSCOPE_HPP
|
||||
|
||||
#include <unordered_map>
|
||||
#include <map>
|
||||
#include <vector>
|
||||
#include "../EvalValues/EvalValue.hpp"
|
||||
using namespace Porygon::Binder;
|
||||
|
||||
namespace Porygon::Evaluation {
|
||||
class EvaluationScope {
|
||||
unordered_map<uint32_t, shared_ptr<EvalValue>> *_scriptScope;
|
||||
unordered_map<uint64_t, shared_ptr<EvalValue>> _localScope;
|
||||
map<Utilities::HashedString, shared_ptr<EvalValue>> *_scriptScope;
|
||||
map<uint64_t, shared_ptr<EvalValue>> _localScope;
|
||||
public:
|
||||
explicit EvaluationScope(unordered_map<uint32_t, shared_ptr<EvalValue>> *scriptVariables, int deepestScope);
|
||||
explicit EvaluationScope(map<Utilities::HashedString, shared_ptr<EvalValue>> *scriptVariables, int deepestScope);
|
||||
|
||||
~EvaluationScope() = default;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user