From 77162da0f773b8e79939491aca4e0232c62c255c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 6 Mar 2009 22:33:58 +0000 Subject: Remove low level type stuff completely from core code (let the backend deal with conversion of abstract types to compiled types). git-svn-id: http://svn.drobilla.net/resp/tuplr@65 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- tuplr.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tuplr.cpp') diff --git a/tuplr.cpp b/tuplr.cpp index 580416c..0200a36 100644 --- a/tuplr.cpp +++ b/tuplr.cpp @@ -100,6 +100,11 @@ readExpression(Cursor& cur, std::istream& in) 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"))); + // Literals static bool trueVal = true; static bool falseVal = false; @@ -155,7 +160,6 @@ main(int argc, char** argv) { PEnv penv; TEnv tenv(penv); - initTypes(penv, tenv); initLang(penv, tenv); CEnv* cenv = newCenv(penv, tenv); -- cgit v1.2.1