diff options
author | David Robillard <d@drobilla.net> | 2009-03-06 22:33:58 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-03-06 22:33:58 +0000 |
commit | 77162da0f773b8e79939491aca4e0232c62c255c (patch) | |
tree | c9618c6b9b52a20a9bf9830d9da69bd6ff732fbc /tuplr.cpp | |
parent | ecef8f697c66e15b85beb934d2b617b915a97aab (diff) | |
download | resp-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.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); |