Nicolas Winkler %!s(int64=7) %!d(string=hai) anos
pai
achega
70da87e816
Modificáronse 1 ficheiros con 8 adicións e 2 borrados
  1. 8 2
      src/Semantic.h

+ 8 - 2
src/Semantic.h

@@ -2,6 +2,7 @@
 #define QLOW_SEMANTIC_H
 
 #include <string>
+#include <map>
 #include "Util.h"
 
 namespace qlow
@@ -9,6 +10,9 @@ namespace qlow
     namespace sem
     {
 
+        template<typename T>
+        using std::map<std::string, std::unique_ptr<T>> SymbolTable;
+
         struct Class;
 
         struct Field;
@@ -20,14 +24,16 @@ namespace qlow
 struct Class
 {
     std::string name;
-    util::OwningList<Field> fields;
-    util::OwningList<Method> methods;
+    SymbolTable<Field> fields;
+    SymbolTable<Method> methods;
 };
 
 
 struct Field
 {
     Class* type;
+
+
 }