aboutsummaryrefslogtreecommitdiffstats
path: root/tuplr.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-03-06 22:33:58 +0000
committerDavid Robillard <d@drobilla.net>2009-03-06 22:33:58 +0000
commit77162da0f773b8e79939491aca4e0232c62c255c (patch)
treec9618c6b9b52a20a9bf9830d9da69bd6ff732fbc /tuplr.cpp
parentecef8f697c66e15b85beb934d2b617b915a97aab (diff)
downloadresp-77162da0f773b8e79939491aca4e0232c62c255c.tar.gz
resp-77162da0f773b8e79939491aca4e0232c62c255c.tar.bz2
resp-77162da0f773b8e79939491aca4e0232c62c255c.zip
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
Diffstat (limited to 'tuplr.cpp')
-rw-r--r--tuplr.cpp6
1 files changed, 5 insertions, 1 deletions
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);