Everywhere: Rename Value -> Constant, ASTNode -> Value
This commit is contained in:
+4
-4
@@ -21,17 +21,17 @@ public:
|
||||
// Factory functions instead of constructors because it can fail in the bindings/arguments case
|
||||
static EnvironmentPtr create();
|
||||
static EnvironmentPtr create(EnvironmentPtr outer);
|
||||
static EnvironmentPtr create(const ASTNodePtr lambda, std::list<ASTNodePtr> arguments);
|
||||
static EnvironmentPtr create(const ValuePtr lambda, std::list<ValuePtr> arguments);
|
||||
|
||||
bool exists(const std::string& symbol);
|
||||
ASTNodePtr set(const std::string& symbol, ASTNodePtr value);
|
||||
ASTNodePtr get(const std::string& symbol);
|
||||
ValuePtr set(const std::string& symbol, ValuePtr value);
|
||||
ValuePtr get(const std::string& symbol);
|
||||
|
||||
protected:
|
||||
Environment() {}
|
||||
|
||||
EnvironmentPtr m_outer { nullptr };
|
||||
std::unordered_map<std::string, ASTNodePtr> m_values;
|
||||
std::unordered_map<std::string, ValuePtr> m_values;
|
||||
};
|
||||
|
||||
} // namespace blaze
|
||||
|
||||
Reference in New Issue
Block a user