diff options
author | David Robillard <d@drobilla.net> | 2010-12-29 22:50:20 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-12-29 22:50:20 +0000 |
commit | 2eda11ca28589991471ff3251cccc2471424770e (patch) | |
tree | a763edd57dcdcabba3f5eccf5af23f52d90b1eca /src/c.cpp | |
parent | 0076c050fb12c92a35b673d63fca82d5cff63bdb (diff) | |
download | resp-2eda11ca28589991471ff3251cccc2471424770e.tar.gz resp-2eda11ca28589991471ff3251cccc2471424770e.tar.bz2 resp-2eda11ca28589991471ff3251cccc2471424770e.zip |
Destructuring (i.e. working `match').
git-svn-id: http://svn.drobilla.net/resp/resp@374 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/c.cpp')
-rw-r--r-- | src/c.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -47,6 +47,7 @@ struct CEngine : public Engine { void eraseFn(CEnv& cenv, CFunc f); CVal compileCall(CEnv& cenv, CFunc f, const ATuple* funcT, const vector<CVal>& args); + CVal compileCast(CEnv& cenv, CVal v, const AST* t); CVal compileCons(CEnv& cenv, const ATuple* type, CVal rtti, const vector<CVal>& fields); CVal compileDot(CEnv& cenv, CVal tup, int32_t index); CVal compileGlobalSet(CEnv& cenv, const string& s, CVal v, const AST* t); @@ -139,6 +140,12 @@ CEngine::compileCall(CEnv& cenv, CFunc func, const ATuple* funcT, const vector<C } CVal +CEngine::compileCast(CEnv& cenv, CVal v, const AST* t) +{ + return v; +} + +CVal CEngine::compileCons(CEnv& cenv, const ATuple* type, CVal rtti, const vector<CVal>& fields) { return NULL; |