Just got paranoid about saving all this work. Almost finished operator overloading, but everything is slightly broken right now.

This commit is contained in:
Nathan Braswell
2014-03-06 13:13:40 -05:00
parent 7f902880c5
commit 57976beb40
15 changed files with 273 additions and 147 deletions

View File

@@ -2,7 +2,7 @@
#define TYPE_H
#ifndef NULL
#define NULL 0
#define NULL ((void*)0)
#endif
#include <string>
@@ -25,6 +25,8 @@ class Type {
Type(NodeTree<ASTData>* typeDefinitionIn, int indirectionIn);
Type(ValueType typeIn, NodeTree<ASTData>* typeDefinitionIn, int indirectionIn);
~Type();
bool const operator==(const Type &other)const;
bool const operator!=(const Type &other)const;
std::string toString();
ValueType baseType;
NodeTree<ASTData>* typeDefinition;