summaryrefslogtreecommitdiff
path: root/src/declare.cc
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@colm.net>2018-05-04 20:16:45 -0400
committerAdrian Thurston <thurston@colm.net>2018-05-04 20:17:09 -0400
commit4cd76a8dbe465ef293c2c96ba586720c1ab65c08 (patch)
tree9dd0137adde7505cb25ebfb5c0c7bd7cf332aee3 /src/declare.cc
parenta6436943ef56e70e1b18ce72a3f6aa5bf88cff7b (diff)
downloadcolm-4cd76a8dbe465ef293c2c96ba586720c1ab65c08.tar.gz
replacing the void LEL with a keyword and TYPE_VOID (non-tree)
Using LEL was a hack to make it work quickly, usig a non-tree type is the proper solution.
Diffstat (limited to 'src/declare.cc')
-rw-r--r--src/declare.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/declare.cc b/src/declare.cc
index 6ff781ac..281c4940 100644
--- a/src/declare.cc
+++ b/src/declare.cc
@@ -30,7 +30,7 @@
void Compiler::initUniqueTypes( )
{
uniqueTypeNil = new UniqueType( TYPE_NIL );
- uniqueTypeVoid = new UniqueType( TYPE_TREE, voidLangEl );
+ uniqueTypeVoid = new UniqueType( TYPE_VOID );
uniqueTypePtr = new UniqueType( TYPE_TREE, ptrLangEl );
uniqueTypeBool = new UniqueType( TYPE_BOOL );
uniqueTypeInt = new UniqueType( TYPE_INT );
@@ -337,7 +337,6 @@ void Compiler::declareBaseLangEls()
noTokenLangEl->isIgnore = true;
ptrLangEl = declareLangEl( this, rootNamespace, "ptr", LangEl::Term );
- voidLangEl = declareLangEl( this, rootNamespace, "void", LangEl::Term );
strLangEl = declareLangEl( this, rootNamespace, "str", LangEl::Term );
ignoreLangEl = declareLangEl( this, rootNamespace, "il", LangEl::Term );