Added Type class, bettered types a bit, made address of and dereference operators work.

This commit is contained in:
Nathan Braswell
2013-12-23 01:26:24 -06:00
parent 935cc6f968
commit 15674fec2a
10 changed files with 207 additions and 106 deletions

View File

@@ -6,6 +6,7 @@
#include "NodeTree.h"
#include "ASTData.h"
#include "Type.h"
#include "util.h"
@@ -15,7 +16,7 @@ class CGenerator {
CGenerator();
~CGenerator();
std::string generate(NodeTree<ASTData>* from);
static std::string ValueTypeToCType(ValueType type);
static std::string ValueTypeToCType(Type type);
std::string generatorString;
private:
std::string tabs();