diff options
author | David Robillard <d@drobilla.net> | 2009-03-15 03:28:14 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-03-15 03:28:14 +0000 |
commit | 361cf8ee32179f529555d992ffe17c89ca642ddb (patch) | |
tree | 72d638e5f413ff81c77f0577d2ea959f57b1f555 /tuplr.cpp | |
parent | 59117fc8bcd610697a45c0013fc7450de2ee512f (diff) | |
download | resp-361cf8ee32179f529555d992ffe17c89ca642ddb.tar.gz resp-361cf8ee32179f529555d992ffe17c89ca642ddb.tar.bz2 resp-361cf8ee32179f529555d992ffe17c89ca642ddb.zip |
Merge 'code' and 'type' environments.
Better error reporting for bad function parameters.
git-svn-id: http://svn.drobilla.net/resp/tuplr@94 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'tuplr.cpp')
-rw-r--r-- | tuplr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -143,9 +143,9 @@ void initLang(PEnv& penv, TEnv& tenv) { // Types - tenv.def(penv.sym("Bool"), new AType(penv.sym("Bool"))); - tenv.def(penv.sym("Int"), new AType(penv.sym("Int"))); - tenv.def(penv.sym("Float"), new AType(penv.sym("Float"))); + tenv.def(penv.sym("Bool"), make_pair((AST*)NULL, new AType(penv.sym("Bool")))); + tenv.def(penv.sym("Int"), make_pair((AST*)NULL, new AType(penv.sym("Int")))); + tenv.def(penv.sym("Float"), make_pair((AST*)NULL, new AType(penv.sym("Float")))); // Literals static bool trueVal = true; |