diff options
Diffstat (limited to 'src/resp.hpp')
-rw-r--r-- | src/resp.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/resp.hpp b/src/resp.hpp index f4689a0..d56b5ae 100644 --- a/src/resp.hpp +++ b/src/resp.hpp @@ -613,6 +613,7 @@ struct TEnv : public Env<const AST*> { , List(penv.sym("List")) , Empty(penv.sym("Empty")) , Tup(penv.sym("Tup")) + , Expr(penv.sym("Expr")) , U(penv.sym("U")) { Object::pool.addRoot(Fn); @@ -661,6 +662,7 @@ struct TEnv : public Env<const AST*> { ASymbol* List; ASymbol* Empty; ASymbol* Tup; + ASymbol* Expr; ASymbol* U; }; @@ -699,7 +701,7 @@ struct Engine { virtual CVal compileLiteral(CEnv& cenv, const AST* lit) = 0; virtual CVal compilePrimitive(CEnv& cenv, const ATuple* prim) = 0; virtual CVal compileString(CEnv& cenv, const char* str) = 0; - virtual CType compileType(CEnv& cenv, const char* name, const AST* exp) = 0; + virtual CType compileType(CEnv& cenv, const std::string& name, const AST* exp) = 0; virtual void writeModule(CEnv& cenv, std::ostream& os) = 0; |