aboutsummaryrefslogtreecommitdiffstats
path: root/src/resp.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resp.hpp')
-rw-r--r--src/resp.hpp39
1 files changed, 19 insertions, 20 deletions
diff --git a/src/resp.hpp b/src/resp.hpp
index a3117a0..5f0899c 100644
--- a/src/resp.hpp
+++ b/src/resp.hpp
@@ -702,32 +702,31 @@ struct Engine {
typedef const vector<CVal> ValVec;
- virtual CFunc startFunction(CEnv& cenv,
- const std::string& name,
- const ATuple* args,
- const AType* type) = 0;
+ virtual CFunc startFn(CEnv& cenv,
+ const std::string& name,
+ const ATuple* args,
+ const AType* type) = 0;
- virtual void pushFunctionArgs(CEnv& cenv,
- const ATuple* prot,
- const AType* type,
- CFunc f) = 0;
+ virtual void pushFnArgs(CEnv& cenv,
+ const ATuple* prot,
+ const AType* type,
+ CFunc f) = 0;
- virtual void finishFunction(CEnv& cenv, CFunc f, CVal ret) = 0;
- virtual void eraseFunction(CEnv& cenv, CFunc f) = 0;
+ virtual void finishFn(CEnv& cenv, CFunc f, CVal ret) = 0;
+ virtual void eraseFn(CEnv& cenv, CFunc f) = 0;
- virtual CVal compileCons(CEnv& cenv, const AType* t, CVal rtti, ValVec& f) = 0;
- virtual CVal compileDot(CEnv& cenv, CVal tup, int32_t index) = 0;
- virtual CVal compileLiteral(CEnv& cenv, const AST* lit) = 0;
- virtual CVal compileString(CEnv& cenv, const char* str) = 0;
- virtual CVal compileCall(CEnv& cenv, CFunc f, const AType* fT, ValVec& args) = 0;
- virtual CVal compilePrimitive(CEnv& cenv, const ATuple* prim) = 0;
- virtual CVal compileIsA(CEnv& cenv, CVal rtti, const ASymbol* tag) = 0;
- virtual CVal compileGlobal(CEnv& cenv, const AType* t, const string& sym, CVal val) = 0;
- virtual CVal compileGlobalGet(CEnv& cenv, const string& sym, CVal val) = 0;
-
+ virtual CVal compileCall(CEnv& cenv, CFunc f, const AType* fT, ValVec& args) = 0;
+ virtual CVal compileCons(CEnv& cenv, const AType* t, CVal rtti, ValVec& f) = 0;
+ virtual CVal compileDot(CEnv& cenv, CVal tup, int32_t index) = 0;
+ virtual CVal compileGlobal(CEnv& cenv, const AType* t, const string& sym, CVal val) = 0;
+ virtual CVal compileGlobalGet(CEnv& cenv, const string& sym, CVal val) = 0;
virtual IfState compileIfStart(CEnv& cenv) = 0;
virtual void compileIfBranch(CEnv& cenv, IfState state, CVal condV, const AST* then) = 0;
virtual CVal compileIfEnd(CEnv& cenv, IfState state, CVal elseV, const AType* type) = 0;
+ virtual CVal compileIsA(CEnv& cenv, CVal rtti, const ASymbol* tag) = 0;
+ 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 void writeModule(CEnv& cenv, std::ostream& os) = 0;