aboutsummaryrefslogtreecommitdiffstats
path: root/src/parse.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-10-15 15:26:49 +0000
committerDavid Robillard <d@drobilla.net>2009-10-15 15:26:49 +0000
commit6942e2f4c1fec87a152eeefa0ed85e169760fa77 (patch)
tree2ca737bd894d86023904b607f1b8a9136299d84a /src/parse.cpp
parent81df782cba422300b4034ccd5e48145c09cd0f69 (diff)
downloadresp-6942e2f4c1fec87a152eeefa0ed85e169760fa77.tar.gz
resp-6942e2f4c1fec87a152eeefa0ed85e169760fa77.tar.bz2
resp-6942e2f4c1fec87a152eeefa0ed85e169760fa77.zip
Make TEnv purely a type environment.
git-svn-id: http://svn.drobilla.net/resp/tuplr@222 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/parse.cpp')
-rw-r--r--src/parse.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/parse.cpp b/src/parse.cpp
index 9cf74e6..ac232de 100644
--- a/src/parse.cpp
+++ b/src/parse.cpp
@@ -102,11 +102,11 @@ void
initLang(PEnv& penv, TEnv& tenv)
{
// Types
- tenv.def(penv.sym("Nothing"), make_pair((AST*)0, new AType(penv.sym("Nothing"))));
- tenv.def(penv.sym("Bool"), make_pair((AST*)0, new AType(penv.sym("Bool"))));
- tenv.def(penv.sym("Int"), make_pair((AST*)0, new AType(penv.sym("Int"))));
- tenv.def(penv.sym("Float"), make_pair((AST*)0, new AType(penv.sym("Float"))));
- tenv.def(penv.sym("String"), make_pair((AST*)0, new AType(penv.sym("String"))));
+ tenv.def(penv.sym("Nothing"), new AType(penv.sym("Nothing")));
+ 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("String"), new AType(penv.sym("String")));
// Literals
static bool trueVal = true;