diff options
author | David Robillard <d@drobilla.net> | 2009-10-16 03:20:22 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-10-16 03:20:22 +0000 |
commit | 195598d60fec7a9ea2096143d853fab8232b5138 (patch) | |
tree | a768c19d5b59db09df0b6ee52e2ee6e1fb8a0ba0 /src/c.cpp | |
parent | c2d75892af2fdc6b9bf25365a15de5dc63bcc852 (diff) | |
download | resp-195598d60fec7a9ea2096143d853fab8232b5138.tar.gz resp-195598d60fec7a9ea2096143d853fab8232b5138.tar.bz2 resp-195598d60fec7a9ea2096143d853fab8232b5138.zip |
. operator for destructuring Tuples (cons).
git-svn-id: http://svn.drobilla.net/resp/tuplr@236 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
@@ -137,6 +137,7 @@ struct CEngine : public Engine { CFunc compileFunction(CEnv& cenv, AFn* fn, const AType& argsT); CVal compileTup(CEnv& cenv, const AType* type, const vector<CVal>& fields); + CVal compileDot(CEnv& cenv, CVal tup, int32_t index); CVal compileLiteral(CEnv& cenv, AST* lit); CVal compilePrimitive(CEnv& cenv, APrimitive* prim); CVal compileIf(CEnv& cenv, AIf* aif); @@ -170,6 +171,12 @@ CEngine::compileTup(CEnv& cenv, const AType* type, const vector<CVal>& fields) } CVal +CEngine::compileDot(CEnv& cenv, CVal tup, int32_t index) +{ + return NULL; +} + +CVal CEngine::compileLiteral(CEnv& cenv, AST* lit) { return new Value(lit->str()); |