summaryrefslogtreecommitdiff
path: root/environment.h
diff options
context:
space:
mode:
Diffstat (limited to 'environment.h')
-rw-r--r--environment.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/environment.h b/environment.h
index bc86efb..d3f3031 100644
--- a/environment.h
+++ b/environment.h
@@ -9,11 +9,11 @@
using namespace std;
-class Environment{
-public:
- using Hook = function<AST(Environment&,const AST&)>;
- using Hook2 = function<AST(Environment&,const AST&,const AST&)>;
+class Environment;
+using Hook = function<AST(Environment&,const AST&)>;
+
+class Environment{
private:
unordered_map<string,AST> defs;
unordered_map<string,Hook> hooks;
@@ -29,7 +29,6 @@ public:
void define(const Name &name,const AST &ast);
void define(const Name &name,const Hook &hook);
- void define2(const Name &name,const Hook2 &hook2);
AST get(const Name &name);
};