Added rough but working scoping.

This commit is contained in:
Nathan Braswell
2013-12-27 13:05:07 -06:00
parent 15674fec2a
commit 98b899b8a9
7 changed files with 170 additions and 53 deletions

View File

@@ -2,7 +2,7 @@
#define ASTDATA_H
#include <vector>
#include <set>
#include <map>
#include "Symbol.h"
#include "Type.h"
@@ -28,6 +28,7 @@ class ASTData {
ASTType type;
Type valueType;
Symbol symbol;
std::map<std::string, NodeTree<ASTData>*> scope;
private:
};