|
|
@ -24,6 +24,7 @@ public: |
|
|
|
static EnvironmentPtr create(EnvironmentPtr outer); |
|
|
|
static EnvironmentPtr create(EnvironmentPtr outer); |
|
|
|
static EnvironmentPtr create(const ValuePtr lambda, ValueVector&& arguments); |
|
|
|
static EnvironmentPtr create(const ValuePtr lambda, ValueVector&& arguments); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static void loadFunctions(); |
|
|
|
static void registerFunction(const std::string& name, FunctionType function); |
|
|
|
static void registerFunction(const std::string& name, FunctionType function); |
|
|
|
static void installFunctions(EnvironmentPtr env); |
|
|
|
static void installFunctions(EnvironmentPtr env); |
|
|
|
|
|
|
|
|
|
|
@ -34,6 +35,20 @@ public: |
|
|
|
private: |
|
|
|
private: |
|
|
|
Environment() {} |
|
|
|
Environment() {} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Outer environment native functions, "Core"
|
|
|
|
|
|
|
|
static void loadCollectionAccess(); |
|
|
|
|
|
|
|
static void loadCollectionConstructor(); |
|
|
|
|
|
|
|
static void loadCollectionModify(); |
|
|
|
|
|
|
|
static void loadCompare(); |
|
|
|
|
|
|
|
static void loadConvert(); |
|
|
|
|
|
|
|
static void loadFormat(); |
|
|
|
|
|
|
|
static void loadMeta(); |
|
|
|
|
|
|
|
static void loadMutable(); |
|
|
|
|
|
|
|
static void loadOperators(); |
|
|
|
|
|
|
|
static void loadOther(); |
|
|
|
|
|
|
|
static void loadPredicate(); |
|
|
|
|
|
|
|
static void loadRepl(); |
|
|
|
|
|
|
|
|
|
|
|
EnvironmentPtr m_outer { nullptr }; |
|
|
|
EnvironmentPtr m_outer { nullptr }; |
|
|
|
std::unordered_map<std::string, ValuePtr> m_values; |
|
|
|
std::unordered_map<std::string, ValuePtr> m_values; |
|
|
|
|
|
|
|
|
|
|
|