aboutsummaryrefslogtreecommitdiffstats
path: root/src/resp.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-12-14 06:17:55 +0000
committerDavid Robillard <d@drobilla.net>2012-12-14 06:17:55 +0000
commit7bfe9965f7b3bd980bd0dd788ca7ec50a2d5f6e1 (patch)
tree53c847025f11c951541723c195dd0310bdd14724 /src/resp.hpp
parent32c1b78fc9bdadd1dd40ed390941b2a6fea39435 (diff)
downloadresp-7bfe9965f7b3bd980bd0dd788ca7ec50a2d5f6e1.tar.gz
resp-7bfe9965f7b3bd980bd0dd788ca7ec50a2d5f6e1.tar.bz2
resp-7bfe9965f7b3bd980bd0dd788ca7ec50a2d5f6e1.zip
More flexible and unified code pass design.
git-svn-id: http://svn.drobilla.net/resp/trunk@435 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/resp.hpp')
-rw-r--r--src/resp.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/resp.hpp b/src/resp.hpp
index 8d37cd3..8cdb75e 100644
--- a/src/resp.hpp
+++ b/src/resp.hpp
@@ -839,9 +839,13 @@ void initLang(PEnv& penv, TEnv& tenv);
int eval(CEnv& cenv, Cursor& cursor, istream& is, bool execute);
int repl(CEnv& cenv);
-void resp_constrain(TEnv& tenv, Constraints& c, const AST* ast) throw(Error);
-const AST* resp_simplify(CEnv& cenv, const AST* ast) throw();
const AST* resp_cps(CEnv& cenv, const AST* ast, const AST* k) throw();
+
+void resp_constrain(TEnv& tenv, Constraints& c, const AST* ast) throw(Error);
+
+typedef const AST* (RespPass)(CEnv& cenv, Code& code, const AST* ast);
+
+const AST* resp_simplify(CEnv& cenv, Code& code, const AST* ast) throw();
const AST* resp_lift(CEnv& cenv, Code& code, const AST* ast) throw();
const AST* resp_flatten(CEnv& cenv, Code& code, const AST* ast) throw();
const AST* resp_depoly(CEnv& cenv, Code& code, const AST* ast) throw();